ATLAS Offline Software
Loading...
Searching...
No Matches
CalibHitToCaloCellTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
12
13#ifndef CALOCALIBHITREC_CALIBHITTOCALOCELLTOOL_H
14#define CALOCALIBHITREC_CALIBHITTOCALOCELLTOOL_H
15
21
22#include <string>
23#include <vector>
24
25class CaloCell_ID;
26class CaloDM_ID;
27
28class CaloCell;
31
32static const InterfaceID IID_CalibHitToCaloCellTool("CalibHitToCaloCellTool", 1, 0);
33
37
38class CalibHitToCaloCellTool: virtual public AthAlgTool {
39
40 public:
41 CalibHitToCaloCellTool(const std::string& t, const std::string& n, const IInterface* p);
43 virtual StatusCode initialize() override;
44 StatusCode processCalibHitsFromParticle() const;
45
46 static const InterfaceID& interfaceID() { return IID_CalibHitToCaloCellTool;}
47
48 private:
49 Gaudi::Property<int> m_caloGain{this, "CaloGain", static_cast<int>(CaloGain::LARLOWGAIN)};
50 Gaudi::Property<std::vector<std::string>> m_calibHitContainerNames{this, "CalibHitContainers", {}};
51
52 std::string m_tileActiveHitCnt{"TileCalibHitActiveCell"};
53 std::string m_tileInactiveHitCnt{"TileCalibHitInactiveCell"};
54 std::string m_tileDMHitCnt{"TileCalibHitDeadMaterial"};
55 std::string m_larInactHitCnt{"LArCalibrationHitActive"};
56 std::string m_larActHitCnt{"LArCalibrationHitInactive"};
57 std::string m_larDMHitCnt{"LArCalibrationHitDeadMaterial"};
58
59 Gaudi::Property<bool> m_doTile{this, "DoTile", false};
60
61 Gaudi::Property<std::string> m_caloCell_Tot{this, "CellTotEne", "TotalCalibCell"};
62 Gaudi::Property<std::string> m_caloCell_Vis{this, "CellVisEne", "VisCalibCell"};
63 Gaudi::Property<std::string> m_caloCell_Em{this, "CellEmEne", ""};
64 Gaudi::Property<std::string> m_caloCell_NonEm{this, "CellNonEmEne", ""};
65
66 const CaloCell_ID* m_caloCell_ID{nullptr};
67 const CaloDM_ID* m_caloDM_ID{nullptr};
68
70 , "CaloDetDescrManager"
71 , "CaloDetDescrManager"
72 , "SG Key for CaloDetDescrManager in the Condition Store" };
73
74 Gaudi::Property<std::string> m_outputCellContainerName{this, "OutputCellContainerName", "TruthCells"};
75 Gaudi::Property<std::string> m_outputClusterContainerName{this, "OutputClusterContainerName", "TruthClusters"};
76
80
81 const std::array<std::string, 3> m_energyTypeToStr{"Eem","Evis","Etot"};
82};
83
84#endif
static const InterfaceID IID_CalibHitToCaloCellTool("CalibHitToCaloCellTool", 1, 0)
Definition of CaloDetDescrManager.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Gaudi::Property< std::string > m_caloCell_Em
SG::WriteHandleKeyArray< CaloCellContainer > m_cellContKeys
SG::WriteHandleKeyArray< CaloClusterCellLinkContainer > m_cellLinkKeys
Gaudi::Property< std::string > m_caloCell_Vis
Gaudi::Property< std::string > m_outputCellContainerName
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Gaudi::Property< std::vector< std::string > > m_calibHitContainerNames
Gaudi::Property< int > m_caloGain
CalibHitToCaloCellTool(const std::string &t, const std::string &n, const IInterface *p)
const std::array< std::string, 3 > m_energyTypeToStr
static const InterfaceID & interfaceID()
SG::WriteHandleKeyArray< xAOD::CaloClusterContainer > m_clusterContKeys
Gaudi::Property< std::string > m_outputClusterContainerName
StatusCode processCalibHitsFromParticle() const
Gaudi::Property< std::string > m_caloCell_Tot
Gaudi::Property< bool > m_doTile
Gaudi::Property< std::string > m_caloCell_NonEm
const CaloCell_ID * m_caloCell_ID
virtual StatusCode initialize() override
Container class for CaloCell.
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
Data object for each calorimeter readout cell.
Definition CaloCell.h:57
Helper class for Calo Dead Material offline identifiers.
Definition CaloDM_ID.h:102
@ LARLOWGAIN
Definition CaloGain.h:18
HandleKeyArray< WriteHandle< T >, WriteHandleKey< T >, Gaudi::DataHandle::Writer > WriteHandleKeyArray