|
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"};
45 {
this,
"ParticlesKey",
"TruthParticles",
"ReadHandleKey for input TruthParticleContainer"};
47 {
this,
"NewParticleKey",
"",
"WriteHandleKey for new TruthParticleContainer"};
49 {
this,
"NewVertexKey",
"",
"WriteHandleKey for new TruthVertexContainer"};
51 {
this,
"classifierParticleOrigin",
"TruthParticles.classifierParticleOrigin",
"Name of the decoration which records the particle origin as determined by the MCTruthClassifier"};
53 {
this,
"classifierParticleType",
"TruthParticles.classifierParticleType",
"Name of the decoration which records the particle type as determined by the MCTruthClassifier"};
55 {
this,
"classifierParticleOutCome",
"TruthParticles.classifierParticleOutCome",
"Name of the decoration which records the particle outcome as determined by the MCTruthClassifier"};
57 {
this,
"Classification",
"TruthParticles.Classification",
"Name of the decoration which records the particle outcome as determined by the MCTruthClassifier"};
59 {
this,
"motherID",
"TruthParticles.motherID",
"Name of the decoration which records the ID of the particle's mother"};
61 {
this,
"daughterID",
"TruthParticles.daughterID",
"Name of the decoration which records the ID of the particle's daughter"};
64 {
this,
"NewCollectionName",
"",
"New collection name stem"};
66 {
this,
"Generations", -1,
"Number of generations after the particle in question to keep (-1 for all)"};
81 #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 WriteDecorHandle 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)
int generations(const T &p)
Method to return how many interactions a particle has undergone during simulation (only to be used in...
Handle class for recording to StoreGate.
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
Gaudi::Property< std::string > m_collectionName
< Output collection name stem
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::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
bool id_ok(const xAOD::TruthParticle &part) const
Gaudi::Property< int > m_generations
< Number of generations after the particle in question to keep
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
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_daughterIDDecoratorKey
virtual StatusCode addBranches() const
Pass the thinning service