![]() |
ATLAS Offline Software
|
Human-readable names for the values of ParticleType, ParticleOrigin and ParticleOutCome. More...
#include <TruthClasses.h>
Public Attributes | |
| std::vector< std::string > | sParticleType |
| Names of the ParticleType values, indexed by value (0 = "Unknown" ... 39 = "OtherBSMParticle"). | |
| std::vector< std::string > | sParticleOrigin |
| Names of the ParticleOrigin values, indexed by value (0 = "NonDefined" ... 47 = "MultiBoson"). | |
Human-readable names for the values of ParticleType, ParticleOrigin and ParticleOutCome.
Each vector is indexed by the numeric value of the corresponding enum, so sParticleType[IsoElectron] is "IsoElectron". The order of the strings must therefore follow the enum values, not the order in which the enumerators are written above. Use it to print or label classifier results, or to convert a name from a configuration string back to its value by finding it in the vector (as ParticleLevelIsolationAlg does for sParticleType); there is no bounds checking, so an out-of-range value is undefined behaviour.
Definition at line 165 of file TruthClasses.h.
| std::vector<std::string> MCTruthPartClassifier::ParticleDef::sParticleOrigin |
Names of the ParticleOrigin values, indexed by value (0 = "NonDefined" ... 47 = "MultiBoson").
Not used anywhere else in Athena at the moment. Caution: entry 16 is "WZMSSM", while the enumerator with that value is HeavyBoson, so a name lookup as done for sParticleType would not find "HeavyBoson" and would map "WZMSSM" to HeavyBoson.
Definition at line 215 of file TruthClasses.h.
| std::vector<std::string> MCTruthPartClassifier::ParticleDef::sParticleType |
Names of the ParticleType values, indexed by value (0 = "Unknown" ... 39 = "OtherBSMParticle").
Used by ParticleLevelIsolationAlg (TruthParticleLevelAnalysisAlgorithms) to turn its checkType string property into a ParticleType, taking the index of the matching entry as the enum value. This relies on every entry sitting at the index of its enumerator, so keep them in sync.
Definition at line 170 of file TruthClasses.h.