ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
11//EDM Container Classes
14
15//EDM Classes
18
19//C++ classes
20#include <map>
21#include <vector>
22
30
31
33
34public:
38 CaloCalibClusterTruthMapMakerTool(const std::string& type, const std::string& name,
39 const IInterface* parent);
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
50
51
52
53private:
64
66 void fillIdentifierToCaloHitMap(std::map<Identifier,std::vector<const CaloCalibrationHit*> >& identifierToCaloHitMap, const EventContext& ctx) const;
67
72 this,"tileActiveCaloCalibrationHitsName","TileCalibHitActiveCell",
73 "ReadHandleKey for Active Tile Calibration Hits"};
74
79 this,"tileInactiveCaloCalibrationHitsName","TileCalibHitInactiveCell",
80 "ReadHandleKey for Inactive Tile Calibration Hits"};
81
86 this,"tileDMCaloCalibrationHitsName","TileCalibHitDeadMaterial",
87 "ReadHandleKey for Dead Material Tile Calibration Hits"};
88
93 this,"lArActiveCaloCalibrationHitsName","LArCalibrationHitActive",
94 "ReadHandleKey for Active LAr Calibration Hits"};
95
100 this,"lArInactiveCaloCalibrationHitsName","LArCalibrationHitInactive",
101 "ReadHandleKey for Inactive LAr Calibration Hits"};
102
107 this,"lArDMCaloCalibrationHitsName","LArCalibrationHitDeadMaterial",
108 "ReadHandleKey for Dead Material LAr Calibration Hits"};
109
114 this,"truthParticlesName","TruthParticles",
115 "ReadHandle for the TruthParticles"};
116
122 this,"IdentifierToCalibHitsMapName","IdentifierToCalibHitsMap",
123 "WriteHandleKey for the map between Identifiers and sets of calibration hits"};
124
125};
126
127#endif // CALOCALIBCLUSTERTRUTHMAPMAKERTOOL_H
Base class for cluster processing tools called from CaloClusterMaker.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
CaloCalibClusterTruthMapMakerTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *theClusColl) const override final
Execute on an entire collection of clusters.
SG::ReadHandleKey< CaloCalibrationHitContainer > m_tileInactiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Inactive Tile calibration hits.
SG::ReadHandleKey< CaloCalibrationHitContainer > m_tileDMCaloCalibrationHitReadHandleKey
ReadHandleKey for Tile dead material calibration hits.
SG::ReadHandleKey< CaloCalibrationHitContainer > m_lArInactiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Inactive LAr calibration hits.
SG::ReadHandleKey< CaloCalibrationHitContainer > m_lArDMCaloCalibrationHitReadHandleKey
ReadHandleKey for LAr dead material calibration hits.
SG::ReadHandleKey< CaloCalibrationHitContainer > m_tileActiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Active Tile calibration hits.
void fillIdentifierToCaloHitMap(std::map< Identifier, std::vector< const CaloCalibrationHit * > > &identifierToCaloHitMap, const EventContext &ctx) const
builds a lookup table from cellID to calibration hits
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleReadHandleKey
ReadHandleKey for the truth particle container.
SG::ReadHandleKey< CaloCalibrationHitContainer > m_lArActiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Active LAr calibration hits.
SG::WriteHandleKey< std::map< Identifier, std::vector< const CaloCalibrationHit * > > > m_mapIdentifierToCalibHitsWriteHandleKey
WriteHandleKey for the Identifier to calibration hits map.
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 from which a WriteHandle is made.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.