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

Public Types | |
| enum | Status { ALIVE, DECAYED, INTERACTED, LEFT, STOPPED, LOOPING, LOST, STUCK, PRIMARY, SHOWER } |
| Propagation status. More... | |
Public Methods | |
| MCParticle (long id, float mass=-1) | |
| constructor by particle id. More... | |
| MCParticle (const char*, float mass=-1) | |
| constructor by particle name. More... | |
| MCParticle (const PData*, float mass=-1) | |
| constructor by particle data. More... | |
| MCParticle (const MCParticle&) | |
| copy constructor. More... | |
| ~MCParticle () | |
| destructor. More... | |
| MCParticle::Status | status () const |
| return status. More... | |
| void | setStatus (MCParticle::Status) |
| set status. More... | |
| float | energyLoss () const |
| return energy lost in current step. More... | |
| virtual void | propagate (const Medium *) |
| propagate the particle and all of its progeny. More... | |
| const MCParticle* | parent () const |
| override superclass, assuming that parent is also a MCParticle. More... | |
| MCParticle* | child (int i) const |
| override superclass to return casted child. More... | |
| virtual GParticle* | addChild (const PData*, float mass=-1) |
| add a child with the given type; return the created particle to set position, momentum etc. More... | |
| int | interact (const Medium*) |
| interacts in the given medium. More... | |
| float | interactionLength (const Medium*) |
| return interaction length in given medium. More... | |
| void | printOn ( std::ostream& ) const |
| print this one,. More... | |
| int | generationCount () |
| float | stepLength () |
| float | arclength () |
| float | currentTime () |
| Point | position (float s) const |
| Point | position () const |
| Vector | direction (float s) const |
| Vector | direction () const |
| const Ray* | segment () const |
| access to the line segment for the current step. More... | |
| const Medium* | medium () const |
| Pointer to last Medium in which particle was propagated. More... | |
| Interactor* | interactor () const |
| used internally during propagation. More... | |
| const Track* | track () const |
| access to the Track object. More... | |
Static Public Methods | |
| void | addInteractor (Interactor *) |
| add (or replace) an interactor object to the PDT's list. More... | |
| int | stepCount () |
| return properties associated with the propagation. More... | |
| const Medium* | getCurrentMedium () |
| access to the current medium used in propagation. More... | |
Static Public Attributes | |
| int | saveTrack = 0 |
| usersettable: must be on to create Tracks in a shower. More... | |
Protected Methods | |
| float | checkStep () |
| void | stepBy (float, Ray&) |
| void | endStep () |
Protected Attributes | |
| Track* | _track |
| Status | _status |
| const Medium* | lastMedium |
Static Protected Attributes | |
| Ray* | s_segment |
| double | startingEnergy |
| float | arcLength |
| float | properTime |
| float | timeOfDecay |
| float | step |
| int | stepcount |
| int | generation |
| float | turnAngle |
| float | elossFraction |
| float | ecut |
| const Medium* | currentMedium |
| const float | MAX_TIME = 1000 |
| const float | MAX_BEND = 31 |
| const int | MAX_GENERATION = 500 |
| const int | MAX_STEPS = 10000 |
There is also an instance of a Track for display.
Definition at line 20 of file MCParticle.h.
|
|
Propagation status.
Definition at line 37 of file MCParticle.h. |
|
|
constructor by particle id.
Definition at line 39 of file MCParticle.cxx. Referenced by addChild(). |
|
|
constructor by particle name.
Definition at line 44 of file MCParticle.cxx. |
|
|
constructor by particle data.
Definition at line 34 of file MCParticle.cxx. |
|
|
copy constructor.
Definition at line 49 of file MCParticle.cxx. |
|
|
destructor.
Definition at line 55 of file MCParticle.cxx. |
|
|
add a child with the given type; return the created particle to set position, momentum etc.
Reimplemented from GParticle. Definition at line 61 of file MCParticle.cxx. Referenced by Generator::propagate(). |
|
|
add (or replace) an interactor object to the PDT's list.
Definition at line 388 of file MCParticle.cxx. Referenced by Gismo::addInteractor(), and BaseApp::addInteractor(). |
|
|
Definition at line 165 of file MCParticle.h. |
|
|
Definition at line 219 of file MCParticle.cxx. Referenced by propagate(). |
|
|
override superclass to return casted child.
Reimplemented from GParticle. Definition at line 69 of file MCParticle.cxx. Referenced by ParticleRep::ParticleRep(), propagate(), and ShowerDetector::score(). |
|
|
Definition at line 166 of file MCParticle.h. |
|
|
Reimplemented from GParticle. Definition at line 169 of file MCParticle.h. Referenced by propagate(), and DigitizerInterface::score(). |
|
|
Definition at line 175 of file MCParticle.h. |
|
|
Definition at line 336 of file MCParticle.cxx. Referenced by propagate(). |
|
|
return energy lost in current step.
Definition at line 158 of file MCParticle.h. Referenced by propagate(), TowerArray::score(), ShowerDetector::score(), Calorimeter::score(), and DigitizerInterface::score(). |
|
|
Definition at line 161 of file MCParticle.h. |
|
|
access to the current medium used in propagation.
Definition at line 100 of file MCParticle.h. |
|
|
interacts in the given medium.
Definition at line 180 of file MCParticle.h. |
|
|
return interaction length in given medium.
Definition at line 182 of file MCParticle.h. |
|
|
used internally during propagation.
Definition at line 94 of file MCParticle.h. Referenced by endStep(), ShowerTest::init(), and stepBy(). |
|
|
Pointer to last Medium in which particle was propagated.
Definition at line 186 of file MCParticle.h. |
|
|
override superclass, assuming that parent is also a MCParticle.
Reimplemented from GParticle. Definition at line 74 of file MCParticle.cxx. Referenced by propagate(). |
|
|
Reimplemented from GParticle. Definition at line 167 of file MCParticle.h. Referenced by World::processEvent(), propagate(), Generator::propagate(), TowerArray::score(), SimpleDetector::score(), DigitizerInterface::score(), and Gismo::DisplayEvent::update(). |
|
|
Definition at line 171 of file MCParticle.h. Referenced by BaseApp::trigger(). |
|
|
print this one,.
Reimplemented from GParticle. Reimplemented in Generator. Definition at line 370 of file MCParticle.cxx. Referenced by Generator::printOn(). |
|
|
propagate the particle and all of its progeny.
Reimplemented in Generator. Definition at line 88 of file MCParticle.cxx. Referenced by World::processEvent(). |
|
|
access to the line segment for the current step.
Definition at line 88 of file MCParticle.h. Referenced by DigitizerInterface::score(). |
|
|
set status.
Definition at line 157 of file MCParticle.h. Referenced by endStep(), Generator::getEvent(), propagate(), Generator::propagate(), and stepBy(). |
|
|
return status.
Definition at line 156 of file MCParticle.h. Referenced by endStep(), propagate(), TowerArray::score(), ShowerDetector::score(), and DigitizerInterface::score(). |
|
|
Definition at line 295 of file MCParticle.cxx. Referenced by propagate(). |
|
|
return properties associated with the propagation.
Definition at line 160 of file MCParticle.h. |
|
|
Definition at line 164 of file MCParticle.h. |
|
|
access to the Track object.
Definition at line 97 of file MCParticle.h. Referenced by ParticleRep::ParticleRep(). |
|
|
Definition at line 81 of file MCParticle.cxx. |
|
|
Definition at line 82 of file MCParticle.cxx. |
|
|
Definition at line 83 of file MCParticle.cxx. |
|
|
Definition at line 80 of file MCParticle.cxx. |
|
|
Definition at line 107 of file MCParticle.h. |
|
|
Definition at line 104 of file MCParticle.h. |
|
|
Definition at line 399 of file MCParticle.cxx. |
|
|
Definition at line 398 of file MCParticle.cxx. |
|
|
Definition at line 406 of file MCParticle.cxx. |
|
|
Definition at line 138 of file MCParticle.h. |
|
|
Definition at line 409 of file MCParticle.cxx. |
|
|
Definition at line 110 of file MCParticle.h. |
|
|
Definition at line 400 of file MCParticle.cxx. |
|
|
Definition at line 396 of file MCParticle.cxx. |
|
|
usersettable: must be on to create Tracks in a shower.
Definition at line 411 of file MCParticle.cxx. |
|
|
Definition at line 403 of file MCParticle.cxx. |
|
|
Definition at line 405 of file MCParticle.cxx. |
|
|
Definition at line 408 of file MCParticle.cxx. |
|
|
Definition at line 402 of file MCParticle.cxx. |
|
|
Definition at line 401 of file MCParticle.cxx. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000