ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCalibClusterDecoratorTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef CALOCALIBHITREC_CALOCALIBCLUSTERDECORATORTOOL_H
6#define CALOCALIBHITREC_CALOCALIBCLUSTERDECORATORTOOL_H
7
9#include "GaudiKernel/ToolHandle.h"
13
16
17#include <map>
18#include <vector>
19
21
23 : public extends<AthAlgTool, CaloClusterCollectionProcessor> {
24
25public:
26 using base_class::base_class;
27
29
30 virtual StatusCode execute(const EventContext& ctx,
31 xAOD::CaloClusterContainer* theClusColl) const override final;
32
33 virtual StatusCode initialize() override;
34 virtual StatusCode finalize() override;
35
37
38private:
41 this,
42 "IdentifierToCalibHitsMapName",
43 "IdentifierToCalibHitsMap",
44 "ReadHandleKey for the map between Identifiers and sets of calibration hits"
45 };
46
49 this,
50 "CaloClusterWriteDecorHandleKey_NLeadingTruthParticles",
51 "CaloCalTopoClusters.calclus_NLeadingTruthParticleBarcodeEnergyPairs"
52 };
53
54 ToolHandle<ICaloCalibClusterTruthAttributerTool>
56 this,
57 "TruthAttributerTool",
58 "",
59 "ToolHandle to a tool to create the calibration hit truth information that we need for the decoration"
60 };
61
62 Gaudi::Property<unsigned int>
64 this,
65 "NumTruthParticles",
66 20,
67 "Set number of truth particles per CaloCluster/PFO for which we store calibration hit energy"
68 };
69};
70
71#endif
Base class for cluster processing tools called from CaloClusterMaker.
virtual StatusCode initialize() override
ToolHandle< ICaloCalibClusterTruthAttributerTool > m_truthAttributerTool
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *theClusColl) const override final
Gaudi::Property< unsigned int > m_numTruthParticles
SG::ReadHandleKey< std::map< Identifier, std::vector< const CaloCalibrationHit * > > > m_mapIdentifierToCalibHitsReadHandleKey
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_caloClusterWriteDecorHandleKeyNLeadingTruthParticles
Class to store calorimeter calibration hit.
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.