Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TRTHitAnalysis.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_TRTHITANALYSIS_H
6 #define HITANALYSIS_TRTHITANALYSIS_H
7 
9 
10 #include "GaudiKernel/ServiceHandle.h"
11 #include "GaudiKernel/ITHistSvc.h"
12 
13 #include <string>
14 #include <vector>
15 #include "TH1.h"
16 #include "TH2.h"
17 #include "TTree.h"
18 
19 class TH1;
20 class TH2;
21 class TTree;
22 
23 namespace InDetDD {
24  class TRT_DetectorManager;
25 }
26 
27 class TRTHitAnalysis : public AthAlgorithm {
28 
29  public:
30 
31  TRTHitAnalysis(const std::string& name, ISvcLocator* pSvcLocator);
32  ~TRTHitAnalysis() = default;
33 
34  virtual StatusCode initialize() override;
35  virtual StatusCode execute() override;
36 
37  private:
38 
40  TH1* m_h_TRT_x;
41  TH1* m_h_TRT_y;
42  TH1* m_h_TRT_z;
43  TH1* m_h_TRT_r;
44  TH2* m_h_TRT_xy;
45  TH2* m_h_TRT_zr;
53 
54  std::vector<float>* m_TRT_x;
55  std::vector<float>* m_TRT_y;
56  std::vector<float>* m_TRT_z;
57  std::vector<float>* m_TRT_r;
58  std::vector<float>* m_TRT_time_photons;
59  std::vector<float>* m_TRT_time_nonphotons;
60  std::vector<float>* m_TRT_edep_photons;
61  std::vector<float>* m_TRT_edep_nonphotons;
62  std::vector<float>* m_TRT_kine_photons;
63  std::vector<float>* m_TRT_kine_nonphotons;
64  std::vector<float>* m_TRT_barcode;
65 
66  TTree * m_tree;
67  std::string m_path;
68  std::string m_ntupleFileName;
71 };
72 
73 #endif // TRT_HIT_ANALYSIS_H
TRTHitAnalysis::m_TRT_z
std::vector< float > * m_TRT_z
Definition: TRTHitAnalysis.h:56
TRTHitAnalysis::m_TRT_time_nonphotons
std::vector< float > * m_TRT_time_nonphotons
Definition: TRTHitAnalysis.h:59
TRTHitAnalysis::m_h_TRT_r
TH1 * m_h_TRT_r
Definition: TRTHitAnalysis.h:43
TRTHitAnalysis::m_h_TRT_kine_photons
TH1 * m_h_TRT_kine_photons
Definition: TRTHitAnalysis.h:50
TRTHitAnalysis::m_h_TRT_x
TH1 * m_h_TRT_x
Some variables.
Definition: TRTHitAnalysis.h:40
TRTHitAnalysis
Definition: TRTHitAnalysis.h:27
TRTHitAnalysis::m_h_TRT_barcode
TH1 * m_h_TRT_barcode
Definition: TRTHitAnalysis.h:52
TRTHitAnalysis::m_h_TRT_time_nonphotons
TH1 * m_h_TRT_time_nonphotons
Definition: TRTHitAnalysis.h:47
TRTHitAnalysis::m_TRT_kine_nonphotons
std::vector< float > * m_TRT_kine_nonphotons
Definition: TRTHitAnalysis.h:63
TRTHitAnalysis::m_TRT_x
std::vector< float > * m_TRT_x
Definition: TRTHitAnalysis.h:54
AthAlgorithm.h
TRTHitAnalysis::m_TRT_barcode
std::vector< float > * m_TRT_barcode
Definition: TRTHitAnalysis.h:64
TRTHitAnalysis::m_ntupleFileName
std::string m_ntupleFileName
Definition: TRTHitAnalysis.h:68
TRTHitAnalysis::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: TRTHitAnalysis.h:69
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRTHitAnalysis::m_h_TRT_z
TH1 * m_h_TRT_z
Definition: TRTHitAnalysis.h:42
TRTHitAnalysis::m_TRT_y
std::vector< float > * m_TRT_y
Definition: TRTHitAnalysis.h:55
TRTHitAnalysis::initialize
virtual StatusCode initialize() override
Definition: TRTHitAnalysis.cxx:58
TRTHitAnalysis::m_tree
TTree * m_tree
Definition: TRTHitAnalysis.h:66
TRTHitAnalysis::m_h_TRT_edep_nonphotons
TH1 * m_h_TRT_edep_nonphotons
Definition: TRTHitAnalysis.h:49
AthAlgorithm
Definition: AthAlgorithm.h:47
TRTHitAnalysis::m_h_TRT_xy
TH2 * m_h_TRT_xy
Definition: TRTHitAnalysis.h:44
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
TRTHitAnalysis::m_h_TRT_zr
TH2 * m_h_TRT_zr
Definition: TRTHitAnalysis.h:45
TRTHitAnalysis::m_TRT_kine_photons
std::vector< float > * m_TRT_kine_photons
Definition: TRTHitAnalysis.h:62
TRTHitAnalysis::TRTHitAnalysis
TRTHitAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TRTHitAnalysis.cxx:21
TRTHitAnalysis::m_detMgr
const InDetDD::TRT_DetectorManager * m_detMgr
Definition: TRTHitAnalysis.h:70
TRTHitAnalysis::~TRTHitAnalysis
~TRTHitAnalysis()=default
InDetDD::TRT_DetectorManager
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
Definition: TRT_DetectorManager.h:69
TRTHitAnalysis::execute
virtual StatusCode execute() override
Definition: TRTHitAnalysis.cxx:145
TRTHitAnalysis::m_TRT_edep_nonphotons
std::vector< float > * m_TRT_edep_nonphotons
Definition: TRTHitAnalysis.h:61
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
TRTHitAnalysis::m_h_TRT_kine_nonphotons
TH1 * m_h_TRT_kine_nonphotons
Definition: TRTHitAnalysis.h:51
TRTHitAnalysis::m_h_TRT_edep_photons
TH1 * m_h_TRT_edep_photons
Definition: TRTHitAnalysis.h:48
TRTHitAnalysis::m_h_TRT_time_photons
TH1 * m_h_TRT_time_photons
Definition: TRTHitAnalysis.h:46
TRTHitAnalysis::m_TRT_r
std::vector< float > * m_TRT_r
Definition: TRTHitAnalysis.h:57
TRTHitAnalysis::m_TRT_edep_photons
std::vector< float > * m_TRT_edep_photons
Definition: TRTHitAnalysis.h:60
TRTHitAnalysis::m_path
std::string m_path
Definition: TRTHitAnalysis.h:67
TRTHitAnalysis::m_TRT_time_photons
std::vector< float > * m_TRT_time_photons
Definition: TRTHitAnalysis.h:58
TRTHitAnalysis::m_h_TRT_y
TH1 * m_h_TRT_y
Definition: TRTHitAnalysis.h:41
ServiceHandle< ITHistSvc >