ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloCalibHitRec
CaloCalibHitRec
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
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "GaudiKernel/ToolHandle.h"
10
#include "
CaloUtils/CaloClusterCollectionProcessor.h
"
11
#include "
CaloCalibHitRec/CaloCalibDefineTypes.h
"
12
#include "
CaloCalibHitRec/ICaloCalibClusterTruthAttributerTool.h
"
13
14
#include "
xAODTruth/TruthParticle.h
"
15
#include "
xAODCaloEvent/CaloClusterContainer.h
"
16
17
#include <map>
18
#include <vector>
19
20
class
CaloCalibrationHit
;
21
22
class
CaloCalibClusterDecoratorTool
23
:
public
extends<AthAlgTool, CaloClusterCollectionProcessor> {
24
25
public
:
26
using
base_class::base_class;
27
28
using
CaloClusterCollectionProcessor::execute
;
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
36
virtual
~CaloCalibClusterDecoratorTool
() {};
37
38
private
:
39
SG::ReadHandleKey<std::map<Identifier,std::vector<const CaloCalibrationHit*>
> >
40
m_mapIdentifierToCalibHitsReadHandleKey
{
41
this
,
42
"IdentifierToCalibHitsMapName"
,
43
"IdentifierToCalibHitsMap"
,
44
"ReadHandleKey for the map between Identifiers and sets of calibration hits"
45
};
46
47
SG::WriteDecorHandleKey<xAOD::CaloClusterContainer>
48
m_caloClusterWriteDecorHandleKeyNLeadingTruthParticles
{
49
this
,
50
"CaloClusterWriteDecorHandleKey_NLeadingTruthParticles"
,
51
"CaloCalTopoClusters.calclus_NLeadingTruthParticleBarcodeEnergyPairs"
52
};
53
54
ToolHandle<ICaloCalibClusterTruthAttributerTool>
55
m_truthAttributerTool
{
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>
63
m_numTruthParticles
{
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
AthAlgTool.h
CaloCalibDefineTypes.h
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
CaloClusterContainer.h
TruthParticle.h
ICaloCalibClusterTruthAttributerTool.h
CaloCalibClusterDecoratorTool
Definition
CaloCalibClusterDecoratorTool.h:23
CaloCalibClusterDecoratorTool::initialize
virtual StatusCode initialize() override
Definition
CaloCalibClusterDecoratorTool.cxx:9
CaloCalibClusterDecoratorTool::finalize
virtual StatusCode finalize() override
Definition
CaloCalibClusterDecoratorTool.cxx:63
CaloCalibClusterDecoratorTool::m_truthAttributerTool
ToolHandle< ICaloCalibClusterTruthAttributerTool > m_truthAttributerTool
Definition
CaloCalibClusterDecoratorTool.h:55
CaloCalibClusterDecoratorTool::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *theClusColl) const override final
Definition
CaloCalibClusterDecoratorTool.cxx:20
CaloCalibClusterDecoratorTool::m_numTruthParticles
Gaudi::Property< unsigned int > m_numTruthParticles
Definition
CaloCalibClusterDecoratorTool.h:63
CaloCalibClusterDecoratorTool::~CaloCalibClusterDecoratorTool
virtual ~CaloCalibClusterDecoratorTool()
Definition
CaloCalibClusterDecoratorTool.h:36
CaloCalibClusterDecoratorTool::m_mapIdentifierToCalibHitsReadHandleKey
SG::ReadHandleKey< std::map< Identifier, std::vector< const CaloCalibrationHit * > > > m_mapIdentifierToCalibHitsReadHandleKey
Definition
CaloCalibClusterDecoratorTool.h:40
CaloCalibClusterDecoratorTool::m_caloClusterWriteDecorHandleKeyNLeadingTruthParticles
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_caloClusterWriteDecorHandleKeyNLeadingTruthParticles
Definition
CaloCalibClusterDecoratorTool.h:48
CaloCalibrationHit
Class to store calorimeter calibration hit.
Definition
CaloCalibrationHit.h:24
CaloClusterCollectionProcessor::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
xAOD::CaloClusterContainer
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloClusterContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0