ATLAS Offline Software
TruthCaloShowerDecorator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DERIVATIONFRAMEWORK_TRUTHCALOSHOWERDECORATOR_H
6 #define DERIVATIONFRAMEWORK_TRUTHCALOSHOWERDECORATOR_H
7 
10 #include "GaudiKernel/ToolHandle.h"
11 
12 #include "GaudiKernel/EventContext.h"
15 
18 
19 #include <vector>
20 
21 namespace DerivationFramework {
22 
23 class TruthCaloShowerDecorator : public extends<AthAlgTool, IAugmentationTool>
24 {
25 public:
26  TruthCaloShowerDecorator(const std::string& t,
27  const std::string& n,
28  const IInterface* p);
29 
32  virtual StatusCode addBranches() const;
33 
34 private:
37  this,
38  "TruthParticleContainerName",
39  "egammaTruthParticles",
40  "SG key of the truth particle container"
41  };
42 
43  // Non-configurable read handle keys
45  "TruthLArClustersEtot",
46  };
48  "TruthLArClustersEvis"
49  };
51  "TruthLArClustersEem"
52  };
53 
54  // Write decoration handle keys
56  m_linkDecoratorClusterEtot{ this, "truthLArClusterEtotLink", "", "" };
58  m_linkDecoratorClusterEvis{ this, "truthLArClusterEvisLink", "", "" };
60  m_linkDecoratorClusterEem{ this, "truthLArClusterEemLink", "", "" };
61 
62  ToolHandle<CalibHitToCaloCellTool> m_calibhitToCaloCellTool{
63  this,
64  "CalibHitToCaloCellTool",
65  "",
66  "Handle to the Calib Hit to Calo cell Tool"
67  };
68 };
69 }
70 
71 #endif // DERIVATIONFRAMEWORK_TRUTHCALOSHOWERDECORATOR_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >
DerivationFramework::TruthCaloShowerDecorator::m_linkDecoratorClusterEem
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_linkDecoratorClusterEem
Definition: TruthCaloShowerDecorator.h:60
DerivationFramework::TruthCaloShowerDecorator::finalize
StatusCode finalize()
Definition: TruthCaloShowerDecorator.cxx:51
DerivationFramework::TruthCaloShowerDecorator::m_linkDecoratorClusterEvis
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_linkDecoratorClusterEvis
Definition: TruthCaloShowerDecorator.h:58
CalibHitToCaloCellTool.h
Convert energy deposits from calibration hits to CaloCell, xAOD::CaloCluster.
IAugmentationTool.h
TruthParticleContainer.h
DerivationFramework::TruthCaloShowerDecorator::m_linkDecoratorClusterEtot
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_linkDecoratorClusterEtot
Definition: TruthCaloShowerDecorator.h:56
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey< xAOD::TruthParticleContainer >
DerivationFramework::TruthCaloShowerDecorator::m_truthClusterContainerEvis
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_truthClusterContainerEvis
Definition: TruthCaloShowerDecorator.h:47
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
DerivationFramework::TruthCaloShowerDecorator::m_truthClusterContainerEtot
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_truthClusterContainerEtot
Definition: TruthCaloShowerDecorator.h:44
beamspotman.n
n
Definition: beamspotman.py:729
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DerivationFramework::TruthCaloShowerDecorator::m_truthClusterContainerEem
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_truthClusterContainerEem
Definition: TruthCaloShowerDecorator.h:50
AthAlgTool.h
WriteDecorHandle.h
Handle class for adding a decoration to an object.
DerivationFramework::TruthCaloShowerDecorator::TruthCaloShowerDecorator
TruthCaloShowerDecorator(const std::string &t, const std::string &n, const IInterface *p)
Definition: TruthCaloShowerDecorator.cxx:15
DerivationFramework::TruthCaloShowerDecorator::addBranches
virtual StatusCode addBranches() const
Definition: TruthCaloShowerDecorator.cxx:57
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::TruthCaloShowerDecorator::m_calibhitToCaloCellTool
ToolHandle< CalibHitToCaloCellTool > m_calibhitToCaloCellTool
Definition: TruthCaloShowerDecorator.h:62
DerivationFramework::TruthCaloShowerDecorator
Definition: TruthCaloShowerDecorator.h:24
DerivationFramework::TruthCaloShowerDecorator::initialize
StatusCode initialize()
Definition: TruthCaloShowerDecorator.cxx:23
DerivationFramework::TruthCaloShowerDecorator::m_truthParticleContainerName
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleContainerName
SG key of the truth particle container.
Definition: TruthCaloShowerDecorator.h:36