 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef DERIVATIONFRAMEWORK_TRUTHDECAYCOLLECTIONMAKER_H
6 #define DERIVATIONFRAMEWORK_TRUTHDECAYCOLLECTIONMAKER_H
29 using base_class::base_class;
36 {
this,
"PDGIDsToKeep", {},
"PDG IDs of particles to build the collection from"};
38 {
this,
"KeepBHadrons",
false,
"Keep b-hadrons (easier than by PDG ID)"};
40 {
this,
"KeepCHadrons",
false,
"Keep c-hadrons (easier than by PDG ID)"};
42 {
this,
"KeepBSM",
false,
"Keep BSM particles (easier than by PDG ID)"};
44 {
this,
"RejectHadronChildren",
false,
"Drop hadron descendants"};
48 {
this,
"ParticlesKey",
"TruthParticles",
"ReadHandleKey for input TruthParticleContainer"};
50 {
this,
"Input_classifierParticleOrigin",
m_particlesKey,
"classifierParticleOrigin",
"Name of the decoration which records the particle origin as determined by the MCTruthClassifier"};
52 {
this,
"Input_classifierParticleType",
m_particlesKey,
"classifierParticleType",
"Name of the decoration which records the particle type as determined by the MCTruthClassifier"};
54 {
this,
"Input_classifierParticleOutCome",
m_particlesKey,
"classifierParticleOutCome",
"Name of the decoration which records the particle outcome as determined by the MCTruthClassifier"};
56 {
this,
"Input_Classification",
m_particlesKey,
"Classification",
"Name of the decoration which records the particle outcome as determined by the MCTruthClassifier"};
60 {
this,
"NewVertexKey",
"",
"WriteHandleKey for new TruthVertexContainer"};
62 {
this,
"NewParticleKey",
"",
"WriteHandleKey for new TruthParticleContainer"};
65 {
this,
"classifierParticleOrigin",
m_outputParticlesKey,
"classifierParticleOrigin",
"Name of the decoration which records the particle origin as determined by the MCTruthClassifier"};
67 {
this,
"classifierParticleType",
m_outputParticlesKey,
"classifierParticleType",
"Name of the decoration which records the particle type as determined by the MCTruthClassifier"};
69 {
this,
"classifierParticleOutCome",
m_outputParticlesKey,
"classifierParticleOutCome",
"Name of the decoration which records the particle outcome as determined by the MCTruthClassifier"};
71 {
this,
"Classification",
m_outputParticlesKey,
"Classification",
"Name of the decoration which records the particle outcome as determined by the MCTruthClassifier"};
73 {
this,
"motherID",
m_outputParticlesKey,
"motherID",
"Name of the decoration which records the ID of the particle's mother"};
75 {
this,
"daughterID",
m_outputParticlesKey,
"daughterID",
"Name of the decoration which records the ID of the particle's daughter"};
79 {
this,
"Generations", -1,
"Number of generations after the particle in question to keep (-1 for all)"};
94 #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
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
virtual StatusCode addBranches(const EventContext &ctx) const override final
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
virtual StatusCode initialize() override final
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