ATLAS Offline Software
Analysis_Tier0.h
Go to the documentation of this file.
1 /* emacs: this is -*- c++ -*- */
12 #ifndef TrigInDetAnalysisExample_Analysis_Tier0_H
13 #define TrigInDetAnalysisExample_Analysis_Tier0_H
14 
15 
16 #include <iostream>
17 
18 #include "TH1.h"
19 #include "TH2.h"
20 #include "TProfile.h"
21 
24 
26 
27 #include "GaudiKernel/ToolHandle.h"
29 
30 class Analysis_Tier0 : public TrackAnalysis {
31 
32 public:
33 
35 
36 public:
37 
38  Analysis_Tier0(const std::string& name, double pTCut, double etaCut, double d0Cut, double z0Cut);
39 
40  virtual void initialise();
41 
42  virtual void execute(const std::vector<TIDA::Track*>& referenceTracks,
43  const std::vector<TIDA::Track*>& testTracks,
44  TrackAssociator* associator );
45 
46  virtual void execute_vtx(const std::vector<TIDA::Vertex*>& vtx0,
47  const std::vector<TIDA::Vertex*>& vtx1,
48  const TIDA::Event* tevt=0 );
49 
50  virtual void finalise();
51 
52  void setvertices(int numvtx) {m_nVtx = numvtx;}
53 
54  std::map<std::string, TH1*>::const_iterator THbegin() const { return m_histos.begin(); }
55  std::map<std::string, TH1*>::const_iterator THend() const { return m_histos.end(); }
56 
57  std::map<std::string, TProfile*>::const_iterator TEffbegin() const { return m_effhistos.begin(); }
58  std::map<std::string, TProfile*>::const_iterator TEffend() const { return m_effhistos.end(); }
59 
60 
61  void set_monTool( ToolHandle<GenericMonitoringTool>* m ) { m_monTool=m; }
62 
63  ToolHandle<GenericMonitoringTool>* monTool() { return m_monTool; }
64 
65 
66  bool debug() const { return m_debug; }
67 
68 public:
69 
70  void addHistogram( TH1* h ) {
71  std::string name = h->GetName();
72  m_histos.insert( std::map<std::string, TH1*>::value_type( name, h) );
73  }
74 
75  void addHistogram( TProfile* h ) {
76  std::string name = h->GetName();
77  m_effhistos.insert( std::map<std::string, TProfile*>::value_type( name, h) );
78  }
79 
80  double phi(double p);
81 
82 private:
83 
84  std::map<std::string, TH1*> m_histos;
85  std::map<std::string, TProfile*> m_effhistos;
86 
95 
102 
106 
107 
112 
117 
120 
122 
127 
132 
135 
137 
140 
141  //No currently in use
142  //but retained in case
143  //TH2F* h2d_d0vsphi;
144  //TH2F* h2d_d0vsphi_rec;
145 
146 
148 
150 
156 
157  //No currently in use
158  //but retained in case
159  //TH1F* m_h_trketaroi;
160  //TH1F* m_h_trketazroi;
161 
164 
166 
171 
173 
175 
176 
182 
185 
187 
192 
193 
195 
196 
203 
206 
207 
208  // Efficiency plateau cuts
209  //No currently in use
210  //but retained in case
211  //double m_pTCut;
212  //double m_etaCut;
213  //double m_d0Cut;
214  //double m_z0Cut;
215 
216  int m_nVtx;
217 
218  bool m_debug;
219 
220  unsigned long long m_eventid;
221 
223 
224  ToolHandle<GenericMonitoringTool>* m_monTool;
225 
226 };
227 
228 
229 #endif // TrigInDetAnalysisExample_Analysis_Tier0_H
Analysis_Tier0::m_h_npixvsphi_rec
TProfile * m_h_npixvsphi_rec
Definition: Analysis_Tier0.h:124
Analysis_Tier0::m_h_npixvspT_rec
TProfile * m_h_npixvspT_rec
Definition: Analysis_Tier0.h:126
Analysis_Tier0::m_h_trkd0
TH1F * m_h_trkd0
Definition: Analysis_Tier0.h:154
Analysis_Tier0::m_h_trkdd0_residual
TH1F * m_h_trkdd0_residual
Definition: Analysis_Tier0.h:204
Analysis_Tier0::m_h_nsctvseta
TProfile * m_h_nsctvseta
Definition: Analysis_Tier0.h:113
TIDA::Associator
Definition: TIDAAssociator.h:24
Analysis_Tier0::m_h_total_efficiency
TProfile * m_h_total_efficiency
Definition: Analysis_Tier0.h:87
Analysis_Tier0::m_h_npix
TH1F * m_h_npix
Definition: Analysis_Tier0.h:167
Analysis_Tier0::m_h_phieff
TProfile * m_h_phieff
Definition: Analysis_Tier0.h:90
Analysis_Tier0::setvertices
void setvertices(int numvtx)
Definition: Analysis_Tier0.h:52
Analysis_Tier0::m_h_npixvsphi
TProfile * m_h_npixvsphi
Definition: Analysis_Tier0.h:109
Analysis_Tier0::m_h_trkd0_residual
TH1F * m_h_trkd0_residual
Definition: Analysis_Tier0.h:201
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
Analysis_Tier0::m_h_npixvspT
TProfile * m_h_npixvspT
Definition: Analysis_Tier0.h:111
VtxAnalysis
Definition: VtxAnalysis.h:25
Analysis_Tier0::phi
double phi(double p)
Definition: Analysis_Tier0.cxx:768
Analysis_Tier0::m_h_nsctvspT
TProfile * m_h_nsctvspT
Definition: Analysis_Tier0.h:116
Analysis_Tier0::m_h_trkz0_rec
TH1F * m_h_trkz0_rec
Definition: Analysis_Tier0.h:181
Analysis_Tier0::m_h_trketa
TH1F * m_h_trketa
Definition: Analysis_Tier0.h:152
Analysis_Tier0::m_h_trkvtx_y_lb
TProfile * m_h_trkvtx_y_lb
Definition: Analysis_Tier0.h:104
Analysis_Tier0::m_h_trkdz0
TH1F * m_h_trkdz0
Definition: Analysis_Tier0.h:163
TrackAnalysis.h
TrackAnalysis::execute
virtual void execute(const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher)=0
Analysis_Tier0::m_h_ntrtvsphi_rec
TProfile * m_h_ntrtvsphi_rec
Definition: Analysis_Tier0.h:134
Analysis_Tier0::m_h_z0eff
TProfile * m_h_z0eff
Definition: Analysis_Tier0.h:92
Analysis_Tier0::m_h_nsctvseta_rec
TProfile * m_h_nsctvseta_rec
Definition: Analysis_Tier0.h:128
Analysis_Tier0::m_debug
bool m_debug
Definition: Analysis_Tier0.h:218
Analysis_Tier0::m_h_ntrk
TH1F * m_h_ntrk
Definition: Analysis_Tier0.h:149
Analysis_Tier0
Definition: Analysis_Tier0.h:30
Analysis_Tier0::execute_vtx
virtual void execute_vtx(const std::vector< TIDA::Vertex * > &vtx0, const std::vector< TIDA::Vertex * > &vtx1, const TIDA::Event *tevt=0)
Definition: Analysis_Tier0.cxx:755
Analysis_Tier0::m_h_npixvsd0_rec
TProfile * m_h_npixvsd0_rec
Definition: Analysis_Tier0.h:125
Analysis_Tier0::set_monTool
void set_monTool(ToolHandle< GenericMonitoringTool > *m)
Definition: Analysis_Tier0.h:61
Analysis_Tier0::debug
bool debug() const
Definition: Analysis_Tier0.h:66
Analysis_Tier0::m_h_d0eff
TProfile * m_h_d0eff
Definition: Analysis_Tier0.h:91
TIDA::Event
Definition: TIDAEvent.h:33
Analysis_Tier0::m_h_ntrtvseta_rec
TProfile * m_h_ntrtvseta_rec
Definition: Analysis_Tier0.h:133
Analysis_Tier0::m_h_trkd0_rec
TH1F * m_h_trkd0_rec
Definition: Analysis_Tier0.h:180
Analysis_Tier0::m_h_d0vsphi_rec
TProfile * m_h_d0vsphi_rec
Definition: Analysis_Tier0.h:139
Analysis_Tier0::m_effhistos
std::map< std::string, TProfile * > m_effhistos
Definition: Analysis_Tier0.h:85
Analysis_Tier0::m_h_nsct
TH1F * m_h_nsct
Definition: Analysis_Tier0.h:168
Analysis_Tier0::m_h_layer
TH1F * m_h_layer
Definition: Analysis_Tier0.h:174
Analysis_Tier0::m_vtxanal
VtxAnalysis * m_vtxanal
Definition: Analysis_Tier0.h:222
Analysis_Tier0::execute
virtual void execute(const std::vector< TIDA::Track * > &referenceTracks, const std::vector< TIDA::Track * > &testTracks, TrackAssociator *associator)
Definition: Analysis_Tier0.cxx:553
Analysis_Tier0::m_h_nsihits_rec
TH1F * m_h_nsihits_rec
Definition: Analysis_Tier0.h:190
Analysis_Tier0::monTool
ToolHandle< GenericMonitoringTool > * monTool()
Definition: Analysis_Tier0.h:63
TIDDirectory.h
class to keep a directory for each object in a root sort of way, but needed to keep the root objects ...
TrackAnalysis::name
const std::string & name() const
return identifier
Definition: TrackAnalysis.h:52
GenericMonitoringTool.h
Analysis_Tier0::m_h_nsct_rec
TH1F * m_h_nsct_rec
Definition: Analysis_Tier0.h:189
Analysis_Tier0::m_h_d0res
TProfile * m_h_d0res
Definition: Analysis_Tier0.h:100
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Analysis_Tier0::m_h_pTeff
TProfile * m_h_pTeff
Definition: Analysis_Tier0.h:88
Analysis_Tier0::m_h_nsctvspT_rec
TProfile * m_h_nsctvspT_rec
Definition: Analysis_Tier0.h:131
Analysis_Tier0::m_h_nsctvsd0
TProfile * m_h_nsctvsd0
Definition: Analysis_Tier0.h:115
Analysis_Tier0::m_h_trkpT_rec
TH1F * m_h_trkpT_rec
Definition: Analysis_Tier0.h:177
Analysis_Tier0::m_h_trkdd0
TH1F * m_h_trkdd0
Definition: Analysis_Tier0.h:162
Analysis_Tier0::TEffend
std::map< std::string, TProfile * >::const_iterator TEffend() const
Definition: Analysis_Tier0.h:58
Analysis_Tier0::m_h_ipTres
TProfile * m_h_ipTres
Definition: Analysis_Tier0.h:97
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
Analysis_Tier0::Analysis_Tier0
Analysis_Tier0(const std::string &name, double pTCut, double etaCut, double d0Cut, double z0Cut)
Definition: Analysis_Tier0.cxx:18
Analysis_Tier0::m_h_trkpT
TH1F * m_h_trkpT
Definition: Analysis_Tier0.h:151
Analysis_Tier0::m_h_d0vsphi
TProfile * m_h_d0vsphi
Definition: Analysis_Tier0.h:138
Analysis_Tier0::m_h_pTres
TProfile * m_h_pTres
Definition: Analysis_Tier0.h:96
Analysis_Tier0::THend
std::map< std::string, TH1 * >::const_iterator THend() const
Definition: Analysis_Tier0.h:55
Analysis_Tier0::initialise
virtual void initialise()
standard operation interface
Definition: Analysis_Tier0.cxx:113
Analysis_Tier0::m_h_trketa_residual
TH1F * m_h_trketa_residual
Definition: Analysis_Tier0.h:199
Analysis_Tier0::m_h_nsihits_lb_rec
TProfile * m_h_nsihits_lb_rec
Definition: Analysis_Tier0.h:136
TrackAnalysis
Definition: TrackAnalysis.h:32
Analysis_Tier0::m_h_ntrt
TH1F * m_h_ntrt
Definition: Analysis_Tier0.h:170
Analysis_Tier0::m_h_npixvseta_rec
TProfile * m_h_npixvseta_rec
Definition: Analysis_Tier0.h:123
Analysis_Tier0::m_h_z0res
TProfile * m_h_z0res
Definition: Analysis_Tier0.h:101
Analysis_Tier0::m_monTool
ToolHandle< GenericMonitoringTool > * m_monTool
Definition: Analysis_Tier0.h:224
Analysis_Tier0::m_h_trkphi
TH1F * m_h_trkphi
Definition: Analysis_Tier0.h:153
Analysis_Tier0::m_h_trkdz0_residual
TH1F * m_h_trkdz0_residual
Definition: Analysis_Tier0.h:205
Analysis_Tier0::m_h_lbeff
TProfile * m_h_lbeff
Definition: Analysis_Tier0.h:94
Analysis_Tier0::m_h_trketa_rec
TH1F * m_h_trketa_rec
Definition: Analysis_Tier0.h:178
Analysis_Tier0::m_h_trkz0_residual
TH1F * m_h_trkz0_residual
Definition: Analysis_Tier0.h:202
Analysis_Tier0::m_h_layer_rec
TH1F * m_h_layer_rec
Definition: Analysis_Tier0.h:194
Analysis_Tier0::m_h_trkipT_residual
TH1F * m_h_trkipT_residual
Definition: Analysis_Tier0.h:198
Analysis_Tier0::m_h_phires
TProfile * m_h_phires
Definition: Analysis_Tier0.h:99
VtxAnalysis.h
Analysis_Tier0::m_h_trkphi_residual
TH1F * m_h_trkphi_residual
Definition: Analysis_Tier0.h:200
Analysis_Tier0::TEffbegin
std::map< std::string, TProfile * >::const_iterator TEffbegin() const
Definition: Analysis_Tier0.h:57
Analysis_Tier0::m_h_nsihits_lb
TProfile * m_h_nsihits_lb
Definition: Analysis_Tier0.h:121
Analysis_Tier0::THbegin
std::map< std::string, TH1 * >::const_iterator THbegin() const
Definition: Analysis_Tier0.h:54
Analysis_Tier0::m_h_trkvtx_z_lb
TProfile * m_h_trkvtx_z_lb
Definition: Analysis_Tier0.h:105
Analysis_Tier0::m_histos
std::map< std::string, TH1 * > m_histos
Definition: Analysis_Tier0.h:84
Analysis_Tier0::m_h_etares
TProfile * m_h_etares
Definition: Analysis_Tier0.h:98
Analysis_Tier0::m_h_trkvtx_x_lb
TProfile * m_h_trkvtx_x_lb
Definition: Analysis_Tier0.h:103
Analysis_Tier0::m_h_nsctvsphi_rec
TProfile * m_h_nsctvsphi_rec
Definition: Analysis_Tier0.h:129
Analysis_Tier0::addHistogram
void addHistogram(TH1 *h)
Definition: Analysis_Tier0.h:70
Analysis_Tier0::m_nVtx
int m_nVtx
Definition: Analysis_Tier0.h:216
Analysis_Tier0::m_h_nsctvsphi
TProfile * m_h_nsctvsphi
Definition: Analysis_Tier0.h:114
Analysis_Tier0::m_h_trkd0sig
TH1F * m_h_trkd0sig
Definition: Analysis_Tier0.h:165
Analysis_Tier0::m_h_nVtxeff
TProfile * m_h_nVtxeff
Definition: Analysis_Tier0.h:93
Analysis_Tier0::m_h_nsctvsd0_rec
TProfile * m_h_nsctvsd0_rec
Definition: Analysis_Tier0.h:130
Analysis_Tier0::m_h_npixvsd0
TProfile * m_h_npixvsd0
Definition: Analysis_Tier0.h:110
Analysis_Tier0::m_h_trkdz0_rec
TH1F * m_h_trkdz0_rec
Definition: Analysis_Tier0.h:184
Analysis_Tier0::m_h_etaeff
TProfile * m_h_etaeff
Definition: Analysis_Tier0.h:89
h
Analysis_Tier0::m_h_ntrk_rec
TH1F * m_h_ntrk_rec
Definition: Analysis_Tier0.h:172
Analysis_Tier0::m_h_npixvseta
TProfile * m_h_npixvseta
Definition: Analysis_Tier0.h:108
Analysis_Tier0::finalise
virtual void finalise()
Definition: Analysis_Tier0.cxx:762
Analysis_Tier0::m_h_ntrtvseta
TProfile * m_h_ntrtvseta
Definition: Analysis_Tier0.h:118
Analysis_Tier0::m_h_trkphi_rec
TH1F * m_h_trkphi_rec
Definition: Analysis_Tier0.h:179
Analysis_Tier0::m_h_trkdd0_rec
TH1F * m_h_trkdd0_rec
Definition: Analysis_Tier0.h:183
Analysis_Tier0::m_h_chain
TH1F * m_h_chain
Definition: Analysis_Tier0.h:147
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
Analysis_Tier0::addHistogram
void addHistogram(TProfile *h)
Definition: Analysis_Tier0.h:75
Analysis_Tier0::m_h_npix_rec
TH1F * m_h_npix_rec
Definition: Analysis_Tier0.h:188
Analysis_Tier0::m_eventid
unsigned long long m_eventid
Definition: Analysis_Tier0.h:220
Analysis_Tier0::m_h_trkz0
TH1F * m_h_trkz0
Definition: Analysis_Tier0.h:155
Analysis_Tier0::m_h_ntrtvsphi
TProfile * m_h_ntrtvsphi
Definition: Analysis_Tier0.h:119
Analysis_Tier0::m_h_nsihits
TH1F * m_h_nsihits
Definition: Analysis_Tier0.h:169
Analysis_Tier0::m_h_ntrt_rec
TH1F * m_h_ntrt_rec
Definition: Analysis_Tier0.h:191
Analysis_Tier0::m_h_trkd0sig_rec
TH1F * m_h_trkd0sig_rec
Definition: Analysis_Tier0.h:186
Analysis_Tier0::m_h_trkpT_residual
TH1F * m_h_trkpT_residual
Definition: Analysis_Tier0.h:197