ATLAS Offline Software
TruthBornLeptonCollectionMaker.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // TruthBornLeptonCollectionMaker.h
8 
9 #ifndef DERIVATIONFRAMEWORK_TRUTHBORNLEPTONCOLLECTIONMAKER_H
10 #define DERIVATIONFRAMEWORK_TRUTHBORNLEPTONCOLLECTIONMAKER_H
11 
12 // Base classes
15 // EDM includes for the particles we need
17 // R/W/D key handles
21 // For the Metadata store
22 #include "GaudiKernel/ServiceHandle.h"
23 // STL includes
24 #include <string>
25 
26 // Forward declarations
27 class StoreGateSvc;
28 
29 namespace DerivationFramework {
30 
32  public:
33  TruthBornLeptonCollectionMaker(const std::string& t, const std::string& n, const IInterface* p);
36  virtual StatusCode addBranches() const;
37 
38  private:
41  {this, "ParticlesKey", "TruthParticles", "Name of TruthParticle key for input"};
44  {this, "NewCollectionName", "", "Name of TruthParticle key for output"};
45  // Decorators
47  {this, "classifierParticleOrigin", "TruthParticles.classifierParticleOrigin", "Particle origin decoration, set at initialisation"};
49  {this, "classifierParticleType","TruthParticles.classifierParticleType", "Particle type decoration, set at initialisation"};
51  {this, "classifierParticleOutCome", "TruthParticles.classifierParticleOutCome", "Particle outcome decoration, set at initialisation"};
53  {this, "Classification", "TruthParticles.Classification", "Classification code decorator, set at initialisation"};
54 
56  bool hasBareDescendent( const xAOD::TruthParticle* p ) const;
58  };
59 }
60 
61 #endif // DERIVATIONFRAMEWORK_TRUTHBORNLEPTONCOLLECTIONMAKER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
IAugmentationTool.h
DerivationFramework::TruthBornLeptonCollectionMaker::m_originDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
Definition: TruthBornLeptonCollectionMaker.h:47
DerivationFramework::TruthBornLeptonCollectionMaker::m_outcomeDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_outcomeDecoratorKey
Definition: TruthBornLeptonCollectionMaker.h:51
DerivationFramework::TruthBornLeptonCollectionMaker::TruthBornLeptonCollectionMaker
TruthBornLeptonCollectionMaker(const std::string &t, const std::string &n, const IInterface *p)
Definition: TruthBornLeptonCollectionMaker.cxx:27
DerivationFramework::TruthBornLeptonCollectionMaker::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition: TruthBornLeptonCollectionMaker.cxx:74
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey< xAOD::TruthParticleContainer >
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:41
AthAlgTool.h
DerivationFramework::TruthBornLeptonCollectionMaker::initialize
StatusCode initialize()
Definition: TruthBornLeptonCollectionMaker.cxx:42
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::TruthBornLeptonCollectionMaker::m_collectionName
SG::WriteHandleKey< xAOD::TruthParticleContainer > m_collectionName
Definition: TruthBornLeptonCollectionMaker.h:44
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DerivationFramework::TruthBornLeptonCollectionMaker::m_typeDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_typeDecoratorKey
Definition: TruthBornLeptonCollectionMaker.h:49
DerivationFramework::TruthBornLeptonCollectionMaker
Definition: TruthBornLeptonCollectionMaker.h:31
DerivationFramework::TruthBornLeptonCollectionMaker::hasBareDescendent
bool hasBareDescendent(const xAOD::TruthParticle *p) const
Helper function for finding bare descendents of born leptons.
Definition: TruthBornLeptonCollectionMaker.cxx:212
DerivationFramework::TruthBornLeptonCollectionMaker::m_classificationDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_classificationDecoratorKey
Definition: TruthBornLeptonCollectionMaker.h:53
DerivationFramework::TruthBornLeptonCollectionMaker::m_metaStore
ServiceHandle< StoreGateSvc > m_metaStore
Handle on the metadata store for init.
Definition: TruthBornLeptonCollectionMaker.h:55
DerivationFramework::TruthBornLeptonCollectionMaker::~TruthBornLeptonCollectionMaker
~TruthBornLeptonCollectionMaker()
Definition: TruthBornLeptonCollectionMaker.cxx:38
AthAlgTool
Definition: AthAlgTool.h:26
TruthParticle.h
ServiceHandle< StoreGateSvc >
DerivationFramework::TruthBornLeptonCollectionMaker::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
< Input particle collection key
Definition: TruthBornLeptonCollectionMaker.h:41