ATLAS Offline Software
TruthClassificationDecorator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DERIVATIONFRAMEWORK_TRUTHCLASSIFICATIONDECORATOR_H
6 #define DERIVATIONFRAMEWORK_TRUTHCLASSIFICATIONDECORATOR_H
7 
8 #include <string>
9 
15 #include "GaudiKernel/ToolHandle.h"
16 
17 class IMCTruthClassifier;
18 
19 namespace DerivationFramework {
20 
22  public:
23  TruthClassificationDecorator(const std::string& t, const std::string& n, const IInterface* p);
27  virtual StatusCode addBranches() const;
28 
29  private:
30  mutable std::atomic<unsigned int> m_ntotpart;
32  {this, "ParticlesKey", "TruthParticles", "ReadHandleKey for input TruthParticleContainer"};
33  // Decorator keys
35  {this, "originalTruthParticle", m_particlesKey, "originalTruthParticle", "Link to the original truth particle"};
37  {this, "classifierParticleOrigin", m_particlesKey, "classifierParticleOrigin", "Particle origin decoration"};
39  {this, "classifierParticleType", m_particlesKey, "classifierParticleType", "Particle type decoration"};
41  {this, "classifierParticleOutCome", m_particlesKey, "classifierParticleOutCome", "Particle outcome decoration"};
43  {this, "Classification", m_particlesKey, "Classification", "Classification code decorator"};
44  ToolHandle<IMCTruthClassifier> m_classifier;
45  };
46 }
47 
48 #endif // DERIVATIONFRAMEWORK_TRUTHCLASSIFICATIONDECORATOR_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
DerivationFramework::TruthClassificationDecorator::m_classificationDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_classificationDecoratorKey
Definition: TruthClassificationDecorator.h:43
IAugmentationTool.h
TruthParticleContainer.h
DerivationFramework::TruthClassificationDecorator::TruthClassificationDecorator
TruthClassificationDecorator(const std::string &t, const std::string &n, const IInterface *p)
Definition: TruthClassificationDecorator.cxx:19
DerivationFramework::TruthClassificationDecorator::m_outcomeDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_outcomeDecoratorKey
Definition: TruthClassificationDecorator.h:41
DerivationFramework::TruthClassificationDecorator::m_originDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
Definition: TruthClassificationDecorator.h:37
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::TruthClassificationDecorator::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition: TruthClassificationDecorator.cxx:61
SG::ReadHandleKey< xAOD::TruthParticleContainer >
DerivationFramework::TruthClassificationDecorator::m_linkDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_linkDecoratorKey
Definition: TruthClassificationDecorator.h:35
DerivationFramework::TruthClassificationDecorator::initialize
StatusCode initialize()
Definition: TruthClassificationDecorator.cxx:35
DerivationFramework::TruthClassificationDecorator::finalize
StatusCode finalize()
Definition: TruthClassificationDecorator.cxx:53
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
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
AthAlgTool.h
DerivationFramework::TruthClassificationDecorator::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
Definition: TruthClassificationDecorator.h:32
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::TruthClassificationDecorator
Definition: TruthClassificationDecorator.h:21
DerivationFramework::TruthClassificationDecorator::m_typeDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_typeDecoratorKey
Definition: TruthClassificationDecorator.h:39
IMCTruthClassifier
Definition: IMCTruthClassifier.h:92
DerivationFramework::TruthClassificationDecorator::m_classifier
ToolHandle< IMCTruthClassifier > m_classifier
Definition: TruthClassificationDecorator.h:44
DerivationFramework::TruthClassificationDecorator::~TruthClassificationDecorator
~TruthClassificationDecorator()
Definition: TruthClassificationDecorator.cxx:31
DerivationFramework::TruthClassificationDecorator::m_ntotpart
std::atomic< unsigned int > m_ntotpart
Definition: TruthClassificationDecorator.h:30
AthAlgTool
Definition: AthAlgTool.h:26