ATLAS Offline Software
CaloCalibClusterTruthMapMakerAlgorithm.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 CALOCALIBCLUSTERTRUTHMAPMAKERALGORITHM_H
6 #define CALOCALIBCLUSTERTRUTHMAPMAKERALGORITHM_H
7 
10 
11 //EDM Container Classes
14 
15 //EDM Classes
18 
19 //C++ classes
20 #include <map>
21 #include <vector>
22 
26 
27 public:
30 
33 
34  /* Gaudi algorithm hooks */
35  virtual StatusCode initialize() override;
36  virtual StatusCode execute(const EventContext& ctx) const override;
37  virtual StatusCode finalize() override;
38 
39 private:
41  void fillIdentifierToCaloHitMap(std::map<Identifier,std::vector<const CaloCalibrationHit*> >& identifierToCaloHitMap, const EventContext& ctx) const;
42 
44  SG::ReadHandleKey<CaloCalibrationHitContainer> m_tileActiveCaloCalibrationHitReadHandleKey{this,"tileActiveCaloCalibrationHitsName","TileCalibHitActiveCell","ReadHandleKey for Active Tile Calibration Hits"};
45 
47  SG::ReadHandleKey<CaloCalibrationHitContainer> m_tileInactiveCaloCalibrationHitReadHandleKey{this,"tileInactiveCaloCalibrationHitsName","TileCalibHitInactiveCell","ReadHandleKey for Inactive Tile Calibration Hits"};
48 
50  SG::ReadHandleKey<CaloCalibrationHitContainer> m_tileDMCaloCalibrationHitReadHandleKey{this,"tileDMCaloCalibrationHitsName","TileCalibHitDeadMaterial","ReadHandleKey for Dead Material Tile Calibration Hits"};
51 
53  SG::ReadHandleKey<CaloCalibrationHitContainer> m_lArActiveCaloCalibrationHitReadHandleKey{this,"lArActiveCaloCalibrationHitsName","LArCalibrationHitActive","ReadHandleKey for Active LAr Calibration Hits"};
54 
56  SG::ReadHandleKey<CaloCalibrationHitContainer> m_lArInactiveCaloCalibrationHitReadHandleKey{this,"lArInactiveCaloCalibrationHitsName","LArCalibrationHitInactive","ReadHandleKey for Inactive LAr Calibration Hits"};
57 
59  SG::ReadHandleKey<CaloCalibrationHitContainer> m_lArDMCaloCalibrationHitReadHandleKey{this,"lArDMCaloCalibrationHitsName","LArCalibrationHitDeadMaterial","ReadHandleKey for Dead Material LAr Calibration Hits"};
60 
62  SG::ReadHandleKey<xAOD::TruthParticleContainer> m_truthParticleReadHandleKey{this,"truthParticlesName","TruthParticles","ReadHandle for the TruthParticles"};
63 
65  SG::WriteHandleKey<std::map<Identifier,std::vector<const CaloCalibrationHit*> > > m_mapIdentifierToCalibHitsWriteHandleKey{this,"IdentifierToCalibHitsMapName","IdentifierToCalibHitsMap","WriteHandleKey for the map between Identifiers and sets of calibration hits"};
66 
67 };
68 #endif
CaloCalibClusterTruthMapMakerAlgorithm::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: CaloCalibClusterTruthMapMakerAlgorithm.cxx:25
CaloCalibrationHit.h
CaloCalibClusterTruthMapMakerAlgorithm::m_truthParticleReadHandleKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleReadHandleKey
ReadHandle for the TruthParticles.
Definition: CaloCalibClusterTruthMapMakerAlgorithm.h:62
CaloCalibClusterTruthMapMakerAlgorithm::~CaloCalibClusterTruthMapMakerAlgorithm
virtual ~CaloCalibClusterTruthMapMakerAlgorithm()
Destructor.
Definition: CaloCalibClusterTruthMapMakerAlgorithm.h:32
TruthParticleContainer.h
CaloCalibDefineTypes.h
CaloCalibClusterTruthMapMakerAlgorithm::finalize
virtual StatusCode finalize() override
Definition: CaloCalibClusterTruthMapMakerAlgorithm.cxx:35
SG::ReadHandleKey< CaloCalibrationHitContainer >
CaloCalibClusterTruthMapMakerAlgorithm::fillIdentifierToCaloHitMap
void fillIdentifierToCaloHitMap(std::map< Identifier, std::vector< const CaloCalibrationHit * > > &identifierToCaloHitMap, const EventContext &ctx) const
This fills a map between calorimeter cell identifiers and calibration hits for a fast lookup.
Definition: CaloCalibClusterTruthMapMakerAlgorithm.cxx:37
CaloCalibClusterTruthMapMakerAlgorithm::m_lArDMCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_lArDMCaloCalibrationHitReadHandleKey
ReadHandleKey for Dead Material LAr Calibration Hits.
Definition: CaloCalibClusterTruthMapMakerAlgorithm.h:59
CaloCalibrationHitContainer.h
CaloCalibClusterTruthMapMakerAlgorithm::m_lArActiveCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_lArActiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Active LAr Calibration Hits.
Definition: CaloCalibClusterTruthMapMakerAlgorithm.h:53
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CaloCalibClusterTruthMapMakerAlgorithm::initialize
virtual StatusCode initialize() override
Definition: CaloCalibClusterTruthMapMakerAlgorithm.cxx:7
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
CaloCalibClusterTruthMapMakerAlgorithm::m_mapIdentifierToCalibHitsWriteHandleKey
SG::WriteHandleKey< std::map< Identifier, std::vector< const CaloCalibrationHit * > > > m_mapIdentifierToCalibHitsWriteHandleKey
WriteHandleKey for the map between Identifiers and sets of calibration hits.
Definition: CaloCalibClusterTruthMapMakerAlgorithm.h:65
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloCalibClusterTruthMapMakerAlgorithm
This algorithm creates several maps used for fast access to information in the calculations related t...
Definition: CaloCalibClusterTruthMapMakerAlgorithm.h:25
AthReentrantAlgorithm.h
CaloCalibClusterTruthMapMakerAlgorithm::m_tileActiveCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_tileActiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Active Tile Calibration Hits.
Definition: CaloCalibClusterTruthMapMakerAlgorithm.h:44
CaloCalibClusterTruthMapMakerAlgorithm::m_tileDMCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_tileDMCaloCalibrationHitReadHandleKey
ReadHandleKey for Dead Material Tile Calibration Hits.
Definition: CaloCalibClusterTruthMapMakerAlgorithm.h:50
CaloCalibClusterTruthMapMakerAlgorithm::m_lArInactiveCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_lArInactiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Inactive LAr Calibration Hits.
Definition: CaloCalibClusterTruthMapMakerAlgorithm.h:56
TruthParticle.h
CaloCalibClusterTruthMapMakerAlgorithm::m_tileInactiveCaloCalibrationHitReadHandleKey
SG::ReadHandleKey< CaloCalibrationHitContainer > m_tileInactiveCaloCalibrationHitReadHandleKey
ReadHandleKey for Inactive Tile Calibration Hits.
Definition: CaloCalibClusterTruthMapMakerAlgorithm.h:47
Identifier
Definition: IdentifierFieldParser.cxx:14