#include <MCParticleImpl.h>
Inheritance diagram for IMPL::MCParticleImpl:

Public Types | |
| typedef MCParticle | lcobject_type |
Public Member Functions | |
| MCParticleImpl () | |
| virtual | ~MCParticleImpl () |
| Destructor. | |
| virtual int | id () const |
| virtual const EVENT::MCParticleVec & | getParents () const |
| virtual const EVENT::MCParticleVec & | getDaughters () const |
| virtual EVENT::MCParticle * | getDaughter (int i) const |
| virtual int | getNumberOfParents () const |
| virtual MCParticle * | getParent (int i) const |
| virtual const double * | getEndpoint () const |
| virtual int | getNumberOfDaughters () const |
| virtual int | getPDG () const |
| virtual int | getGeneratorStatus () const |
| virtual int | getSimulatorStatus () const |
| virtual bool | isCreatedInSimulation () const |
| virtual bool | isBackscatter () const |
| virtual bool | vertexIsNotEndpointOfParent () const |
| virtual bool | isDecayedInTracker () const |
| virtual bool | isDecayedInCalorimeter () const |
| virtual bool | hasLeftDetector () const |
| virtual bool | isStopped () const |
| virtual const double * | getVertex () const |
| virtual float | getTime () const |
| virtual const double * | getMomentum () const |
| virtual double | getMass () const |
| virtual float | getCharge () const |
| virtual double | getEnergy () const |
| void | addParent (EVENT::MCParticle *mom) |
| void | setPDG (int pdg) |
| void | setGeneratorStatus (int status) |
| void | setSimulatorStatus (int status) |
| void | setVertex (double vtx[3]) |
| void | setTime (float time) |
| void | setEndpoint (double pnt[3]) |
| void | setMomentum (float p[3]) |
| void | setMomentum (double p[3]) |
| void | setMass (float m) |
| void | setCharge (float c) |
| virtual void | setCreatedInSimulation (bool val) |
| virtual void | setBackscatter (bool val) |
| virtual void | setVertexIsNotEndpointOfParent (bool val) |
| virtual void | setDecayedInTracker (bool val) |
| virtual void | setDecayedInCalorimeter (bool val) |
| virtual void | setHasLeftDetector (bool val) |
| virtual void | setStopped (bool val) |
| virtual LCObject * | clone () const |
| template<class V> | |
| V::ext_type | ext () |
| template<class V> | |
| V::rel_type | rel () |
| virtual int | simpleUID () const |
Static Public Attributes | |
| const int | BITEndpoint = 31 |
| const int | BITCreatedInSimulation = 30 |
| const int | BITBackscatter = 29 |
| const int | BITVertexIsNotEndpointOfParent = 28 |
| const int | BITDecayedInTracker = 27 |
| const int | BITDecayedInCalorimeter = 26 |
| const int | BITLeftDetector = 25 |
| const int | BITStopped = 24 |
Protected Member Functions | |
| void | addDaughter (EVENT::MCParticle *daughter) |
| template<class V> | |
| V::ptr & | ptr () |
| virtual void | setReadOnly (bool readOnly) |
| void | checkAccess () throw ( EVENT::ReadOnlyException ) |
| void | checkAccess (const char *what) throw ( EVENT::ReadOnlyException ) |
Protected Attributes | |
| int | _pdg |
| int | _genstatus |
| std::bitset< 32 > | _simstatus |
| double | _vertex [3] |
| double | _endpoint [3] |
| double | _p [3] |
| double | _mass |
| float | _charge |
| float | _time |
| EVENT::MCParticleVec | _parents |
| EVENT::MCParticleVec | _daughters |
| bool | _endpointSet |
| bool | _readOnly |
| int | _id |
Definition at line 24 of file MCParticleImpl.h.
|
|
Useful typedef for template programming with LCIO Definition at line 35 of file MCParticle.h. |
|
|
Definition at line 14 of file MCParticleImpl.cc. |
|
|
Destructor. Copy c'tor Definition at line 58 of file MCParticleImpl.cc. |
|
|
Adds a daughter particle - only called from addParent(). Definition at line 213 of file MCParticleImpl.cc. References _daughters, and IMPL::AccessChecked::checkAccess(). Referenced by addParent(). |
|
|
Adds a parent particle. Definition at line 222 of file MCParticleImpl.cc. References _parents, addDaughter(), and IMPL::AccessChecked::checkAccess(). Referenced by UTIL::LCStdHepRdr::readEvent(). |
|
|
Definition at line 20 of file AccessChecked.cc. |
|
|
|
Deep copy of the object. C++ implementations should return the concrete type (virtual constructor). No reasonable implementation yet. Do not use this method. Reimplemented in IMPL::SimCalorimeterHitImpl. Definition at line 52 of file LCObject.h. |
|
|||||||||
|
Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... Definition at line 430 of file LCRTRelations.h. |
|
|
Returns the particle's charge. Implements EVENT::MCParticle. Definition at line 202 of file MCParticleImpl.cc. |
|
|
Returns the i-th daughter of this particle. Same as getDaughter() except for return type.
Implements EVENT::MCParticle. Definition at line 129 of file MCParticleImpl.cc. References _daughters. Referenced by SIO::SIOParticleHandler::restoreParentDaughterRelations(). |
|
|
Returns the daughters of this particle. Implements EVENT::MCParticle. Definition at line 80 of file MCParticleImpl.cc. References EVENT::MCParticleVec. Referenced by SIO::SIOParticleHandler::restoreParentDaughterRelations(). |
|
|
Returns the endpoint of the particle in [mm] - returns NULL if undefined (not set). Definition of the enpoint depends on the application that created the particle, e.g. the start point of the shower in a calorimeter. Implements EVENT::MCParticle. Definition at line 153 of file MCParticleImpl.cc. References _daughters, and _simstatus. |
|
|
Returns the energy of the particle (at the vertex) in [GeV] computed from the particle's momentum and mass. Implements EVENT::MCParticle. Definition at line 173 of file MCParticleImpl.cc. |
|
|
Returns the status for particles from the generator Implements EVENT::MCParticle. Definition at line 179 of file MCParticleImpl.cc. |
|
|
Returns the mass of the particle in [GeV]. Implements EVENT::MCParticle. Definition at line 201 of file MCParticleImpl.cc. |
|
|
Returns the particle momentum at the production vertex. Implements EVENT::MCParticle. Definition at line 200 of file MCParticleImpl.cc. |
|
|
Returns the number of daughters of this particle. Implements EVENT::MCParticle. Definition at line 119 of file MCParticleImpl.cc. References _daughters. |
|
|
Returns the number of parents of this particle - 0 if mother. Implements EVENT::MCParticle. Definition at line 84 of file MCParticleImpl.cc. References _parents. |
|
|
Returns the i-th parent of this particle. Implements EVENT::MCParticle. Definition at line 94 of file MCParticleImpl.cc. References _parents. |
|
|
Returns the parents of this particle. Implements EVENT::MCParticle. Definition at line 76 of file MCParticleImpl.cc. References EVENT::MCParticleVec. Referenced by UTIL::LCStdHepRdr::readEvent(), and SIO::SIOParticleHandler::restoreParentDaughterRelations(). |
|
|
Returns the PDG code of the particle. Implements EVENT::MCParticle. Definition at line 178 of file MCParticleImpl.cc. |
|
|
Returns the status for particles from the simulation, e.g. decayed in flight. Bits 31-16 are used to decode the information. Use the followng boolean functions to determine the proper simulator status:
Implements EVENT::MCParticle. Definition at line 181 of file MCParticleImpl.cc. References _simstatus. |
|
|
The creation time of the particle in [ns] wrt. the event, e.g. for preassigned decays or decays in flight from the simulator. Implements EVENT::MCParticle. Definition at line 199 of file MCParticleImpl.cc. |
|
|
Returns the production vertex of the particle. Implements EVENT::MCParticle. Definition at line 198 of file MCParticleImpl.cc. |
|
|
True if the particle has left the world volume undecayed. Implements EVENT::MCParticle. Definition at line 193 of file MCParticleImpl.cc. References _simstatus. |
|
|
Returns an object id for internal (debugging) use in LCIO. Implements EVENT::LCObject. Definition at line 36 of file MCParticleImpl.h. |
|
|
True if the particle is the result of a backscatter from a calorimeter shower. Implements EVENT::MCParticle. Definition at line 189 of file MCParticleImpl.cc. References _simstatus. |
|
|
True if the particle has been created by the simulation program (rather than the generator). Implements EVENT::MCParticle. Definition at line 188 of file MCParticleImpl.cc. References _simstatus. |
|
|
True if the particle has interacted in a calorimeter region. Implements EVENT::MCParticle. Definition at line 192 of file MCParticleImpl.cc. References _simstatus. |
|
|
True if the particle has interacted in a tracking region. Implements EVENT::MCParticle. Definition at line 191 of file MCParticleImpl.cc. References _simstatus. |
|
|
True if the particle has been stopped by the simulation program. Implements EVENT::MCParticle. Definition at line 194 of file MCParticleImpl.cc. References _simstatus. |
|
|||||||||
|
Returns the reference to the pointer to the extension/relation object Definition at line 508 of file LCRTRelations.h. |
|
|||||||||
|
Provides read access to relations - the object types and their connectivity are defined by the class V which has to be a subtype of either LC1To1Relation, LC1ToNRelation or LCNToNRelation. Definition at line 444 of file LCRTRelations.h. |
|
|
Definition at line 298 of file MCParticleImpl.cc. References _simstatus. |
|
|
Sets the charge. Definition at line 282 of file MCParticleImpl.cc. References _charge, and IMPL::AccessChecked::checkAccess(). |
|
|
Definition at line 297 of file MCParticleImpl.cc. References _simstatus. |
|
|
Definition at line 301 of file MCParticleImpl.cc. References _simstatus. |
|
|
Definition at line 300 of file MCParticleImpl.cc. References _simstatus. |
|
|
Sets the particle endpoint. Definition at line 287 of file MCParticleImpl.cc. References _endpoint, _simstatus, and IMPL::AccessChecked::checkAccess(). |
|
|
Sets the Generator status. Definition at line 242 of file MCParticleImpl.cc. References _genstatus, and IMPL::AccessChecked::checkAccess(). Referenced by UTIL::LCStdHepRdr::readEvent(). |
|
|
Definition at line 302 of file MCParticleImpl.cc. References _simstatus. |
|
|
Sets the mass. Definition at line 278 of file MCParticleImpl.cc. References _mass, and IMPL::AccessChecked::checkAccess(). Referenced by SIO::SIOParticleHandler::read(), and UTIL::LCStdHepRdr::readEvent(). |
|
|
Sets the momentum. Definition at line 271 of file MCParticleImpl.cc. References _p, and IMPL::AccessChecked::checkAccess(). |
|
|
Sets the momentum. Definition at line 265 of file MCParticleImpl.cc. References _p, and IMPL::AccessChecked::checkAccess(). Referenced by SIO::SIOParticleHandler::read(), and UTIL::LCStdHepRdr::readEvent(). |
|
|
Sets the PDG code. Definition at line 238 of file MCParticleImpl.cc. References _pdg, and IMPL::AccessChecked::checkAccess(). Referenced by UTIL::LCStdHepRdr::readEvent(). |
|
|
Reimplemented in IMPL::LCCollectionVec, and IMPL::LCRunHeaderImpl. Definition at line 14 of file AccessChecked.cc. References IMPL::AccessChecked::_readOnly. Referenced by IMPL::LCEventImpl::setAccessMode(), and IMPL::LCCollectionVec::setReadOnly(). |
|
|
Sets the Simulator status. Definition at line 247 of file MCParticleImpl.cc. References _simstatus, and IMPL::AccessChecked::checkAccess(). Referenced by UTIL::LCStdHepRdr::readEvent(). |
|
|
Definition at line 303 of file MCParticleImpl.cc. References _simstatus. |
|
|
Sets the createion time. Definition at line 260 of file MCParticleImpl.cc. References _time, and IMPL::AccessChecked::checkAccess(). Referenced by UTIL::LCStdHepRdr::readEvent(). |
|
|
Sets the production vertex. Definition at line 254 of file MCParticleImpl.cc. References _vertex, and IMPL::AccessChecked::checkAccess(). Referenced by UTIL::LCStdHepRdr::readEvent(). |
|
|
Definition at line 299 of file MCParticleImpl.cc. References _simstatus. |
|
|
Definition at line 24 of file AccessChecked.h. |
|
|
True if the particle's vertex is not the endpoint of the parent particle. Implements EVENT::MCParticle. Definition at line 190 of file MCParticleImpl.cc. References _simstatus. |
|
|
Definition at line 248 of file MCParticleImpl.h. Referenced by setCharge(). |
|
|
Definition at line 251 of file MCParticleImpl.h. Referenced by addDaughter(), getDaughter(), getEndpoint(), getNumberOfDaughters(), SIO::SIOParticleHandler::readv00_08(), and SIO::SIOParticleHandler::restoreParentDaughterRelations(). |
|
|
Definition at line 245 of file MCParticleImpl.h. Referenced by MCParticleImpl(), and setEndpoint(). |
|
|
Definition at line 252 of file MCParticleImpl.h. |
|
|
Definition at line 241 of file MCParticleImpl.h. Referenced by SIO::SIOParticleHandler::readv00_08(), and setGeneratorStatus(). |
|
|
Definition at line 34 of file AccessChecked.h. Referenced by IMPL::AccessChecked::AccessChecked(). |
|
|
Definition at line 247 of file MCParticleImpl.h. Referenced by getEnergy(), and setMass(). |
|
|
Definition at line 246 of file MCParticleImpl.h. Referenced by getEnergy(), MCParticleImpl(), and setMomentum(). |
|
|
Definition at line 250 of file MCParticleImpl.h. Referenced by addParent(), getNumberOfParents(), getParent(), SIO::SIOParticleHandler::read(), and SIO::SIOParticleHandler::restoreParentDaughterRelations(). |
|
|
Definition at line 240 of file MCParticleImpl.h. Referenced by setPDG(). |
|
|
Definition at line 33 of file AccessChecked.h. Referenced by IMPL::AccessChecked::setReadOnly(). |
|
|
|
Definition at line 249 of file MCParticleImpl.h. Referenced by setTime(). |
|
|
Definition at line 244 of file MCParticleImpl.h. Referenced by MCParticleImpl(), and setVertex(). |
|
|
Definition at line 92 of file MCParticle.h. |
|
|
Definition at line 91 of file MCParticle.h. |
|
|
Definition at line 95 of file MCParticle.h. |
|
|
Definition at line 94 of file MCParticle.h. |
|
|
Definition at line 90 of file MCParticle.h. |
|
|
Definition at line 96 of file MCParticle.h. |
|
|
Definition at line 97 of file MCParticle.h. |
|
|
Definition at line 93 of file MCParticle.h. |
1.3.9.1