Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
CaloHitAnalysis.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 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
12 #include "GaudiKernel/ServiceHandle.h"
13 #include "GaudiKernel/ITHistSvc.h"
16 
17 // STL includes
18 #include <string>
19 
20 class TileID;
22 class TH1;
23 class TH2;
24 class TTree;
25 
26 
27 class CaloHitAnalysis : public AthAlgorithm {
28 
29 public:
30 
31  CaloHitAnalysis(const std::string& name, ISvcLocator* pSvcLocator);
32  ~CaloHitAnalysis() = default;
33 
34  virtual StatusCode initialize() override;
35  virtual StatusCode execute() override;
36 
37 private:
38 
40  TH1* m_h_cell_eta{};
41  TH1* m_h_cell_phi{};
42  TH1* m_h_cell_e{};
44  TH2* m_h_xy{};
45  TH2* m_h_zr{};
46  TH2* m_h_etaphi{};
47  TH2* m_h_time_e{};
48  TH2* m_h_eta_e{};
49  TH2* m_h_phi_e{};
50  TH2* m_h_r_e{};
51  TH1* m_h_calib_eta{};
52  TH1* m_h_calib_phi{};
53  TH2* m_h_calib_rz{};
55  TH1* m_h_calib_eEM{};
61 
62  const TileID * m_tileID{};
64 
65  std::vector<float>* m_cell_eta{};
66  std::vector<float>* m_cell_phi{};
67  std::vector<float>* m_cell_x{};
68  std::vector<float>* m_cell_y{};
69  std::vector<float>* m_cell_z{};
70  std::vector<float>* m_cell_e{};
71  std::vector<float>* m_cell_radius{};
72  std::vector<float>* m_time{};
73  std::vector<float>* m_calib_eta{};
74  std::vector<float>* m_calib_phi{};
75  std::vector<float>* m_calib_radius{};
76  std::vector<float>* m_calib_z{};
77  std::vector<float>* m_calib_eEM{};
78  std::vector<float>* m_calib_eNonEM{};
79  std::vector<float>* m_calib_eInv{};
80  std::vector<float>* m_calib_eEsc{};
81  std::vector<float>* m_calib_eTot{};
82  std::vector<float>* m_calib_partID{};
83 
84  BooleanProperty m_expert{this, "ExpertMode", false};
85  BooleanProperty m_calib{this, "UseCalibHits", false};
86  BooleanProperty m_useLAr{this, "UseLAr", true};
87  BooleanProperty m_useTile{this, "UseTile", true};
88 
89  TTree* m_tree{};
90  StringProperty m_ntupleFileName{this, "NtupleFileName", "/CaloHitAnalysis/"};
91  StringProperty m_path{this, "HistPath", "/CaloHitAnalysis/"};
92  ServiceHandle<ITHistSvc> m_thistSvc{this, "THitSvc", "THistSvc"};
94  , "CaloDetDescrManager"
95  , "CaloDetDescrManager"
96  , "SG Key for CaloDetDescrManager in the Condition Store" };
97 
98 };
99 
100 #endif // CALO_HIT_ANALYSIS_H
CaloHitAnalysis::m_h_calib_eTotpartID
TH1 * m_h_calib_eTotpartID
Definition: CaloHitAnalysis.h:60
CaloHitAnalysis::m_h_time_e
TH2 * m_h_time_e
Definition: CaloHitAnalysis.h:47
CaloHitAnalysis::m_calib_z
std::vector< float > * m_calib_z
Definition: CaloHitAnalysis.h:76
CaloHitAnalysis::m_calib_partID
std::vector< float > * m_calib_partID
Definition: CaloHitAnalysis.h:82
CaloHitAnalysis::m_h_cell_e
TH1 * m_h_cell_e
Definition: CaloHitAnalysis.h:42
CaloHitAnalysis::initialize
virtual StatusCode initialize() override
Definition: CaloHitAnalysis.cxx:39
CaloHitAnalysis::m_h_cell_radius
TH1 * m_h_cell_radius
Definition: CaloHitAnalysis.h:43
CaloHitAnalysis::m_h_calib_eta
TH1 * m_h_calib_eta
Definition: CaloHitAnalysis.h:51
CaloHitAnalysis::m_calib_phi
std::vector< float > * m_calib_phi
Definition: CaloHitAnalysis.h:74
CaloHitAnalysis::m_cell_y
std::vector< float > * m_cell_y
Definition: CaloHitAnalysis.h:68
CaloHitAnalysis::m_h_calib_eEsc
TH1 * m_h_calib_eEsc
Definition: CaloHitAnalysis.h:58
CaloHitAnalysis::m_cell_radius
std::vector< float > * m_cell_radius
Definition: CaloHitAnalysis.h:71
CaloHitAnalysis::m_time
std::vector< float > * m_time
Definition: CaloHitAnalysis.h:72
CaloHitAnalysis::m_h_calib_eInv
TH1 * m_h_calib_eInv
Definition: CaloHitAnalysis.h:57
CaloHitAnalysis::m_calib_radius
std::vector< float > * m_calib_radius
Definition: CaloHitAnalysis.h:75
CaloHitAnalysis::m_h_calib_etaphi
TH2 * m_h_calib_etaphi
Definition: CaloHitAnalysis.h:54
CaloHitAnalysis::m_calib_eTot
std::vector< float > * m_calib_eTot
Definition: CaloHitAnalysis.h:81
CaloHitAnalysis::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: CaloHitAnalysis.h:93
CaloHitAnalysis::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: CaloHitAnalysis.h:92
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloHitAnalysis::m_calib_eEsc
std::vector< float > * m_calib_eEsc
Definition: CaloHitAnalysis.h:80
CaloHitAnalysis::m_tileMgr
const TileDetDescrManager * m_tileMgr
Definition: CaloHitAnalysis.h:63
CaloHitAnalysis
Definition: CaloHitAnalysis.h:27
AthAlgorithm.h
CaloHitAnalysis::m_h_calib_eNonEM
TH1 * m_h_calib_eNonEM
Definition: CaloHitAnalysis.h:56
CaloHitAnalysis::m_h_calib_rz
TH2 * m_h_calib_rz
Definition: CaloHitAnalysis.h:53
CaloHitAnalysis::m_calib_eInv
std::vector< float > * m_calib_eInv
Definition: CaloHitAnalysis.h:79
CaloHitAnalysis::m_useLAr
BooleanProperty m_useLAr
Definition: CaloHitAnalysis.h:86
CaloHitAnalysis::m_path
StringProperty m_path
Definition: CaloHitAnalysis.h:91
TileDetDescrManager
Definition: TileDetDescrManager.h:33
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloHitAnalysis::m_h_etaphi
TH2 * m_h_etaphi
Definition: CaloHitAnalysis.h:46
CaloHitAnalysis::m_calib_eNonEM
std::vector< float > * m_calib_eNonEM
Definition: CaloHitAnalysis.h:78
CaloHitAnalysis::m_h_cell_eta
TH1 * m_h_cell_eta
Simple variables by Ketevi.
Definition: CaloHitAnalysis.h:40
CaloHitAnalysis::m_h_eta_e
TH2 * m_h_eta_e
Definition: CaloHitAnalysis.h:48
CaloHitAnalysis::m_useTile
BooleanProperty m_useTile
Definition: CaloHitAnalysis.h:87
CaloHitAnalysis::m_h_cell_phi
TH1 * m_h_cell_phi
Definition: CaloHitAnalysis.h:41
AthAlgorithm
Definition: AthAlgorithm.h:47
CaloHitAnalysis::m_ntupleFileName
StringProperty m_ntupleFileName
Definition: CaloHitAnalysis.h:90
CaloHitAnalysis::m_cell_z
std::vector< float > * m_cell_z
Definition: CaloHitAnalysis.h:69
ReadCondHandleKey.h
CaloHitAnalysis::~CaloHitAnalysis
~CaloHitAnalysis()=default
CaloHitAnalysis::m_calib_eEM
std::vector< float > * m_calib_eEM
Definition: CaloHitAnalysis.h:77
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
CaloHitAnalysis::m_cell_e
std::vector< float > * m_cell_e
Definition: CaloHitAnalysis.h:70
CaloHitAnalysis::m_h_xy
TH2 * m_h_xy
Definition: CaloHitAnalysis.h:44
CaloHitAnalysis::m_h_calib_eEM
TH1 * m_h_calib_eEM
Definition: CaloHitAnalysis.h:55
CaloHitAnalysis::m_tree
TTree * m_tree
Definition: CaloHitAnalysis.h:89
SG::ReadCondHandleKey< CaloDetDescrManager >
CaloHitAnalysis::m_h_calib_eTot
TH1 * m_h_calib_eTot
Definition: CaloHitAnalysis.h:59
CaloHitAnalysis::execute
virtual StatusCode execute() override
Definition: CaloHitAnalysis.cxx:176
CaloHitAnalysis::m_expert
BooleanProperty m_expert
Definition: CaloHitAnalysis.h:84
CaloHitAnalysis::m_cell_eta
std::vector< float > * m_cell_eta
Definition: CaloHitAnalysis.h:65
CaloHitAnalysis::m_h_r_e
TH2 * m_h_r_e
Definition: CaloHitAnalysis.h:50
CaloHitAnalysis::CaloHitAnalysis
CaloHitAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CaloHitAnalysis.cxx:33
CaloHitAnalysis::m_calib_eta
std::vector< float > * m_calib_eta
Definition: CaloHitAnalysis.h:73
CaloHitAnalysis::m_h_phi_e
TH2 * m_h_phi_e
Definition: CaloHitAnalysis.h:49
CaloHitAnalysis::m_cell_phi
std::vector< float > * m_cell_phi
Definition: CaloHitAnalysis.h:66
CaloHitAnalysis::m_calib
BooleanProperty m_calib
Definition: CaloHitAnalysis.h:85
CaloHitAnalysis::m_h_calib_phi
TH1 * m_h_calib_phi
Definition: CaloHitAnalysis.h:52
CaloHitAnalysis::m_tileID
const TileID * m_tileID
Definition: CaloHitAnalysis.h:62
CaloHitAnalysis::m_h_zr
TH2 * m_h_zr
Definition: CaloHitAnalysis.h:45
CaloHitAnalysis::m_cell_x
std::vector< float > * m_cell_x
Definition: CaloHitAnalysis.h:67
ServiceHandle< ITHistSvc >