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 
24  : public AthAlgTool
25  , public IAugmentationTool
26 {
27 public:
28  TruthCaloShowerDecorator(const std::string& t,
29  const std::string& n,
30  const IInterface* p);
31 
34  virtual StatusCode addBranches() const;
35 
36 private:
39  this,
40  "TruthParticleContainerName",
41  "egammaTruthParticles",
42  "SG key of the truth particle container"
43  };
44 
45  // Non-configurable read handle keys
47  "TruthLArClustersEtot",
48  };
50  "TruthLArClustersEvis"
51  };
53  "TruthLArClustersEem"
54  };
55 
56  // Write decoration handle keys
58  m_linkDecoratorClusterEtot{ this, "truthLArClusterEtotLink", "", "" };
60  m_linkDecoratorClusterEvis{ this, "truthLArClusterEvisLink", "", "" };
62  m_linkDecoratorClusterEem{ this, "truthLArClusterEemLink", "", "" };
63 
64  ToolHandle<CalibHitToCaloCellTool> m_calibhitToCaloCellTool{
65  this,
66  "CalibHitToCaloCellTool",
67  "",
68  "Handle to the Calib Hit to Calo cell Tool"
69  };
70 };
71 }
72 
73 #endif // DERIVATIONFRAMEWORK_TRUTHCALOSHOWERDECORATOR_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::TruthCaloShowerDecorator::m_linkDecoratorClusterEem
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_linkDecoratorClusterEem
Definition: TruthCaloShowerDecorator.h:62
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
DerivationFramework::TruthCaloShowerDecorator::finalize
StatusCode finalize()
Definition: TruthCaloShowerDecorator.cxx:52
DerivationFramework::TruthCaloShowerDecorator::m_linkDecoratorClusterEvis
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_linkDecoratorClusterEvis
Definition: TruthCaloShowerDecorator.h:60
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:58
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:49
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::TruthCaloShowerDecorator::m_truthClusterContainerEtot
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_truthClusterContainerEtot
Definition: TruthCaloShowerDecorator.h:46
beamspotman.n
n
Definition: beamspotman.py:731
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:52
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
Pass the thinning service
Definition: TruthCaloShowerDecorator.cxx:58
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::TruthCaloShowerDecorator::m_calibhitToCaloCellTool
ToolHandle< CalibHitToCaloCellTool > m_calibhitToCaloCellTool
Definition: TruthCaloShowerDecorator.h:64
DerivationFramework::TruthCaloShowerDecorator
Definition: TruthCaloShowerDecorator.h:26
DerivationFramework::TruthCaloShowerDecorator::initialize
StatusCode initialize()
Definition: TruthCaloShowerDecorator.cxx:24
DerivationFramework::TruthCaloShowerDecorator::m_truthParticleContainerName
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleContainerName
SG key of the truth particle container.
Definition: TruthCaloShowerDecorator.h:38
AthAlgTool
Definition: AthAlgTool.h:26