ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloCalibHitRec
CaloCalibHitRec
CaloCalibClusterTruthMapMakerTool.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 CALOCALIBHITREC_CALOCALIBCLUSTERTRUTHMAPMAKERTOOL_H
6
#define CALOCALIBHITREC_CALOCALIBCLUSTERTRUTHMAPMAKERTOOL_H
7
8
#include "
CaloCalibHitRec/CaloCalibDefineTypes.h
"
9
#include "
CaloUtils/CaloClusterCollectionProcessor.h
"
10
11
//EDM Container Classes
12
#include "
CaloSimEvent/CaloCalibrationHitContainer.h
"
13
#include "
xAODTruth/TruthParticleContainer.h
"
14
15
//EDM Classes
16
#include "
CaloSimEvent/CaloCalibrationHit.h
"
17
#include "
xAODTruth/TruthParticle.h
"
18
19
//C++ classes
20
#include <map>
21
#include <vector>
22
30
31
32
class
CaloCalibClusterTruthMapMakerTool
:
public
AthAlgTool
,
virtual
public
CaloClusterCollectionProcessor
{
33
34
public
:
38
CaloCalibClusterTruthMapMakerTool
(
const
std::string&
type
,
const
std::string& name,
39
const
IInterface* parent);
40
using
CaloClusterCollectionProcessor::execute
;
41
virtual
StatusCode
execute
(
const
EventContext& ctx,
42
xAOD::CaloClusterContainer
* theClusColl)
const
override
final
;
43
virtual
StatusCode
initialize
()
override
;
44
virtual
StatusCode
finalize
()
override
;
45
49
virtual
~CaloCalibClusterTruthMapMakerTool
() {};
50
51
52
53
private
:
64
66
void
fillIdentifierToCaloHitMap
(std::map<
Identifier
,std::vector<const CaloCalibrationHit*> >& identifierToCaloHitMap,
const
EventContext& ctx)
const
;
67
71
SG::ReadHandleKey<CaloCalibrationHitContainer>
m_tileActiveCaloCalibrationHitReadHandleKey
{
72
this
,
"tileActiveCaloCalibrationHitsName"
,
"TileCalibHitActiveCell"
,
73
"ReadHandleKey for Active Tile Calibration Hits"
};
74
78
SG::ReadHandleKey<CaloCalibrationHitContainer>
m_tileInactiveCaloCalibrationHitReadHandleKey
{
79
this
,
"tileInactiveCaloCalibrationHitsName"
,
"TileCalibHitInactiveCell"
,
80
"ReadHandleKey for Inactive Tile Calibration Hits"
};
81
85
SG::ReadHandleKey<CaloCalibrationHitContainer>
m_tileDMCaloCalibrationHitReadHandleKey
{
86
this
,
"tileDMCaloCalibrationHitsName"
,
"TileCalibHitDeadMaterial"
,
87
"ReadHandleKey for Dead Material Tile Calibration Hits"
};
88
92
SG::ReadHandleKey<CaloCalibrationHitContainer>
m_lArActiveCaloCalibrationHitReadHandleKey
{
93
this
,
"lArActiveCaloCalibrationHitsName"
,
"LArCalibrationHitActive"
,
94
"ReadHandleKey for Active LAr Calibration Hits"
};
95
99
SG::ReadHandleKey<CaloCalibrationHitContainer>
m_lArInactiveCaloCalibrationHitReadHandleKey
{
100
this
,
"lArInactiveCaloCalibrationHitsName"
,
"LArCalibrationHitInactive"
,
101
"ReadHandleKey for Inactive LAr Calibration Hits"
};
102
106
SG::ReadHandleKey<CaloCalibrationHitContainer>
m_lArDMCaloCalibrationHitReadHandleKey
{
107
this
,
"lArDMCaloCalibrationHitsName"
,
"LArCalibrationHitDeadMaterial"
,
108
"ReadHandleKey for Dead Material LAr Calibration Hits"
};
109
113
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthParticleReadHandleKey
{
114
this
,
"truthParticlesName"
,
"TruthParticles"
,
115
"ReadHandle for the TruthParticles"
};
116
120
SG::WriteHandleKey<std::map<Identifier,std::vector<const CaloCalibrationHit*>
> >
121
m_mapIdentifierToCalibHitsWriteHandleKey
{
122
this
,
"IdentifierToCalibHitsMapName"
,
"IdentifierToCalibHitsMap"
,
123
"WriteHandleKey for the map between Identifiers and sets of calibration hits"
};
124
125
};
126
127
#endif
// CALOCALIBCLUSTERTRUTHMAPMAKERTOOL_H
CaloCalibDefineTypes.h
CaloCalibrationHitContainer.h
CaloCalibrationHit.h
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
TruthParticleContainer.h
TruthParticle.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
CaloCalibClusterTruthMapMakerTool::CaloCalibClusterTruthMapMakerTool
CaloCalibClusterTruthMapMakerTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Definition
CaloCalibClusterTruthMapMakerTool.cxx:8
CaloCalibClusterTruthMapMakerTool::~CaloCalibClusterTruthMapMakerTool
virtual ~CaloCalibClusterTruthMapMakerTool()
Destructor.
Definition
CaloCalibClusterTruthMapMakerTool.h:49
CaloCalibClusterTruthMapMakerTool::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *theClusColl) const override final
Execute on an entire collection of clusters.
Definition
CaloCalibClusterTruthMapMakerTool.cxx:34
CaloCalibClusterTruthMapMakerTool::m_tileInactiveCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_tileInactiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Inactive Tile calibration hits.
Definition
CaloCalibClusterTruthMapMakerTool.h:78
CaloCalibClusterTruthMapMakerTool::m_tileDMCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_tileDMCaloCalibrationHitReadHandleKey
ReadHandleKey for Tile dead material calibration hits.
Definition
CaloCalibClusterTruthMapMakerTool.h:85
CaloCalibClusterTruthMapMakerTool::m_lArInactiveCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_lArInactiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Inactive LAr calibration hits.
Definition
CaloCalibClusterTruthMapMakerTool.h:99
CaloCalibClusterTruthMapMakerTool::m_lArDMCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_lArDMCaloCalibrationHitReadHandleKey
ReadHandleKey for LAr dead material calibration hits.
Definition
CaloCalibClusterTruthMapMakerTool.h:106
CaloCalibClusterTruthMapMakerTool::initialize
virtual StatusCode initialize() override
Definition
CaloCalibClusterTruthMapMakerTool.cxx:15
CaloCalibClusterTruthMapMakerTool::m_tileActiveCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_tileActiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Active Tile calibration hits.
Definition
CaloCalibClusterTruthMapMakerTool.h:71
CaloCalibClusterTruthMapMakerTool::finalize
virtual StatusCode finalize() override
Definition
CaloCalibClusterTruthMapMakerTool.cxx:44
CaloCalibClusterTruthMapMakerTool::fillIdentifierToCaloHitMap
void fillIdentifierToCaloHitMap(std::map< Identifier, std::vector< const CaloCalibrationHit * > > &identifierToCaloHitMap, const EventContext &ctx) const
builds a lookup table from cellID to calibration hits
Definition
CaloCalibClusterTruthMapMakerTool.cxx:46
CaloCalibClusterTruthMapMakerTool::m_truthParticleReadHandleKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleReadHandleKey
ReadHandleKey for the truth particle container.
Definition
CaloCalibClusterTruthMapMakerTool.h:113
CaloCalibClusterTruthMapMakerTool::m_lArActiveCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_lArActiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Active LAr calibration hits.
Definition
CaloCalibClusterTruthMapMakerTool.h:92
CaloCalibClusterTruthMapMakerTool::m_mapIdentifierToCalibHitsWriteHandleKey
SG::WriteHandleKey< std::map< Identifier, std::vector< const CaloCalibrationHit * > > > m_mapIdentifierToCalibHitsWriteHandleKey
WriteHandleKey for the Identifier to calibration hits map.
Definition
CaloCalibClusterTruthMapMakerTool.h:121
CaloClusterCollectionProcessor
Definition
CaloClusterCollectionProcessor.h:29
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::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
Identifier
Definition
IdentifierFieldParser.cxx:14
xAOD::CaloClusterContainer
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloClusterContainer.h:17
type
Generated on
for ATLAS Offline Software by
1.17.0