ATLAS Offline Software
CSCHitAnalysis.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CSC_HIT_ANALYSIS_H
6 #define CSC_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 CSCHitAnalysis : public AthAlgorithm {
25 
26  public:
27 
28  CSCHitAnalysis(const std::string& name, ISvcLocator* pSvcLocator);
30 
31  virtual StatusCode initialize();
32  virtual StatusCode execute();
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_zr;
54 
55  std::vector<float>* m_hits_x;
56  std::vector<float>* m_hits_y;
57  std::vector<float>* m_hits_z;
58  std::vector<float>* m_hits_r;
59  std::vector<float>* m_hits_eta;
60  std::vector<float>* m_hits_phi;
61  std::vector<float>* m_hits_start_x;
62  std::vector<float>* m_hits_start_y;
63  std::vector<float>* m_hits_start_z;
64  std::vector<float>* m_hits_end_x;
65  std::vector<float>* m_hits_end_y;
66  std::vector<float>* m_hits_end_z;
67  std::vector<float>* m_hits_time;
68  std::vector<float>* m_hits_edep;
69  std::vector<float>* m_hits_kine;
70 
71  TTree * m_tree;
72  std::string m_ntupleFileName;
73  std::string m_path;
75 
76 };
77 
78 #endif // CSC_HIT_ANALYSIS_H
CSCHitAnalysis::m_h_hits_r
TH1 * m_h_hits_r
Definition: CSCHitAnalysis.h:40
CSCHitAnalysis::m_hits_end_z
std::vector< float > * m_hits_end_z
Definition: CSCHitAnalysis.h:66
CSCHitAnalysis::m_h_hits_ex
TH1 * m_h_hits_ex
Definition: CSCHitAnalysis.h:48
CSCHitAnalysis::m_h_hits_sz
TH1 * m_h_hits_sz
Definition: CSCHitAnalysis.h:47
CSCHitAnalysis::m_hits_r
std::vector< float > * m_hits_r
Definition: CSCHitAnalysis.h:58
CSCHitAnalysis::~CSCHitAnalysis
~CSCHitAnalysis()
Definition: CSCHitAnalysis.h:29
CSCHitAnalysis::m_hits_phi
std::vector< float > * m_hits_phi
Definition: CSCHitAnalysis.h:60
CSCHitAnalysis::m_h_hits_y
TH1 * m_h_hits_y
Definition: CSCHitAnalysis.h:38
CSCHitAnalysis::m_hits_kine
std::vector< float > * m_hits_kine
Definition: CSCHitAnalysis.h:69
CSCHitAnalysis::initialize
virtual StatusCode initialize()
Definition: CSCHitAnalysis.cxx:70
CSCHitAnalysis::m_h_xy
TH2 * m_h_xy
Definition: CSCHitAnalysis.h:41
CSCHitAnalysis::m_h_hits_x
TH1 * m_h_hits_x
Some variables.
Definition: CSCHitAnalysis.h:37
CSCHitAnalysis::m_hits_end_x
std::vector< float > * m_hits_end_x
Definition: CSCHitAnalysis.h:64
CSCHitAnalysis::m_ntupleFileName
std::string m_ntupleFileName
Definition: CSCHitAnalysis.h:72
CSCHitAnalysis::m_path
std::string m_path
Definition: CSCHitAnalysis.h:73
CSCHitAnalysis::m_hits_y
std::vector< float > * m_hits_y
Definition: CSCHitAnalysis.h:56
CSCHitAnalysis::m_h_hits_phi
TH1 * m_h_hits_phi
Definition: CSCHitAnalysis.h:44
CSCHitAnalysis::m_h_hits_time
TH1 * m_h_hits_time
Definition: CSCHitAnalysis.h:51
CSCHitAnalysis::m_h_hits_edep
TH1 * m_h_hits_edep
Definition: CSCHitAnalysis.h:52
CSCHitAnalysis::m_h_zr
TH2 * m_h_zr
Definition: CSCHitAnalysis.h:42
CSCHitAnalysis::m_hits_start_y
std::vector< float > * m_hits_start_y
Definition: CSCHitAnalysis.h:62
AthAlgorithm.h
CSCHitAnalysis::CSCHitAnalysis
CSCHitAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CSCHitAnalysis.cxx:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CSCHitAnalysis::m_hits_end_y
std::vector< float > * m_hits_end_y
Definition: CSCHitAnalysis.h:65
CSCHitAnalysis::m_h_hits_kine
TH1 * m_h_hits_kine
Definition: CSCHitAnalysis.h:53
CSCHitAnalysis::m_h_hits_eta
TH1 * m_h_hits_eta
Definition: CSCHitAnalysis.h:43
CSCHitAnalysis::m_hits_edep
std::vector< float > * m_hits_edep
Definition: CSCHitAnalysis.h:68
CSCHitAnalysis::m_h_hits_z
TH1 * m_h_hits_z
Definition: CSCHitAnalysis.h:39
CSCHitAnalysis::m_hits_start_z
std::vector< float > * m_hits_start_z
Definition: CSCHitAnalysis.h:63
AthAlgorithm
Definition: AthAlgorithm.h:47
CSCHitAnalysis::m_hits_z
std::vector< float > * m_hits_z
Definition: CSCHitAnalysis.h:57
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CSCHitAnalysis::m_h_hits_sy
TH1 * m_h_hits_sy
Definition: CSCHitAnalysis.h:46
CSCHitAnalysis::m_tree
TTree * m_tree
Definition: CSCHitAnalysis.h:71
CSCHitAnalysis::m_h_hits_ey
TH1 * m_h_hits_ey
Definition: CSCHitAnalysis.h:49
CSCHitAnalysis::m_hits_start_x
std::vector< float > * m_hits_start_x
Definition: CSCHitAnalysis.h:61
CSCHitAnalysis::execute
virtual StatusCode execute()
Definition: CSCHitAnalysis.cxx:175
CSCHitAnalysis::m_hits_time
std::vector< float > * m_hits_time
Definition: CSCHitAnalysis.h:67
CSCHitAnalysis::m_hits_x
std::vector< float > * m_hits_x
Definition: CSCHitAnalysis.h:55
CSCHitAnalysis::m_h_hits_ez
TH1 * m_h_hits_ez
Definition: CSCHitAnalysis.h:50
CSCHitAnalysis
Definition: CSCHitAnalysis.h:24
CSCHitAnalysis::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: CSCHitAnalysis.h:74
CSCHitAnalysis::m_h_hits_sx
TH1 * m_h_hits_sx
Definition: CSCHitAnalysis.h:45
CSCHitAnalysis::m_hits_eta
std::vector< float > * m_hits_eta
Definition: CSCHitAnalysis.h:59
ServiceHandle< ITHistSvc >