ATLAS Offline Software
Loading...
Searching...
No Matches
CaloHitAnalysis.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef HITANALYSIS_CALOHITANALYSIS_H
6#define HITANALYSIS_CALOHITANALYSIS_H
7
8// Base class
10
11// Members
19
20
21class TileID;
23class TH1;
24class TH2;
25class TTree;
26
27
29
30public:
31
33 ~CaloHitAnalysis() = default;
34
35 virtual StatusCode initialize() override;
36 virtual StatusCode execute() override;
37
38private:
39
43 TH1* m_h_cell_e{};
46 // repeat the same 4 basic histograms but energy weighted
51 TH2* m_h_xy{};
52 TH2* m_h_zr{};
53 TH2* m_h_etaphi{};
54 TH2* m_h_time_e{};
55 TH2* m_h_eta_e{};
56 TH2* m_h_phi_e{};
57 TH2* m_h_r_e{};
68
69 const TileID * m_tileID{};
71
72 std::vector<float>* m_cell_eta{};
73 std::vector<float>* m_cell_phi{};
74 std::vector<float>* m_cell_x{};
75 std::vector<float>* m_cell_y{};
76 std::vector<float>* m_cell_z{};
77 std::vector<float>* m_cell_e{};
78 std::vector<float>* m_cell_radius{};
79 std::vector<int>* m_cell_layer{};
80 std::vector<float>* m_time{};
81 std::vector<float>* m_calib_eta{};
82 std::vector<float>* m_calib_phi{};
83 std::vector<float>* m_calib_radius{};
84 std::vector<float>* m_calib_z{};
85 std::vector<float>* m_calib_eEM{};
86 std::vector<float>* m_calib_eNonEM{};
87 std::vector<float>* m_calib_eInv{};
88 std::vector<float>* m_calib_eEsc{};
89 std::vector<float>* m_calib_eTot{};
90 std::vector<float>* m_calib_partID{};
91
92 BooleanProperty m_expert{this, "ExpertMode", false};
93 BooleanProperty m_calib{this, "UseCalibHits", false};
94 BooleanProperty m_useLAr{this, "UseLAr", true};
95 BooleanProperty m_useTile{this, "UseTile", true};
96
97 TTree* m_tree{};
98 StringProperty m_ntupleFileName{this, "NtupleFileName", "/CaloHitAnalysis/"};
99 StringProperty m_path{this, "HistPath", "/CaloHitAnalysis/"};
101 , "CaloDetDescrManager"
102 , "CaloDetDescrManager"
103 , "SG Key for CaloDetDescrManager in the Condition Store" };
104 SG::ReadHandleKey<TileHitVector> m_tileKey{this, "TileKey", "TileHitVec" };
106 {"LArHitEMB", "LArHitEMEC", "LArHitFCAL", "LArHitHEC"} };
107
108
110 {"LArCalibrationHitActive", "LArCalibrationHitInactive","LArCalibrationHitDeadMaterial"}};
111};
112
113#endif // CALO_HIT_ANALYSIS_H
Definition of CaloDetDescrManager.
Property holding a SG store/key/clid from which a ReadHandle is made.
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::vector< float > * m_calib_eTot
std::vector< float > * m_cell_y
std::vector< float > * m_cell_z
SG::ReadHandleKeyArray< LArHitContainer > m_caloKeys
StringProperty m_path
std::vector< float > * m_cell_x
BooleanProperty m_calib
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
BooleanProperty m_expert
std::vector< float > * m_cell_phi
std::vector< float > * m_calib_z
std::vector< float > * m_calib_phi
std::vector< float > * m_calib_eInv
TH1 * m_h_cell_eta
Simple variables by Ketevi.
~CaloHitAnalysis()=default
BooleanProperty m_useTile
std::vector< float > * m_calib_eEM
std::vector< float > * m_calib_eEsc
virtual StatusCode execute() override
const TileDetDescrManager * m_tileMgr
SG::ReadHandleKeyArray< CaloCalibrationHitContainer > m_caloCalibKeys
SG::ReadHandleKey< TileHitVector > m_tileKey
std::vector< float > * m_calib_radius
std::vector< int > * m_cell_layer
std::vector< float > * m_cell_radius
const TileID * m_tileID
std::vector< float > * m_calib_partID
TH1 * m_h_cell_radius_Eweight
std::vector< float > * m_calib_eta
std::vector< float > * m_cell_e
virtual StatusCode initialize() override
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::vector< float > * m_time
std::vector< float > * m_cell_eta
StringProperty m_ntupleFileName
std::vector< float > * m_calib_eNonEM
BooleanProperty m_useLAr
Property holding a SG store/key/clid from which a ReadHandle is made.
Helper class for TileCal offline identifiers.
Definition TileID.h:67
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray