ATLAS Offline Software
|
#include <ITruthIncident.h>
Public Member Functions | |
ITruthIncident (AtlasDetDescr::AtlasRegion geoID, unsigned short numChildren) | |
AtlasDetDescr::AtlasRegion | geoID () |
Return the SimGeoID corresponding to the vertex of the truth incident. More... | |
virtual const HepMC::FourVector & | position () const =0 |
Return HepMC position of the truth vertex. More... | |
virtual int | physicsProcessCategory () const =0 |
Return category of the physics process represented by the truth incident (eg hadronic, em, ..) More... | |
virtual int | physicsProcessCode () const =0 |
Return specific physics process code of the truth incident (eg ionisation, bremsstrahlung, ..) More... | |
virtual double | parentP2 () const =0 |
Return p^2 of the parent particle. More... | |
virtual double | parentPt2 () const =0 |
Return pT^2 of the parent particle. More... | |
virtual double | parentEkin () const =0 |
Return Ekin of the parent particle. More... | |
virtual int | parentPdgCode () const =0 |
Return the PDG Code of the parent particle. More... | |
virtual HepMC::GenParticlePtr | parentParticle ()=0 |
Return the parent particle as a HepMC particle type (only called for particles that will enter the HepMC truth event) More... | |
virtual int | parentStatus ()=0 |
virtual int | parentBarcode ()=0 |
Return the barcode of the parent particle. More... | |
virtual int | parentUniqueID ()=0 |
Return the unique ID of the parent particle. More... | |
virtual bool | parentSurvivesIncident () const =0 |
Return a boolean whether or not the parent particle survives the incident. More... | |
virtual HepMC::GenParticlePtr | parentParticleAfterIncident (int newBC)=0 |
Return the parent particle after the TruthIncident vertex (and assign a new barcode to it) More... | |
unsigned short | numberOfChildren () const |
Return total number of child particles. More... | |
virtual double | childP2 (unsigned short index) const =0 |
Return p^2 of the i-th child particle. More... | |
virtual double | childPt2 (unsigned short index) const =0 |
Return pT^2 of the i-th child particle. More... | |
virtual double | childEkin (unsigned short index) const =0 |
Return Ekin of the i-th child particle. More... | |
virtual int | childPdgCode (unsigned short index) const =0 |
Return the PDG Code of the i-th child particle. More... | |
virtual int | childBarcode (unsigned short index) const =0 |
Return the barcode of the i-th child particle (if defined as part of the TruthIncident) otherwise return 0. More... | |
bool | childrenP2Pass (double p2cut) |
Return true if at least one child particle passes the given p^2 cut (= at least one child with p^2 >= pt2cut) More... | |
bool | childrenPt2Pass (double pt2cut) |
Return true if at least one child particle passes the given pT^2 cut (= at least one child with pT^2 >= pt2cut) More... | |
bool | childrenEkinPass (double ekincut) |
Return true if at least one child particle passes the given Ekin cut (= at least one child with Ekin >= ekincut) More... | |
virtual HepMC::GenParticlePtr | childParticle (unsigned short index, int bc=HepMC::UNDEFINED_ID)=0 |
Return the i-th child as a HepMC particle type and assign the given Barcode to the simulator particle (only called for particles that will enter the HepMC truth event) More... | |
void | setChildPassedFilters (unsigned short index) |
Record that a particular child passed a check. More... | |
bool | childPassedFilters (unsigned short index) const |
Should a particular child be written out to the GenEvent. More... | |
void | setPassWholeVertices (bool passWholeVertex) |
Set whether this TruthIncident should pass the vertex as a whole or individual children. More... | |
virtual ISF::InteractionClass_t | interactionClassification () const |
The interaction classifications are described as follows: STD_VTX: interaction of a particle without a pre-defined decay; QS_SURV_VTX: a particle with a pre-defined decay under-going a non-destructive interaction; QS_DEST_VTX: a particle with a pre-defined decay under-going a destructive interaction other than its pre-defined decay; QS_PREDEF_VTX: a particle under-going its pre-defined decay. More... | |
Protected Attributes | |
int | m_numChildren |
bool | m_passWholeVertex |
std::vector< bool > | m_childPassedFilters |
Private Attributes | |
AtlasDetDescr::AtlasRegion | m_geoID |
region that the TruthIncident is located in More... | |
ISF interface class for TruthIncidents. Information regarding interactions that occur inside simulators are wrapped into dedicated TruthIncident implemenations. The ITruthIncident interface offers a layer of abstraction to the ISF framework, in order to build a MC truth record of the simulated event.
Definition at line 45 of file ITruthIncident.h.
|
inline |
Definition at line 47 of file ITruthIncident.h.
|
pure virtual |
Return the barcode of the i-th child particle (if defined as part of the TruthIncident) otherwise return 0.
Implemented in ISF::ISFTruthIncident, and iGeant4::Geant4TruthIncident.
|
pure virtual |
Return Ekin of the i-th child particle.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return p^2 of the i-th child particle.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return the i-th child as a HepMC particle type and assign the given Barcode to the simulator particle (only called for particles that will enter the HepMC truth event)
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
inline |
Should a particular child be written out to the GenEvent.
Definition at line 186 of file ITruthIncident.h.
|
pure virtual |
Return the PDG Code of the i-th child particle.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return pT^2 of the i-th child particle.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
inline |
Return true if at least one child particle passes the given Ekin cut (= at least one child with Ekin >= ekincut)
Definition at line 170 of file ITruthIncident.h.
|
inline |
Return true if at least one child particle passes the given p^2 cut (= at least one child with p^2 >= pt2cut)
Definition at line 146 of file ITruthIncident.h.
|
inline |
Return true if at least one child particle passes the given pT^2 cut (= at least one child with pT^2 >= pt2cut)
Definition at line 158 of file ITruthIncident.h.
|
inline |
Return the SimGeoID corresponding to the vertex of the truth incident.
Definition at line 53 of file ITruthIncident.h.
|
inlinevirtual |
The interaction classifications are described as follows: STD_VTX: interaction of a particle without a pre-defined decay; QS_SURV_VTX: a particle with a pre-defined decay under-going a non-destructive interaction; QS_DEST_VTX: a particle with a pre-defined decay under-going a destructive interaction other than its pre-defined decay; QS_PREDEF_VTX: a particle under-going its pre-defined decay.
Reimplemented in iGeant4::Geant4TruthIncident.
Definition at line 125 of file ITruthIncident.h.
|
inline |
Return total number of child particles.
Definition at line 139 of file ITruthIncident.h.
|
pure virtual |
Return the barcode of the parent particle.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return Ekin of the parent particle.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return p^2 of the parent particle.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return the parent particle as a HepMC particle type (only called for particles that will enter the HepMC truth event)
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return the parent particle after the TruthIncident vertex (and assign a new barcode to it)
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return the PDG Code of the parent particle.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return pT^2 of the parent particle.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return a boolean whether or not the parent particle survives the incident.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return the unique ID of the parent particle.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return category of the physics process represented by the truth incident (eg hadronic, em, ..)
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return specific physics process code of the truth incident (eg ionisation, bremsstrahlung, ..)
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
pure virtual |
Return HepMC position of the truth vertex.
Implemented in iGeant4::Geant4TruthIncident, and ISF::ISFTruthIncident.
|
inline |
Record that a particular child passed a check.
Definition at line 181 of file ITruthIncident.h.
|
inline |
Set whether this TruthIncident should pass the vertex as a whole or individual children.
Definition at line 190 of file ITruthIncident.h.
|
protected |
Definition at line 131 of file ITruthIncident.h.
|
private |
region that the TruthIncident is located in
Definition at line 127 of file ITruthIncident.h.
|
protected |
Definition at line 129 of file ITruthIncident.h.
|
protected |
Definition at line 130 of file ITruthIncident.h.