ATLAS Offline Software
CaloCalibClusterDecoratorAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOCALIBCLUSTERDECORATORALGORITHM_H
6 #define CALOCALIBCLUSTERDECORATORALGORITHM_H
7 
11 
12 //EDM Classes
15 
16 //EDM Container Classes
18 
19 //C++ classes
20 #include <map>
21 #include <vector>
22 
30 
31 public:
34 
37 
38  /* Gaudi algorithm hooks */
39  virtual StatusCode initialize() override;
40  virtual StatusCode execute(const EventContext& ctx) const override;
41  virtual StatusCode finalize() override;
42 
43 private:
45  SG::ReadHandleKey<std::map<Identifier,std::vector<const CaloCalibrationHit*> > > m_mapIdentifierToCalibHitsReadHandleKey{this,"IdentifierToCalibHitsMapName","IdentifierToCalibHitsMap","ReadHandleKey for the map between Identifiers and sets of calibration hits"};
46 
48  SG::WriteDecorHandleKey<xAOD::CaloClusterContainer> m_caloClusterWriteDecorHandleKeyNLeadingTruthParticles{this,"CaloClusterWriteDecorHandleKey_NLeadingTruthParticles","CaloCalTopoClusters.calclus_NLeadingTruthParticleBarcodeEnergyPairs"};
49 
51  ToolHandle<ICaloCalibClusterTruthAttributerTool> m_truthAttributerTool{this,"TruthAttributerTool",""," ToolHandle to a tool to create the calibration hit truth information that we need for the decoration"};
52 
54  Gaudi::Property<unsigned int> m_numTruthParticles{this,"NumTruthParticles",20,"Set number of truth particles per CaloCluster/PFO for which we store calibration hit energy"};
55 
56 };
57 #endif
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
CaloCalibClusterDecoratorAlgorithm::finalize
virtual StatusCode finalize() override
Definition: CaloCalibClusterDecoratorAlgorithm.cxx:45
CaloCalibrationHit.h
CaloCalibDefineTypes.h
ICaloCalibClusterTruthAttributerTool.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
CaloCalibClusterDecoratorAlgorithm::m_truthAttributerTool
ToolHandle< ICaloCalibClusterTruthAttributerTool > m_truthAttributerTool
ToolHandle to a tool to create the calibration hit truth information that we need for the decoration.
Definition: CaloCalibClusterDecoratorAlgorithm.h:51
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
CaloCalibClusterDecoratorAlgorithm::initialize
virtual StatusCode initialize() override
Definition: CaloCalibClusterDecoratorAlgorithm.cxx:10
CaloCalibClusterDecoratorAlgorithm::m_mapIdentifierToCalibHitsReadHandleKey
SG::ReadHandleKey< std::map< Identifier, std::vector< const CaloCalibrationHit * > > > m_mapIdentifierToCalibHitsReadHandleKey
ReadHandleKey for the map between Identifiers and sets of calibration hits.
Definition: CaloCalibClusterDecoratorAlgorithm.h:45
CaloCalibClusterDecoratorAlgorithm::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: CaloCalibClusterDecoratorAlgorithm.cxx:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloCalibClusterDecoratorAlgorithm::m_numTruthParticles
Gaudi::Property< unsigned int > m_numTruthParticles
Allow user to set the number of truth particles per clusterCaloCluster or PFO, in descending pt order...
Definition: CaloCalibClusterDecoratorAlgorithm.h:54
AthReentrantAlgorithm.h
CaloCalibClusterDecoratorAlgorithm
This algorithm decorates xAOD::CaloCluster with calibration hit truth information.
Definition: CaloCalibClusterDecoratorAlgorithm.h:29
CaloCalibClusterDecoratorAlgorithm::~CaloCalibClusterDecoratorAlgorithm
virtual ~CaloCalibClusterDecoratorAlgorithm()
Destructor.
Definition: CaloCalibClusterDecoratorAlgorithm.h:36
CaloClusterContainer.h
TruthParticle.h
CaloCalibClusterDecoratorAlgorithm::m_caloClusterWriteDecorHandleKeyNLeadingTruthParticles
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_caloClusterWriteDecorHandleKeyNLeadingTruthParticles
Write handle key to decorate CaloCluster with threeN leading truth particle barcode and energy.
Definition: CaloCalibClusterDecoratorAlgorithm.h:48