 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef DERIVATIONFRAMEWORK_TRUTHDECAYCOLLECTIONMAKER_H
6 #define DERIVATIONFRAMEWORK_TRUTHDECAYCOLLECTIONMAKER_H
35 {
this,
"PDGIDsToKeep", {},
"PDG IDs of particles to build the collection from"};
37 {
this,
"KeepBHadrons",
false,
"Keep b-hadrons (easier than by PDG ID)"};
39 {
this,
"KeepCHadrons",
false,
"Keep c-hadrons (easier than by PDG ID)"};
41 {
this,
"KeepBSM",
false,
"Keep BSM particles (easier than by PDG ID)"};
43 {
this,
"RejectHadronChildren",
false,
"Drop hadron descendants"};
47 {
this,
"ParticlesKey",
"TruthParticles",
"ReadHandleKey for input TruthParticleContainer"};
49 {
this,
"Input_classifierParticleOrigin",
m_particlesKey,
"classifierParticleOrigin",
"Name of the decoration which records the particle origin as determined by the MCTruthClassifier"};
51 {
this,
"Input_classifierParticleType",
m_particlesKey,
"classifierParticleType",
"Name of the decoration which records the particle type as determined by the MCTruthClassifier"};
53 {
this,
"Input_classifierParticleOutCome",
m_particlesKey,
"classifierParticleOutCome",
"Name of the decoration which records the particle outcome as determined by the MCTruthClassifier"};
55 {
this,
"Input_Classification",
m_particlesKey,
"Classification",
"Name of the decoration which records the particle outcome as determined by the MCTruthClassifier"};
59 {
this,
"NewVertexKey",
"",
"WriteHandleKey for new TruthVertexContainer"};
61 {
this,
"NewParticleKey",
"",
"WriteHandleKey for new TruthParticleContainer"};
64 {
this,
"classifierParticleOrigin",
m_outputParticlesKey,
"classifierParticleOrigin",
"Name of the decoration which records the particle origin as determined by the MCTruthClassifier"};
66 {
this,
"classifierParticleType",
m_outputParticlesKey,
"classifierParticleType",
"Name of the decoration which records the particle type as determined by the MCTruthClassifier"};
68 {
this,
"classifierParticleOutCome",
m_outputParticlesKey,
"classifierParticleOutCome",
"Name of the decoration which records the particle outcome as determined by the MCTruthClassifier"};
70 {
this,
"Classification",
m_outputParticlesKey,
"Classification",
"Name of the decoration which records the particle outcome as determined by the MCTruthClassifier"};
72 {
this,
"motherID",
m_outputParticlesKey,
"motherID",
"Name of the decoration which records the ID of the particle's mother"};
74 {
this,
"daughterID",
m_outputParticlesKey,
"daughterID",
"Name of the decoration which records the ID of the particle's daughter"};
78 {
this,
"Generations", -1,
"Number of generations after the particle in question to keep (-1 for all)"};
93 #endif // DERIVATIONFRAMEWORK_TRUTHDECAYCOLLECTIONMAKER_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Gaudi::Property< bool > m_rejectHadronChildren
< Option to reject hadron descendants
SG::WriteHandleKey< xAOD::TruthParticleContainer > m_outputParticlesKey
TruthDecayCollectionMaker(const std::string &t, const std::string &n, const IInterface *p)
Gaudi::Property< bool > m_keepBSM
< Option to keep all BSM particles (better than giving PDG IDs)
Gaudi::Property< bool > m_keepBHadrons
< Option to keep all b-hadrons (better than giving PDG IDs)
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_outcomeAccessorKey
int generations(const T &p)
Method to return how many interactions a particle has undergone during simulation (only to be used in...
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_originAccessorKey
Gaudi::Property< bool > m_keepCHadrons
< Option to keep all c-hadrons (better than giving PDG IDs)
int addTruthVertex(const EventContext &, const xAOD::TruthVertex &old_vert, xAOD::TruthParticleContainer *part_cont, xAOD::TruthVertexContainer *vert_cont, std::vector< int > &seen_particles, const int generations=-1) const
Property holding a SG store/key/clid from which a WriteHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
int addTruthParticle(const EventContext &ctx, const xAOD::TruthParticle &old_part, xAOD::TruthParticleContainer *part_cont, xAOD::TruthVertexContainer *vert_cont, std::vector< int > &seen_particles, const int generations=-1) const
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_typeDecoratorKey
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_motherIDDecoratorKey
Class describing a truth particle in the MC record.
SG::WriteHandleKey< xAOD::TruthVertexContainer > m_outputVerticesKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_classificationDecoratorKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Class describing a truth vertex in the MC record.
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_classificationAccessorKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
bool id_ok(const xAOD::TruthParticle &part) const
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_typeAccessorKey
Gaudi::Property< int > m_generations
^^^^ These should be replaced by SG::Accessor.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_outcomeDecoratorKey
~TruthDecayCollectionMaker()
Gaudi::Property< std::vector< int > > m_pdgIdsToKeep
< List of PDG IDs to build this collection from
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
FIXME Using WriteDecorHandles for decorations on a Container created in the current algorithm is unne...
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_daughterIDDecoratorKey
virtual StatusCode addBranches() const