ATLAS Offline Software
TGCHitAnalysis.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 TGC_HIT_ANALYSIS_H
6 #define TGC_HIT_ANALYSIS_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 
24 class TGCHitAnalysis : public AthAlgorithm {
25 
26  public:
27 
28  TGCHitAnalysis(const std::string& name, ISvcLocator* pSvcLocator);
29  virtual ~TGCHitAnalysis(){}
30 
31  virtual StatusCode initialize() override;
32  virtual StatusCode execute() override;
33 
34  private:
35 
37  TH1* m_h_hits_x;
38  TH1* m_h_hits_y;
39  TH1* m_h_hits_z;
40  TH1* m_h_hits_r;
41  TH2* m_h_xy;
42  TH2* m_h_rz;
55 
56  std::vector<float>* m_hits_x;
57  std::vector<float>* m_hits_y;
58  std::vector<float>* m_hits_z;
59  std::vector<float>* m_hits_r;
60  std::vector<float>* m_hits_eta;
61  std::vector<float>* m_hits_phi;
62  std::vector<float>* m_hits_lx;
63  std::vector<float>* m_hits_ly;
64  std::vector<float>* m_hits_lz;
65  std::vector<float>* m_hits_dcx;
66  std::vector<float>* m_hits_dcy;
67  std::vector<float>* m_hits_dcz;
68  std::vector<float>* m_hits_time;
69  std::vector<float>* m_hits_edep;
70  std::vector<float>* m_hits_kine;
71  std::vector<float>* m_hits_step;
72 
73  TTree * m_tree;
74  std::string m_ntupleFileName;
75  std::string m_path;
77 
78 };
79 
80 #endif // TGC_HIT_ANALYSIS_H
TGCHitAnalysis::m_hits_y
std::vector< float > * m_hits_y
Definition: TGCHitAnalysis.h:57
TGCHitAnalysis::m_h_xy
TH2 * m_h_xy
Definition: TGCHitAnalysis.h:41
TGCHitAnalysis::execute
virtual StatusCode execute() override
Definition: TGCHitAnalysis.cxx:180
TGCHitAnalysis::m_h_hits_y
TH1 * m_h_hits_y
Definition: TGCHitAnalysis.h:38
TGCHitAnalysis::m_ntupleFileName
std::string m_ntupleFileName
Definition: TGCHitAnalysis.h:74
TGCHitAnalysis::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: TGCHitAnalysis.h:76
TGCHitAnalysis::m_h_rz
TH2 * m_h_rz
Definition: TGCHitAnalysis.h:42
TGCHitAnalysis::m_h_hits_z
TH1 * m_h_hits_z
Definition: TGCHitAnalysis.h:39
TGCHitAnalysis::m_tree
TTree * m_tree
Definition: TGCHitAnalysis.h:73
TGCHitAnalysis::m_h_hits_dcy
TH1 * m_h_hits_dcy
Definition: TGCHitAnalysis.h:49
TGCHitAnalysis::TGCHitAnalysis
TGCHitAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TGCHitAnalysis.cxx:24
TGCHitAnalysis::m_hits_kine
std::vector< float > * m_hits_kine
Definition: TGCHitAnalysis.h:70
TGCHitAnalysis
Definition: TGCHitAnalysis.h:24
TGCHitAnalysis::m_path
std::string m_path
Definition: TGCHitAnalysis.h:75
TGCHitAnalysis::m_h_hits_kine
TH1 * m_h_hits_kine
Definition: TGCHitAnalysis.h:53
TGCHitAnalysis::m_h_hits_phi
TH1 * m_h_hits_phi
Definition: TGCHitAnalysis.h:44
AthAlgorithm.h
TGCHitAnalysis::m_h_hits_lz
TH1 * m_h_hits_lz
Definition: TGCHitAnalysis.h:47
TGCHitAnalysis::m_h_hits_time
TH1 * m_h_hits_time
Definition: TGCHitAnalysis.h:51
TGCHitAnalysis::m_h_hits_step
TH1 * m_h_hits_step
Definition: TGCHitAnalysis.h:54
TGCHitAnalysis::m_h_hits_edep
TH1 * m_h_hits_edep
Definition: TGCHitAnalysis.h:52
TGCHitAnalysis::m_h_hits_dcx
TH1 * m_h_hits_dcx
Definition: TGCHitAnalysis.h:48
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TGCHitAnalysis::m_hits_dcy
std::vector< float > * m_hits_dcy
Definition: TGCHitAnalysis.h:66
TGCHitAnalysis::m_h_hits_lx
TH1 * m_h_hits_lx
Definition: TGCHitAnalysis.h:45
TGCHitAnalysis::m_hits_time
std::vector< float > * m_hits_time
Definition: TGCHitAnalysis.h:68
TGCHitAnalysis::m_hits_phi
std::vector< float > * m_hits_phi
Definition: TGCHitAnalysis.h:61
TGCHitAnalysis::m_h_hits_dcz
TH1 * m_h_hits_dcz
Definition: TGCHitAnalysis.h:50
TGCHitAnalysis::m_hits_ly
std::vector< float > * m_hits_ly
Definition: TGCHitAnalysis.h:63
TGCHitAnalysis::~TGCHitAnalysis
virtual ~TGCHitAnalysis()
Definition: TGCHitAnalysis.h:29
AthAlgorithm
Definition: AthAlgorithm.h:47
TGCHitAnalysis::m_hits_dcz
std::vector< float > * m_hits_dcz
Definition: TGCHitAnalysis.h:67
TGCHitAnalysis::m_hits_dcx
std::vector< float > * m_hits_dcx
Definition: TGCHitAnalysis.h:65
TGCHitAnalysis::m_h_hits_x
TH1 * m_h_hits_x
Some variables.
Definition: TGCHitAnalysis.h:37
TGCHitAnalysis::m_hits_step
std::vector< float > * m_hits_step
Definition: TGCHitAnalysis.h:71
TGCHitAnalysis::m_hits_eta
std::vector< float > * m_hits_eta
Definition: TGCHitAnalysis.h:60
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TGCHitAnalysis::m_hits_z
std::vector< float > * m_hits_z
Definition: TGCHitAnalysis.h:58
TGCHitAnalysis::m_h_hits_r
TH1 * m_h_hits_r
Definition: TGCHitAnalysis.h:40
TGCHitAnalysis::m_hits_r
std::vector< float > * m_hits_r
Definition: TGCHitAnalysis.h:59
TGCHitAnalysis::m_hits_x
std::vector< float > * m_hits_x
Definition: TGCHitAnalysis.h:56
TGCHitAnalysis::m_hits_lz
std::vector< float > * m_hits_lz
Definition: TGCHitAnalysis.h:64
TGCHitAnalysis::m_hits_lx
std::vector< float > * m_hits_lx
Definition: TGCHitAnalysis.h:62
TGCHitAnalysis::m_hits_edep
std::vector< float > * m_hits_edep
Definition: TGCHitAnalysis.h:69
TGCHitAnalysis::m_h_hits_ly
TH1 * m_h_hits_ly
Definition: TGCHitAnalysis.h:46
TGCHitAnalysis::initialize
virtual StatusCode initialize() override
Definition: TGCHitAnalysis.cxx:70
TGCHitAnalysis::m_h_hits_eta
TH1 * m_h_hits_eta
Definition: TGCHitAnalysis.h:43
ServiceHandle< ITHistSvc >