ATLAS Offline Software
MuonTruthClassifierFallback.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef DERIVATIONFRAMEWORK_MuonTruthClassifierFallback_H
5 #define DERIVATIONFRAMEWORK_MuonTruthClassifierFallback_H
6 
7 #include <string>
8 #include <vector>
9 
10 // Gaudi & Athena basics
13 #include "GaudiKernel/ToolHandle.h"
20 
21 namespace DerivationFramework {
23  public:
25  MuonTruthClassifierFallback(const std::string& t, const std::string& n, const IInterface* p);
26 
29 
30  // Athena algtool's Hooks
31  StatusCode initialize() override;
32 
33  virtual StatusCode addBranches() const override;
34 
35  private:
36  SG::ReadHandleKey<xAOD::IParticleContainer> m_containerKey{this, "ContainerKey", "", "Key of the container to be decorated"};
37  SG::ReadHandleKey<xAOD::TruthEventContainer> m_truthSGKey{this, "TruthSGKey", "TruthEvents", "Key of the truth event container"};
38  SG::ReadHandleKey<xAOD::TruthPileupEventContainer> m_truthPileupSGKey{this, "TruthPileupContainerKey", "TruthPileupEvents",
39  "Key of the pile-up event container"};
40  SG::ReadHandleKey<xAOD::TruthParticleContainer> m_truthMuonSGKey{this, "TruthMuonContainerKey", "MuonTruthParticles", ""};
41 
49 
50  Gaudi::Property<float> m_minPt{this, "MinPt", 2500};
51 
52  ToolHandle<IMCTruthClassifier> m_mcTruthClassifier{this, "MCTruthClassifierTool", "", "Handle of the MC truth classifier"};
53  };
54 } // namespace DerivationFramework
55 #endif //
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::MuonTruthClassifierFallback::m_truthMuonSGKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthMuonSGKey
Definition: MuonTruthClassifierFallback.h:40
DerivationFramework::MuonTruthClassifierFallback::m_Truth_type_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_type_Key
Definition: MuonTruthClassifierFallback.h:44
DerivationFramework::MuonTruthClassifierFallback::m_truthPileupSGKey
SG::ReadHandleKey< xAOD::TruthPileupEventContainer > m_truthPileupSGKey
Definition: MuonTruthClassifierFallback.h:38
IAugmentationTool.h
DerivationFramework::MuonTruthClassifierFallback::m_truthSGKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthSGKey
Definition: MuonTruthClassifierFallback.h:37
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
TruthPileupEventContainer.h
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::MuonTruthClassifierFallback::m_mcTruthClassifier
ToolHandle< IMCTruthClassifier > m_mcTruthClassifier
Definition: MuonTruthClassifierFallback.h:52
DerivationFramework::MuonTruthClassifierFallback::m_minPt
Gaudi::Property< float > m_minPt
Definition: MuonTruthClassifierFallback.h:50
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
IMCTruthClassifier.h
DerivationFramework::MuonTruthClassifierFallback::addBranches
virtual StatusCode addBranches() const override
Pass the thinning service
Definition: MuonTruthClassifierFallback.cxx:60
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
DerivationFramework::MuonTruthClassifierFallback
Definition: MuonTruthClassifierFallback.h:22
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
DerivationFramework::MuonTruthClassifierFallback::initialize
StatusCode initialize() override
Definition: MuonTruthClassifierFallback.cxx:33
AthAlgTool.h
DerivationFramework::MuonTruthClassifierFallback::MuonTruthClassifierFallback
MuonTruthClassifierFallback(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
Definition: MuonTruthClassifierFallback.cxx:26
DerivationFramework::MuonTruthClassifierFallback::m_Truth_origin_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_origin_Key
Definition: MuonTruthClassifierFallback.h:45
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::MuonTruthClassifierFallback::m_Truth_PU_origin_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_PU_origin_Key
Definition: MuonTruthClassifierFallback.h:48
DerivationFramework::MuonTruthClassifierFallback::m_containerKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_containerKey
Definition: MuonTruthClassifierFallback.h:36
DerivationFramework::MuonTruthClassifierFallback::~MuonTruthClassifierFallback
~MuonTruthClassifierFallback()=default
Destructor.
DerivationFramework::MuonTruthClassifierFallback::m_Truth_PU_type_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_PU_type_Key
Definition: MuonTruthClassifierFallback.h:47
DerivationFramework::MuonTruthClassifierFallback::m_Truth_dR_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_dR_Key
Key properties are overwirrten during initialize.
Definition: MuonTruthClassifierFallback.h:43
AthAlgTool
Definition: AthAlgTool.h:26
TruthEventContainer.h
DerivationFramework::MuonTruthClassifierFallback::m_Truth_PU_dR_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_PU_dR_Key
Definition: MuonTruthClassifierFallback.h:46