ATLAS Offline Software
|
Functions | |
template<class T > | |
bool | isInteracting (const T &p) |
Identify if the particle with given PDG ID would not interact with the detector, i.e. not a neutrino or WIMP. More... | |
template<class T > | |
bool | isChargedNonShowering (const T &p) |
Identify if the particle with given PDG ID would produce ID tracks but not shower in the detector if stable. More... | |
template<class T > | |
bool | isBeam (const T &p) |
template<class T > | |
bool | isDecayed (const T &p) |
template<class T > | |
bool | isStable (const T &p) |
template<class T > | |
bool | isFinalState (const T &p) |
template<class T > | |
bool | isPhysical (const T &p) |
template<class T > | |
bool | isPhysicalHadron (const T &p) |
template<class T > | |
bool | isGenStable (const T &p) |
Determine if the particle is stable at the generator (not det-sim) level,. More... | |
template<class T > | |
bool | isSimStable (const T &p) |
Identify if the particle is considered stable at the post-detector-sim stage. More... | |
template<class T > | |
bool | isSimInteracting (const T &p) |
Identify if the particle could interact with the detector during the simulation, e.g. not a neutrino or WIMP. More... | |
template<class T > | |
bool | isStableOrSimDecayed (const T &p) |
Identify if particle is satble or decayed in simulation. More... | |
template<class T > | |
bool | isZeroEnergyPhoton (const T &p) |
Identify a photon with zero energy. Probably a workaround for a generator bug. More... | |
template<class T > | |
bool | isSingleParticle (const T &p) |
template<class T > | |
bool | isSpecialNonInteracting (const T &p) |
template<class T > | |
T | getMother (T thePart) |
Function to get a mother of particle. MCTruthClassifier legacy. More... | |
template<class C , class T > | |
T | find_matching (C TruthTES, T bcin) |
Function to find a particle in container. More... | |
template<class T > | |
void | findAllJetMothers (T thePart, std::set< T > &allJetMothers) |
Function to find all ancestors of the particle. More... | |
template<class T > | |
void | findParticleDaughters (T thePart, std::set< T > &daughters) |
Function to get the particle stable MC daughters. More... | |
template<class T > | |
T | isHadronFromB (T p) |
Function to get the parent B hadron. More... | |
template<class T > | |
bool | isHardScatVrtx (T pVert) |
Function to classify the vertex as hard scattering vertex. More... | |
template<class T > | |
bool | fromHadron (T p, T hadptr, bool &fromTau, bool &fromBSM) |
Function to classify the particle. More... | |
template<class T > | |
auto | findEndVert (T thePart) -> decltype(thePart->end_vertex()) |
Function to find the end vertex of a particle. More... | |
template<class V > | |
auto | findFinalStatePart (V EndVert) -> decltype(EndVert->particles_out()) |
Function to find the stable particle descendants of the gived vertex.. More... | |
T MC::find_matching | ( | C | TruthTES, |
T | bcin | ||
) |
Function to find a particle in container.
This can be used for HepMC3::GenVertexPtr, HepMC3::ConstGenVertexPtr or xAOD::TruthVertex*
Definition at line 103 of file HepMCHelpers.h.
void MC::findAllJetMothers | ( | T | thePart, |
std::set< T > & | allJetMothers | ||
) |
Function to find all ancestors of the particle.
This can be used for HepMC3::GenParticlePtr, HepMC3::ConstGenParticlePtr or xAOD::TruthParticle*
Definition at line 116 of file HepMCHelpers.h.
auto MC::findEndVert | ( | T | thePart | ) | -> decltype(thePart->end_vertex()) |
Function to find the end vertex of a particle.
This algorithm allows for 1->1 decays.
This can be used for HepMC3::GenVertexPtr, HepMC3::ConstGenVertexPtr or xAOD::TruthVertex* and particle counterparts
Definition at line 212 of file HepMCHelpers.h.
auto MC::findFinalStatePart | ( | V | EndVert | ) | -> decltype(EndVert->particles_out()) |
Function to find the stable particle descendants of the gived vertex..
This can be used for HepMC3::GenVertexPtr, HepMC3::ConstGenVertexPtr or xAOD::TruthVertex* and particle counterparts
Definition at line 240 of file HepMCHelpers.h.
void MC::findParticleDaughters | ( | T | thePart, |
std::set< T > & | daughters | ||
) |
Function to get the particle stable MC daughters.
This can be used for HepMC3::GenParticlePtr, HepMC3::ConstGenParticlePtr or xAOD::TruthParticle*
Definition at line 129 of file HepMCHelpers.h.
bool MC::fromHadron | ( | T | p, |
T | hadptr, | ||
bool & | fromTau, | ||
bool & | fromBSM | ||
) |
Function to classify the particle.
AV: This is MCtruthClassifier legacy. The function should be improved in the future. This can be used for HepMC3::GenVertexPtr, HepMC3::ConstGenVertexPtr or xAOD::TruthVertex*
Definition at line 184 of file HepMCHelpers.h.
T MC::getMother | ( | T | thePart | ) |
Function to get a mother of particle. MCTruthClassifier legacy.
This can be used for HepMC3::GenVertexPtr, HepMC3::ConstGenVertexPtr or xAOD::TruthVertex*
Definition at line 68 of file HepMCHelpers.h.
|
inline |
Definition at line 28 of file HepMCHelpers.h.
|
inline |
Identify if the particle with given PDG ID would produce ID tracks but not shower in the detector if stable.
Definition at line 26 of file HepMCHelpers.h.
|
inline |
Definition at line 29 of file HepMCHelpers.h.
|
inline |
Definition at line 31 of file HepMCHelpers.h.
|
inline |
Determine if the particle is stable at the generator (not det-sim) level,.
Definition at line 36 of file HepMCHelpers.h.
T MC::isHadronFromB | ( | T | p | ) |
Function to get the parent B hadron.
This can be used for HepMC3::GenParticlePtr, HepMC3::ConstGenParticlePtr or xAOD::TruthParticle*
AV: Strictly speaking, this is wrong and one has to check all the incoming particles. However that is MCTruthCalssifier legacy that should be fixed later at some point.
Definition at line 142 of file HepMCHelpers.h.
bool MC::isHardScatVrtx | ( | T | pVert | ) |
Function to classify the vertex as hard scattering vertex.
AV: This is MCtruthClassifier legacy. Note that this function willnot capture some cases of the HardScattering vertices. The function should be improved in the future. This can be used for HepMC3::GenVertexPtr, HepMC3::ConstGenVertexPtr or xAOD::TruthVertex*
Definition at line 158 of file HepMCHelpers.h.
|
inline |
Identify if the particle with given PDG ID would not interact with the detector, i.e. not a neutrino or WIMP.
Definition at line 23 of file HepMCHelpers.h.
|
inline |
Definition at line 32 of file HepMCHelpers.h.
|
inline |
Definition at line 33 of file HepMCHelpers.h.
|
inline |
Identify if the particle could interact with the detector during the simulation, e.g. not a neutrino or WIMP.
Definition at line 42 of file HepMCHelpers.h.
|
inline |
Identify if the particle is considered stable at the post-detector-sim stage.
Definition at line 39 of file HepMCHelpers.h.
|
inline |
Definition at line 55 of file HepMCHelpers.h.
|
inline |
Definition at line 57 of file HepMCHelpers.h.
|
inline |
Definition at line 30 of file HepMCHelpers.h.
|
inline |
Identify if particle is satble or decayed in simulation.
Definition at line 47 of file HepMCHelpers.h.
|
inline |
Identify a photon with zero energy. Probably a workaround for a generator bug.
Definition at line 53 of file HepMCHelpers.h.