#include <GParticle.h>
Inheritance diagram for GParticle:

Public Methods | |||
| GParticle (const char* name, float mass=-1) | |||
| set mass explicitly if present, otherwise generate from PData entry defaults momentum, position, time all =0; see. More... | |||
| GParticle (long id, float mass=-1) | |||
Constructor
| |||
| GParticle (const PData * data,float mass=-1) | |||
Constructor
| |||
| GParticle (const GParticle&) | |||
| copy constructor. Does not copy children, makes original the parent. More... | |||
| virtual | ~GParticle () | ||
| destructor. More... | |||
| double | px () const | ||
| 4-momentum components in the current Lorentz frame. More... | |||
| double | py () const | ||
| double | pz () const | ||
| double | e () const | ||
| Vector | momentum () const | ||
| double | pTot () const | ||
| double | tx () const | ||
| direction cosines for this particle. More... | |||
| double | ty () const | ||
| double | tz () const | ||
| Vector | direction () const | ||
| double | mass () const | ||
| the actual mass of this particle. More... | |||
| HepBoolean | hasPostionInfo () const | ||
| double | x0 () const | ||
| position of the production vertex. More... | |||
| double | y0 () const | ||
| double | z0 () const | ||
| Point | productionVertex () const | ||
| double | x () const | ||
| current position (or position of decay vertex). More... | |||
| double | y () const | ||
| double | z () const | ||
| Point | position () const | ||
| Point | decayVertex () const | ||
| GParticle& | setPosition (const Point&) | ||
| float | t () const | ||
| access to lab time of decay. More... | |||
| void | setT (float) | ||
| set the decay time. More... | |||
| float | timeOfDecay () const | ||
| life time in units of mm/c in the rest frame. More... | |||
| GParticle& | setMomentum (const Vector &) | ||
| Sets the spatial components, scaling the energy component to conserve the invariant mass. More... | |||
| GParticle& | setEnergy (float) | ||
| This scaling the spatial components to conserve the invariant mass. More... | |||
| float | eta () const | ||
| return p/m. More... | |||
| void | decayOnce () | ||
| decay the particle, but not the daughters. More... | |||
| virtual void | printOn (std::ostream&) const | ||
| print this one,. More... | |||
| void | printAll (std::ostream&) const | ||
| Print this and all daughters (recursively). More... | |||
| const char* | name () const | ||
| return data from associated PData object. More... | |||
| float | charge () const | ||
| long | idCode () const | ||
| float | spin () const | ||
| double | lifeTime () const | ||
| const GParticle* | parent () const | ||
| get the optional parent (only set by addChild). More... | |||
| int | numChildren () const | ||
| number of children. More... | |||
| GParticle* | child (int n) const | ||
| manipulate the list of children. More... | |||
| virtual GParticle* | addChild (const PData* childData, float mass=-1) | ||
| void | removeChildren () | ||
| void | boost (const Vector&) | ||
| boost the particle and its children. More... | |||
| void | scatterBy (double theta, double phi) | ||
| modify direction by given angle. More... | |||
| float | GenerateTimeOfDecay () | ||
| set the decay time using PData info. More... | |||
Static Public Methods | |||
| void | setPDT (PDT* thePDT) | ||
| set, retrive the PDT object used to create particle. More... | |||
| PDT* | thePDT () | ||
Protected Methods | |||
| GParticle* | addChild (GParticle *) | ||
| void | setE (float) | ||
| void | setMass (float) | ||
| void | setParent (GParticle*) | ||
Protected Attributes | |||
| const PData* | pData | ||
Private Attributes | |||
| const GParticle* | m_parent | ||
| GParticle* | m_first_child | ||
| GParticle* | m_next_sibling | ||
| float | _mass | ||
| Point | _r | ||
| float | _time | ||
Static Private Attributes | |||
| PDT* | _thePDT = PDT::createDefault() | ||
| const unsigned | MAX_TRIES = 100 | ||
Definition at line 22 of file GParticle.h.
|
|
set mass explicitly if present, otherwise generate from PData entry defaults momentum, position, time all =0; see.
Definition at line 43 of file GParticle.cxx. Referenced by addChild(). |
|
|
Constructor
Definition at line 31 of file GParticle.cxx. |
|
|
Constructor
Definition at line 21 of file GParticle.cxx. |
|
|
copy constructor. Does not copy children, makes original the parent.
Definition at line 55 of file GParticle.cxx. |
|
|
destructor.
Definition at line 103 of file GParticle.cxx. |
|
|
set the decay time using PData info.
Definition at line 96 of file GParticle.cxx. Referenced by MCParticle::propagate(). |
|
|
Definition at line 198 of file GParticle.cxx. |
|
|
Reimplemented in MCParticle. Definition at line 214 of file GParticle.cxx. Referenced by MCParticle::addChild(), MuonInteractor::interact(), GheishaInteractor::interact(), and EGSInteractor::interact(). |
|
|
boost the particle and its children.
Definition at line 243 of file GParticle.cxx. |
|
|
Definition at line 234 of file GParticle.h. Referenced by Interactor::afterStep(), EGSInteractor::afterStep(), EGSInteractor::ecut(), Interactor::eloss(), MCParticle::endStep(), Interactor::energyLoss(), TestApp::init(), EGSInteractor::interact(), EGSInteractor::interactionLength(), EGSInteractor::makeEGS(), Interactor::maxStepSize(), EGSInteractor::maxStepSize(), Interactor::multipleScatter(), RCParticle::propagate(), MCParticle::propagate(), SimpleDetector::score(), ShowerDetector::score(), Spectrometer::score(), and MCParticle::stepBy(). |
|
|
manipulate the list of children.
Reimplemented in MCParticle. Definition at line 234 of file GParticle.cxx. Referenced by boost(), MCParticle::child(), EGSInteractor::interact(), and printAll(). |
|
|
decay the particle, but not the daughters.
Definition at line 110 of file GParticle.cxx. Referenced by MCParticle::endStep(), and main(). |
|
|
Definition at line 201 of file GParticle.h. |
|
|
Reimplemented in MCParticle, and RCParticle. Definition at line 224 of file GParticle.h. Referenced by RCParticle::direction(), MCParticle::direction(), and RCParticle::position(). |
|
|
Definition at line 183 of file GParticle.h. Referenced by Interactor::afterStep(), Interactor::eloss(), ShowerTest::init(), TestApp::init(), MuonInteractor::interact(), EGSInteractor::interactionLength(), EGSInteractor::makeEGS(), Interactor::maxStepSize(), EGSInteractor::maxStepSize(), Interactor::multipleScatter(), MCParticle::propagate(), ShowerDetector::score(), Spectrometer::score(), RCParticle::stepBy(), and MCParticle::stepBy(). |
|
|
return p/m.
Definition at line 252 of file GParticle.h. |
|
|
Definition at line 312 of file GParticle.cxx. |
|
|
Definition at line 237 of file GParticle.h. Referenced by MuonInteractor::interact(), GheishaInteractor::interact(), GheishaInteractor::interactionLength(), and ShowerDetector::score(). |
|
|
Definition at line 243 of file GParticle.h. |
|
|
the actual mass of this particle.
Definition at line 228 of file GParticle.h. Referenced by Interactor::afterStep(), TwoBody::decay(), PhaseSpace::decay2(), PhaseSpace::decay3(), decayOnce(), Interactor::ecut(), Interactor::eloss(), Interactor::energyLoss(), ShowerTest::init(), TestApp::init(), MuonInteractor::interact(), EGSInteractor::interact(), Interactor::maxStepSize(), Generator::propagate(), ShowerDetector::score(), setMass(), RCParticle::stepBy(), and MCParticle::stepBy(). |
|
|
Definition at line 187 of file GParticle.h. Referenced by Interactor::energyLoss(), MuonInteractor::interact(), RCParticle::propagate(), MCParticle::propagate(), Generator::propagate(), Spectrometer::score(), RCParticle::stepBy(), and MCParticle::stepBy(). |
|
|
return data from associated PData object.
Definition at line 231 of file GParticle.h. Referenced by Interactor::interact(), and printOn(). |
|
|
number of children.
Definition at line 219 of file GParticle.cxx. Referenced by ParticleRep::ParticleRep(), boost(), printAll(), MCParticle::propagate(), and ShowerDetector::score(). |
|
|
Definition at line 255 of file GParticle.h. Referenced by Interactor::eloss(), ShowerTest::init(), TestApp::init(), MuonInteractor::interact(), GheishaInteractor::interactionLength(), EGSInteractor::interactionLength(), Interactor::maxStepSize(), Interactor::multipleScatter(), SimpleDetector::score(), and Spectrometer::score(). |
|
|
get the optional parent (only set by addChild).
Reimplemented in MCParticle. Definition at line 231 of file GParticle.cxx. Referenced by MCParticle::parent(), and printAll(). |
|
|
Reimplemented in MCParticle, and RCParticle. Definition at line 204 of file GParticle.h. Referenced by RCParticle::position(), and MCParticle::position(). |
|
|
Print this and all daughters (recursively).
Definition at line 253 of file GParticle.cxx. Referenced by operator<<(), and Generator::printOn(). |
|
|
print this one,.
Reimplemented in Generator, MCParticle, and RCParticle. Definition at line 262 of file GParticle.cxx. Referenced by printAll(), RCParticle::printOn(), and MCParticle::printOn(). |
|
|
Definition at line 216 of file GParticle.h. |
|
|
4-momentum components in the current Lorentz frame.
Definition at line 177 of file GParticle.h. Referenced by GheishaInteractor::interact(), EGSInteractor::makeEGS(), and scatterBy(). |
|
|
Definition at line 179 of file GParticle.h. Referenced by GheishaInteractor::interact(), EGSInteractor::makeEGS(), and scatterBy(). |
|
|
Definition at line 181 of file GParticle.h. Referenced by GheishaInteractor::interact(), EGSInteractor::makeEGS(), and scatterBy(). |
|
|
Definition at line 186 of file GParticle.cxx. Referenced by Generator::getEvent(), MCParticle::propagate(), and ~GParticle(). |
|
|
modify direction by given angle.
Definition at line 273 of file GParticle.cxx. Referenced by Interactor::multipleScatter(). |
|
|
Definition at line 185 of file GParticle.h. Referenced by setEnergy(), setMass(), and setMomentum(). |
|
|
This scaling the spatial components to conserve the invariant mass. If the spatial components are 0, the result is a floating exception. Definition at line 86 of file GParticle.cxx. Referenced by Interactor::afterStep(), MuonInteractor::interact(), and EGSInteractor::interact(). |
|
|
Definition at line 67 of file GParticle.cxx. Referenced by GParticle(). |
|
|
Sets the spatial components, scaling the energy component to conserve the invariant mass.
Definition at line 77 of file GParticle.cxx. Referenced by Generator::Generator(), RCParticle::RCParticle(), Interactor::afterStep(), EGSInteractor::afterStep(), TwoBody::decay(), PhaseSpace::decay2(), PhaseSpace::decay3(), ShowerTest::init(), TestApp::init(), MuonInteractor::interact(), GheishaInteractor::interact(), EGSInteractor::interact(), MCParticle::propagate(), Generator::propagate(), and MCParticle::stepBy(). |
|
|
set, retrive the PDT object used to create particle.
Definition at line 246 of file GParticle.h. |
|
|
Definition at line 108 of file GParticle.cxx. Referenced by addChild(). |
|
|
Definition at line 207 of file GParticle.h. Referenced by Generator::Generator(), RCParticle::RCParticle(), addChild(), Generator::propagate(), RCParticle::stepBy(), and MCParticle::stepBy(). |
|
|
set the decay time.
Definition at line 199 of file GParticle.h. Referenced by addChild(), MCParticle::endStep(), RCParticle::stepBy(), and MCParticle::stepBy(). |
|
|
Definition at line 240 of file GParticle.h. |
|
|
access to lab time of decay.
Definition at line 197 of file GParticle.h. Referenced by MCParticle::endStep(), RCParticle::stepBy(), and MCParticle::stepBy(). |
|
|
Definition at line 249 of file GParticle.h. Referenced by MCParticle::addInteractor(), SetBeam::execute(), Gismo::PrintPDT::execute(), GheishaInteractor::interact(), EGSInteractor::interact(), main(), BaseApp::printPDT(), ShowerDetector::score(), and Gismo::~Gismo(). |
|
|
life time in units of mm/c in the rest frame.
Definition at line 313 of file GParticle.cxx. |
|
|
direction cosines for this particle.
Definition at line 218 of file GParticle.h. |
|
|
Definition at line 220 of file GParticle.h. |
|
|
Definition at line 222 of file GParticle.h. |
|
|
current position (or position of decay vertex).
Definition at line 191 of file GParticle.h. |
|
|
position of the production vertex.
Definition at line 210 of file GParticle.h. |
|
|
Definition at line 193 of file GParticle.h. |
|
|
Definition at line 212 of file GParticle.h. |
|
|
Definition at line 195 of file GParticle.h. |
|
|
Definition at line 214 of file GParticle.h. |
|
|
Definition at line 310 of file GParticle.cxx. |
|
|
Definition at line 155 of file GParticle.h. |
|
|
Definition at line 157 of file GParticle.h. |
|
|
Definition at line 309 of file GParticle.cxx. |
|
|
Definition at line 158 of file GParticle.h. |
|
|
Definition at line 151 of file GParticle.h. |
|
|
Definition at line 152 of file GParticle.h. |
|
|
Definition at line 150 of file GParticle.h. |
|
|
Definition at line 143 of file GParticle.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000