![]() |
ATLAS Offline Software
|
#include <ISFTruthIncident.h>
Public Member Functions | |
ISFTruthIncident (ISF::ISFParticle &parent, const ISFParticleVector &children, int process, AtlasDetDescr::AtlasRegion geoID, ISF::KillPrimary killsPrimary=ISF::fPrimarySurvives, const HepMC::FourVector *position=0) | |
virtual | ~ISFTruthIncident () |
ISFTruthIncident (const ISFTruthIncident &)=delete | |
ISFTruthIncident & | operator= (const ISFTruthIncident &)=delete |
const HepMC::FourVector & | position () const override final |
Return HepMC position of the truth vertex. More... | |
int | physicsProcessCategory () const override final |
Return category of the physics process represented by the truth incident (eg hadronic, em, ..) More... | |
int | physicsProcessCode () const override final |
Return specific physics process code of the truth incident (eg ionisation, bremsstrahlung, ..) More... | |
double | parentP2 () const override final |
Return p^2 of the parent particle. More... | |
double | parentPt2 () const override final |
Return pT^2 of the parent particle. More... | |
double | parentEkin () const override final |
Return Ekin of the parent particle. More... | |
int | parentPdgCode () const override final |
Return the PDG Code of the parent particle. More... | |
HepMC::GenParticlePtr | parentParticle () override final |
Return the parent particle as a HepMC particle type (usually only called for particles that will enter the HepMC truth event) More... | |
int | parentStatus () override final |
int | parentBarcode () override final |
Return the barcode of the parent particle. More... | |
int | parentUniqueID () override final |
Return the unique ID of the parent particle. More... | |
bool | parentSurvivesIncident () const override final |
Return a boolean whether or not the parent particle survives the incident. More... | |
HepMC::GenParticlePtr | parentParticleAfterIncident (int newBC) override final |
Return the parent particle after the TruthIncident vertex (and give it a new barcode) More... | |
double | childP2 (unsigned short index) const override final |
Return p^2 of the i-th child particle. More... | |
double | childPt2 (unsigned short index) const override final |
Return pT^2 of the i-th child particle. More... | |
double | childEkin (unsigned short index) const override final |
Return Ekin of the i-th child particle. More... | |
int | childPdgCode (unsigned short index) const override final |
Return the PDG Code of the i-th child particle. More... | |
int | childBarcode (unsigned short) const override final |
Return the barcode of the i-th child particle (if defined as part of the TruthIncident) otherwise return 0. More... | |
HepMC::GenParticlePtr | childParticle (unsigned short index, int bc) override final |
Return the i-th child as a HepMC particle type and assign the given Barcode to the simulator particle (usually only called for particles that will enter the HepMC truth event) More... | |
void | updateParentAfterIncidentProperties () |
Update the id and particleLink properties of the parentAfterIncident (to be called after registerTruthIncident) More... | |
void | updateChildParticleProperties () |
Update the id and particleLink properties of the child particles (to be called after registerTruthIncident) More... | |
AtlasDetDescr::AtlasRegion | geoID () |
Return the SimGeoID corresponding to the vertex of the truth incident. More... | |
unsigned short | numberOfChildren () const |
Return total number of child particles. 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... | |
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 Member Functions | |
ISFTruthIncident () | |
HepMC::GenParticlePtr | getHepMCTruthParticle (ISF::ISFParticle &particle) const |
return attached truth particle More... | |
HepMC::GenParticlePtr | updateHepMCTruthParticle (ISF::ISFParticle &particle, ISF::ISFParticle *parent=nullptr) const |
convert ISFParticle to GenParticle and attach to ISFParticle's TruthBinding More... | |
Private Attributes | |
ISF::ISFParticle & | m_parent |
const ISFParticleVector & | m_children |
const int | m_process |
const ISF::KillPrimary | m_killsPrimary |
const HepMC::FourVector * | m_position |
AtlasDetDescr::AtlasRegion | m_geoID |
region that the TruthIncident is located in More... | |
Interface class for all truth incidents handled by the ISF.
Definition at line 35 of file ISFTruthIncident.h.
ISF::ISFTruthIncident::ISFTruthIncident | ( | ISF::ISFParticle & | parent, |
const ISFParticleVector & | children, | ||
int | process, | ||
AtlasDetDescr::AtlasRegion | geoID, | ||
ISF::KillPrimary | killsPrimary = ISF::fPrimarySurvives , |
||
const HepMC::FourVector * | position = 0 |
||
) |
Definition at line 36 of file ISFTruthIncident.cxx.
|
virtual |
Definition at line 61 of file ISFTruthIncident.cxx.
|
delete |
|
private |
|
finaloverridevirtual |
Return the barcode of the i-th child particle (if defined as part of the TruthIncident) otherwise return 0.
Implements ISF::ITruthIncident.
Definition at line 149 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return Ekin of the i-th child particle.
Implements ISF::ITruthIncident.
Definition at line 140 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return p^2 of the i-th child particle.
Implements ISF::ITruthIncident.
Definition at line 132 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return the i-th child as a HepMC particle type and assign the given Barcode to the simulator particle (usually only called for particles that will enter the HepMC truth event)
Implements ISF::ITruthIncident.
Definition at line 153 of file ISFTruthIncident.cxx.
|
inlineinherited |
Should a particular child be written out to the GenEvent.
Definition at line 186 of file ITruthIncident.h.
|
finaloverridevirtual |
Return the PDG Code of the i-th child particle.
Implements ISF::ITruthIncident.
Definition at line 145 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return pT^2 of the i-th child particle.
Implements ISF::ITruthIncident.
Definition at line 136 of file ISFTruthIncident.cxx.
|
inlineinherited |
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.
|
inlineinherited |
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.
|
inlineinherited |
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.
|
inlineinherited |
Return the SimGeoID corresponding to the vertex of the truth incident.
Definition at line 53 of file ITruthIncident.h.
|
inlineprivate |
return attached truth particle
Definition at line 175 of file ISFTruthIncident.cxx.
|
inlinevirtualinherited |
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.
|
inlineinherited |
Return total number of child particles.
Definition at line 139 of file ITruthIncident.h.
|
delete |
|
finaloverridevirtual |
Return the barcode of the parent particle.
Implements ISF::ITruthIncident.
Definition at line 101 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return Ekin of the parent particle.
Implements ISF::ITruthIncident.
Definition at line 85 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return p^2 of the parent particle.
Implements ISF::ITruthIncident.
Definition at line 77 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return the parent particle as a HepMC particle type (usually only called for particles that will enter the HepMC truth event)
Implements ISF::ITruthIncident.
Definition at line 97 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return the parent particle after the TruthIncident vertex (and give it a new barcode)
Implements ISF::ITruthIncident.
Definition at line 113 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return the PDG Code of the parent particle.
Implements ISF::ITruthIncident.
Definition at line 89 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return pT^2 of the parent particle.
Implements ISF::ITruthIncident.
Definition at line 81 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Implements ISF::ITruthIncident.
Definition at line 93 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return a boolean whether or not the parent particle survives the incident.
Implements ISF::ITruthIncident.
Definition at line 109 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return the unique ID of the parent particle.
Implements ISF::ITruthIncident.
Definition at line 105 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return category of the physics process represented by the truth incident (eg hadronic, em, ..)
Implements ISF::ITruthIncident.
Definition at line 69 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return specific physics process code of the truth incident (eg ionisation, bremsstrahlung, ..)
Implements ISF::ITruthIncident.
Definition at line 73 of file ISFTruthIncident.cxx.
|
finaloverridevirtual |
Return HepMC position of the truth vertex.
Implements ISF::ITruthIncident.
Definition at line 65 of file ISFTruthIncident.cxx.
|
inlineinherited |
Record that a particular child passed a check.
Definition at line 181 of file ITruthIncident.h.
|
inlineinherited |
Set whether this TruthIncident should pass the vertex as a whole or individual children.
Definition at line 190 of file ITruthIncident.h.
void ISF::ISFTruthIncident::updateChildParticleProperties | ( | ) |
Update the id and particleLink properties of the child particles (to be called after registerTruthIncident)
Definition at line 239 of file ISFTruthIncident.cxx.
|
inlineprivate |
convert ISFParticle to GenParticle and attach to ISFParticle's TruthBinding
Definition at line 188 of file ISFTruthIncident.cxx.
void ISF::ISFTruthIncident::updateParentAfterIncidentProperties | ( | ) |
Update the id and particleLink properties of the parentAfterIncident (to be called after registerTruthIncident)
Definition at line 211 of file ISFTruthIncident.cxx.
|
protectedinherited |
Definition at line 131 of file ITruthIncident.h.
|
private |
Definition at line 107 of file ISFTruthIncident.h.
|
privateinherited |
region that the TruthIncident is located in
Definition at line 127 of file ITruthIncident.h.
|
private |
Definition at line 109 of file ISFTruthIncident.h.
|
protectedinherited |
Definition at line 129 of file ITruthIncident.h.
|
private |
Definition at line 106 of file ISFTruthIncident.h.
|
protectedinherited |
Definition at line 130 of file ITruthIncident.h.
|
private |
Definition at line 110 of file ISFTruthIncident.h.
|
private |
Definition at line 108 of file ISFTruthIncident.h.