ATLAS Offline Software
AnalysisR3_Tier0.h
Go to the documentation of this file.
1 /* emacs: this is -*- c++ -*- */
12 #ifndef TrigInDetAnalysisExample_AnalysisR3_Tier0_H
13 #define TrigInDetAnalysisExample_AnalysisR3_Tier0_H
14 
15 #include "GaudiKernel/ToolHandle.h"
17 
18 #include <iostream>
19 
20 #include "TH1.h"
21 #include "TProfile.h"
22 
25 
27 
29 
31 
32 public:
33 
35 
36 public:
37 
38  AnalysisR3_Tier0(const std::string& name, double pTCut, double etaCut, double d0Cut, double z0Cut);
39 
40  virtual void initialise();
41 
42  virtual void initialise_R2();
43  virtual void initialise_R3();
44 
45  virtual void execute(const std::vector<TIDA::Track*>& referenceTracks,
46  const std::vector<TIDA::Track*>& testTracks,
47  TrackAssociator* associator ) {
48  execute( referenceTracks, testTracks, associator, (const TIDA::Event*)0, (double*)0, (TIDARoiDescriptor*)0 );
49  }
50 
51  virtual void execute(const std::vector<TIDA::Track*>& referenceTracks,
52  const std::vector<TIDA::Track*>& testTracks,
53  TrackAssociator* associator,
54  const TIDA::Event* tevt ) {
55  execute( referenceTracks, testTracks, associator, tevt, (double*)0, (TIDARoiDescriptor*)0 );
56  }
57 
58  virtual void execute(const std::vector<TIDA::Track*>& referenceTracks,
59  const std::vector<TIDA::Track*>& testTracks,
60  TrackAssociator* associator,
61  const TIDA::Event* tevt,
62  double* beamline ) {
63  execute( referenceTracks, testTracks, associator, tevt, beamline, (TIDARoiDescriptor*)0 );
64  }
65 
66  virtual void execute(const std::vector<TIDA::Track*>& referenceTracks,
67  const std::vector<TIDA::Track*>& testTracks,
68  TrackAssociator* associator,
69  const TIDA::Event* tevt,
70  double* beamline,
72 
73 
74  virtual void execute_vtx(const std::vector<TIDA::Vertex*>& vtx0,
75  const std::vector<TIDA::Vertex*>& vtx1,
76  const TIDA::Event* tevt=0 );
77 
78  virtual void finalise();
79 
80  void setvertices(int numvtx) {m_nVtx = numvtx;}
81 
82  std::map<std::string, TH1*>::const_iterator THbegin() const { return m_histos.begin(); }
83  std::map<std::string, TH1*>::const_iterator THend() const { return m_histos.end(); }
84 
85  std::map<std::string, TProfile*>::const_iterator TEffbegin() const { return m_effhistos.begin(); }
86  std::map<std::string, TProfile*>::const_iterator TEffend() const { return m_effhistos.end(); }
87 
88  void set_monTool( ToolHandle<GenericMonitoringTool>* m ) { m_monTool=m; }
89 
90  ToolHandle<GenericMonitoringTool>* monTool() { return m_monTool; }
91 
92  bool debug() const { return m_debug; }
93 
94 private:
95 
96  void addHistogram( TH1* ) { }
97 
98  void addHistogram( TProfile* ) { }
99 
100  double phi(double p);
101 
102 private:
103 
106  std::map<std::string, TH1*> m_histos;
107  std::map<std::string, TProfile*> m_effhistos;
108 
110 
119 
126 
130 
131 
136 
141 
144 
146 
151 
156 
159 
161 
164 
165 
170 
175 
176 
179 
181 
186 
188 
191 
192 
194 
195 
197 
198 
204 
207 
209 
214 
215 
217 
218 
225 
228 
229 
230 
232 
233  int m_nVtx;
234 
235  bool m_debug;
236 
237  unsigned long long m_eventid;
238 
240 
241  ToolHandle<GenericMonitoringTool>* m_monTool;
242 
243 };
244 
245 
246 #endif // TrigInDetAnalysisExample_AnalysisR3_Tier0_H
AnalysisR3_Tier0::initialise_R3
virtual void initialise_R3()
Definition: AnalysisR3_Tier0.cxx:42
AnalysisR3_Tier0::THbegin
std::map< std::string, TH1 * >::const_iterator THbegin() const
Definition: AnalysisR3_Tier0.h:82
AnalysisR3_Tier0::m_htrkz0_rec
TIDA::Histogram< float > m_htrkz0_rec
Definition: AnalysisR3_Tier0.h:203
AnalysisR3_Tier0::addHistogram
void addHistogram(TProfile *)
Definition: AnalysisR3_Tier0.h:98
AnalysisR3_Tier0::m_hnsihits_lb
TIDA::Histogram< float > m_hnsihits_lb
Definition: AnalysisR3_Tier0.h:145
TIDA::Associator
Definition: TIDAAssociator.h:24
AnalysisR3_Tier0::m_hntrtvsphi_rec
TIDA::Histogram< float > m_hntrtvsphi_rec
Definition: AnalysisR3_Tier0.h:158
AnalysisR3_Tier0::m_hmu
TIDA::Histogram< float > m_hmu
Definition: AnalysisR3_Tier0.h:193
AnalysisR3_Tier0::m_hetaeff
TIDA::Histogram< float > m_hetaeff
Definition: AnalysisR3_Tier0.h:113
AnalysisR3_Tier0::m_hphieff
TIDA::Histogram< float > m_hphieff
Definition: AnalysisR3_Tier0.h:114
AnalysisR3_Tier0::THend
std::map< std::string, TH1 * >::const_iterator THend() const
Definition: AnalysisR3_Tier0.h:83
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
AnalysisR3_Tier0::m_htrkipT_residual
TIDA::Histogram< float > m_htrkipT_residual
Definition: AnalysisR3_Tier0.h:220
VtxR3Analysis
Definition: VtxR3Analysis.h:24
AnalysisR3_Tier0::m_htrketa_rec
TIDA::Histogram< float > m_htrketa_rec
Definition: AnalysisR3_Tier0.h:200
AnalysisR3_Tier0::m_htrkpT_residual
TIDA::Histogram< float > m_htrkpT_residual
Definition: AnalysisR3_Tier0.h:219
AnalysisR3_Tier0::phi
double phi(double p)
Definition: AnalysisR3_Tier0.cxx:516
AnalysisR3_Tier0::m_hpTres
TIDA::Histogram< float > m_hpTres
Definition: AnalysisR3_Tier0.h:120
TrackAnalysis.h
TrackAnalysis::execute
virtual void execute(const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher)=0
AnalysisR3_Tier0::m_hipTres
TIDA::Histogram< float > m_hipTres
Definition: AnalysisR3_Tier0.h:121
AnalysisR3_Tier0::m_htrkvtx_y_lb
TIDA::Histogram< float > m_htrkvtx_y_lb
Definition: AnalysisR3_Tier0.h:128
AnalysisR3_Tier0::m_hntrtvseta
TIDA::Histogram< float > m_hntrtvseta
Definition: AnalysisR3_Tier0.h:142
AnalysisR3_Tier0::m_htrkphi
TIDA::Histogram< float > m_htrkphi
Definition: AnalysisR3_Tier0.h:172
AnalysisR3_Tier0::addHistogram
void addHistogram(TH1 *)
Definition: AnalysisR3_Tier0.h:96
AnalysisR3_Tier0::m_htrkd0_rec
TIDA::Histogram< float > m_htrkd0_rec
Definition: AnalysisR3_Tier0.h:202
AnalysisR3_Tier0::m_hphires
TIDA::Histogram< float > m_hphires
Definition: AnalysisR3_Tier0.h:123
AnalysisR3_Tier0::m_htrkphi_rec
TIDA::Histogram< float > m_htrkphi_rec
Definition: AnalysisR3_Tier0.h:201
TIDARoiDescriptor
Describes the Region of Ineterest geometry It has basically 8 parameters.
Definition: TIDARoiDescriptor.h:42
AnalysisR3_Tier0::m_hnsihits_rec
TIDA::Histogram< float > m_hnsihits_rec
Definition: AnalysisR3_Tier0.h:212
AnalysisR3_Tier0::m_hz0eff
TIDA::Histogram< float > m_hz0eff
Definition: AnalysisR3_Tier0.h:116
AnalysisR3_Tier0::m_hnpixvsd0
TIDA::Histogram< float > m_hnpixvsd0
Definition: AnalysisR3_Tier0.h:134
AnalysisR3_Tier0::setvertices
void setvertices(int numvtx)
Definition: AnalysisR3_Tier0.h:80
AnalysisR3_Tier0::m_htrkz0
TIDA::Histogram< float > m_htrkz0
Definition: AnalysisR3_Tier0.h:174
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
AnalysisR3_Tier0::m_hntrtvsphi
TIDA::Histogram< float > m_hntrtvsphi
Definition: AnalysisR3_Tier0.h:143
AnalysisR3_Tier0::m_hntrk
TIDA::Histogram< float > m_hntrk
Definition: AnalysisR3_Tier0.h:168
AnalysisR3_Tier0::m_hnsctvseta
TIDA::Histogram< float > m_hnsctvseta
Definition: AnalysisR3_Tier0.h:137
TIDA::Event
Definition: TIDAEvent.h:33
AnalysisR3_Tier0::execute
virtual void execute(const std::vector< TIDA::Track * > &referenceTracks, const std::vector< TIDA::Track * > &testTracks, TrackAssociator *associator, const TIDA::Event *tevt)
Definition: AnalysisR3_Tier0.h:51
AnalysisR3_Tier0::m_histos
std::map< std::string, TH1 * > m_histos
these aren't used for this class but are still needed so that the older class can work - it iuses the...
Definition: AnalysisR3_Tier0.h:106
AnalysisR3_Tier0::m_hnpixvseta_rec
TIDA::Histogram< float > m_hnpixvseta_rec
Definition: AnalysisR3_Tier0.h:147
TIDA::Histogram< float >
AnalysisR3_Tier0::m_hd0res
TIDA::Histogram< float > m_hd0res
Definition: AnalysisR3_Tier0.h:124
AnalysisR3_Tier0::finalise
virtual void finalise()
Definition: AnalysisR3_Tier0.cxx:506
AnalysisR3_Tier0::m_htrkz0_residual
TIDA::Histogram< float > m_htrkz0_residual
Definition: AnalysisR3_Tier0.h:224
AnalysisR3_Tier0::m_hnpixvseta
TIDA::Histogram< float > m_hnpixvseta
Definition: AnalysisR3_Tier0.h:132
TIDDirectory.h
class to keep a directory for each object in a root sort of way, but needed to keep the root objects ...
AnalysisR3_Tier0::m_hnsct
TIDA::Histogram< float > m_hnsct
Definition: AnalysisR3_Tier0.h:183
TrackAnalysis::name
const std::string & name() const
return identifier
Definition: TrackAnalysis.h:52
GenericMonitoringTool.h
AnalysisR3_Tier0::set_monTool
void set_monTool(ToolHandle< GenericMonitoringTool > *m)
Definition: AnalysisR3_Tier0.h:88
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AnalysisR3_Tier0::m_htrkdz0_rec
TIDA::Histogram< float > m_htrkdz0_rec
Definition: AnalysisR3_Tier0.h:206
AnalysisR3_Tier0::AnalysisR3_Tier0
AnalysisR3_Tier0(const std::string &name, double pTCut, double etaCut, double d0Cut, double z0Cut)
Definition: AnalysisR3_Tier0.cxx:19
AnalysisR3_Tier0::m_htrkdd0_residual
TIDA::Histogram< float > m_htrkdd0_residual
Definition: AnalysisR3_Tier0.h:226
AnalysisR3_Tier0::m_hd0eff
TIDA::Histogram< float > m_hd0eff
Definition: AnalysisR3_Tier0.h:115
AnalysisR3_Tier0::m_chi2dof
TIDA::Histogram< float > m_chi2dof
Definition: AnalysisR3_Tier0.h:189
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
AnalysisR3_Tier0::monTool
ToolHandle< GenericMonitoringTool > * monTool()
Definition: AnalysisR3_Tier0.h:90
AnalysisR3_Tier0::m_htrkd0sig
TIDA::Histogram< float > m_htrkd0sig
Definition: AnalysisR3_Tier0.h:180
AnalysisR3_Tier0::m_htrkvtx_z_lb
TIDA::Histogram< float > m_htrkvtx_z_lb
Definition: AnalysisR3_Tier0.h:129
AnalysisR3_Tier0::m_hnsihits_lb_rec
TIDA::Histogram< float > m_hnsihits_lb_rec
Definition: AnalysisR3_Tier0.h:160
AnalysisR3_Tier0::m_htrkpT_rec
TIDA::Histogram< float > m_htrkpT_rec
Definition: AnalysisR3_Tier0.h:199
TrackAnalysis
Definition: TrackAnalysis.h:32
AnalysisR3_Tier0::m_htrketa_residual
TIDA::Histogram< float > m_htrketa_residual
Definition: AnalysisR3_Tier0.h:221
AnalysisR3_Tier0::m_hnsihits
TIDA::Histogram< float > m_hnsihits
Definition: AnalysisR3_Tier0.h:184
AnalysisR3_Tier0::m_hnsctvsd0_rec
TIDA::Histogram< float > m_hnsctvsd0_rec
Definition: AnalysisR3_Tier0.h:154
AnalysisR3_Tier0::m_hnpixvspT_rec
TIDA::Histogram< float > m_hnpixvspT_rec
Definition: AnalysisR3_Tier0.h:150
AnalysisR3_Tier0::execute
virtual void execute(const std::vector< TIDA::Track * > &referenceTracks, const std::vector< TIDA::Track * > &testTracks, TrackAssociator *associator, const TIDA::Event *tevt, double *beamline)
Definition: AnalysisR3_Tier0.h:58
AnalysisR3_Tier0::m_hntrt_rec
TIDA::Histogram< float > m_hntrt_rec
Definition: AnalysisR3_Tier0.h:213
AnalysisR3_Tier0::m_hnpix_rec
TIDA::Histogram< float > m_hnpix_rec
Definition: AnalysisR3_Tier0.h:210
AnalysisR3_Tier0::m_hnpix
TIDA::Histogram< float > m_hnpix
Definition: AnalysisR3_Tier0.h:182
AnalysisR3_Tier0::m_htrkvtx_x_lb
TIDA::Histogram< float > m_htrkvtx_x_lb
Definition: AnalysisR3_Tier0.h:127
AnalysisR3_Tier0::m_hnpixvsd0_rec
TIDA::Histogram< float > m_hnpixvsd0_rec
Definition: AnalysisR3_Tier0.h:149
AnalysisR3_Tier0::m_effhistos
std::map< std::string, TProfile * > m_effhistos
Definition: AnalysisR3_Tier0.h:107
AnalysisR3_Tier0::m_vtxanal
VtxR3Analysis * m_vtxanal
Definition: AnalysisR3_Tier0.h:239
AnalysisR3_Tier0::m_htrkpT
TIDA::Histogram< float > m_htrkpT
Definition: AnalysisR3_Tier0.h:169
AnalysisR3_Tier0::m_hroieta
TIDA::Histogram< float > m_hroieta
Definition: AnalysisR3_Tier0.h:167
AnalysisR3_Tier0::m_hchain
TIDA::Histogram< float > m_hchain
Definition: AnalysisR3_Tier0.h:166
AnalysisR3_Tier0::m_htrketa
TIDA::Histogram< float > m_htrketa
Definition: AnalysisR3_Tier0.h:171
AnalysisR3_Tier0::m_nVtx
int m_nVtx
sundry other items
Definition: AnalysisR3_Tier0.h:233
AnalysisR3_Tier0::m_hd0vsphi_rec
TIDA::Histogram< float > m_hd0vsphi_rec
Definition: AnalysisR3_Tier0.h:163
AnalysisR3_Tier0::m_hlayer_rec
TIDA::Histogram< float > m_hlayer_rec
Definition: AnalysisR3_Tier0.h:216
AnalysisR3_Tier0::m_hnsct_rec
TIDA::Histogram< float > m_hnsct_rec
Definition: AnalysisR3_Tier0.h:211
AnalysisR3_Tier0::m_htrkd0_residual
TIDA::Histogram< float > m_htrkd0_residual
Definition: AnalysisR3_Tier0.h:223
AnalysisR3_Tier0::m_htrkd0
TIDA::Histogram< float > m_htrkd0
Definition: AnalysisR3_Tier0.h:173
AnalysisR3_Tier0::m_htotal_efficiency
TIDA::Histogram< float > m_htotal_efficiency
Monitorwd::AScalar Histogram wrapper class.
Definition: AnalysisR3_Tier0.h:111
AnalysisR3_Tier0::m_hnpixvsphi_rec
TIDA::Histogram< float > m_hnpixvsphi_rec
Definition: AnalysisR3_Tier0.h:148
AnalysisR3_Tier0::m_htrkd0sig_rec
TIDA::Histogram< float > m_htrkd0sig_rec
Definition: AnalysisR3_Tier0.h:208
AnalysisR3_Tier0::m_hntrtvseta_rec
TIDA::Histogram< float > m_hntrtvseta_rec
Definition: AnalysisR3_Tier0.h:157
AnalysisR3_Tier0::m_hpTeff
TIDA::Histogram< float > m_hpTeff
Definition: AnalysisR3_Tier0.h:112
AnalysisR3_Tier0::m_hnpixvspT
TIDA::Histogram< float > m_hnpixvspT
Definition: AnalysisR3_Tier0.h:135
AnalysisR3_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: AnalysisR3_Tier0.cxx:499
VtxR3Analysis.h
AnalysisR3_Tier0
Definition: AnalysisR3_Tier0.h:30
AnalysisR3_Tier0::m_monTool
ToolHandle< GenericMonitoringTool > * m_monTool
Definition: AnalysisR3_Tier0.h:241
AnalysisR3_Tier0::m_chi2dof_rec
TIDA::Histogram< float > m_chi2dof_rec
Definition: AnalysisR3_Tier0.h:190
AnalysisR3_Tier0::debug
bool debug() const
Definition: AnalysisR3_Tier0.h:92
AnalysisR3_Tier0::m_htrkdd0
TIDA::Histogram< float > m_htrkdd0
Definition: AnalysisR3_Tier0.h:177
AnalysisR3_Tier0::m_hnpixvsphi
TIDA::Histogram< float > m_hnpixvsphi
Definition: AnalysisR3_Tier0.h:133
AnalysisR3_Tier0::initialise
virtual void initialise()
standard operation interface
Definition: AnalysisR3_Tier0.cxx:36
AnalysisR3_Tier0::m_hz0res
TIDA::Histogram< float > m_hz0res
Definition: AnalysisR3_Tier0.h:125
AnalysisR3_Tier0::m_hnVtxeff
TIDA::Histogram< float > m_hnVtxeff
Definition: AnalysisR3_Tier0.h:117
AnalysisR3_Tier0::execute
virtual void execute(const std::vector< TIDA::Track * > &referenceTracks, const std::vector< TIDA::Track * > &testTracks, TrackAssociator *associator)
Definition: AnalysisR3_Tier0.h:45
AnalysisR3_Tier0::m_hnsctvsphi_rec
TIDA::Histogram< float > m_hnsctvsphi_rec
Definition: AnalysisR3_Tier0.h:153
AnalysisR3_Tier0::TEffend
std::map< std::string, TProfile * >::const_iterator TEffend() const
Definition: AnalysisR3_Tier0.h:86
AnalysisR3_Tier0::m_htrkphi_residual
TIDA::Histogram< float > m_htrkphi_residual
Definition: AnalysisR3_Tier0.h:222
AnalysisR3_Tier0::m_hnsctvsd0
TIDA::Histogram< float > m_hnsctvsd0
Definition: AnalysisR3_Tier0.h:139
AnalysisR3_Tier0::TEffbegin
std::map< std::string, TProfile * >::const_iterator TEffbegin() const
Definition: AnalysisR3_Tier0.h:85
AnalysisR3_Tier0::m_hnsctvspT
TIDA::Histogram< float > m_hnsctvspT
Definition: AnalysisR3_Tier0.h:140
AnalysisR3_Tier0::m_hnsctvsphi
TIDA::Histogram< float > m_hnsctvsphi
Definition: AnalysisR3_Tier0.h:138
AnalysisR3_Tier0::m_eventid
unsigned long long m_eventid
Definition: AnalysisR3_Tier0.h:237
AnalysisR3_Tier0::m_hntrt
TIDA::Histogram< float > m_hntrt
Definition: AnalysisR3_Tier0.h:185
AnalysisR3_Tier0::m_hnsctvspT_rec
TIDA::Histogram< float > m_hnsctvspT_rec
Definition: AnalysisR3_Tier0.h:155
AnalysisR3_Tier0::m_hetares
TIDA::Histogram< float > m_hetares
Definition: AnalysisR3_Tier0.h:122
AnalysisR3_Tier0::m_hntrk_rec
TIDA::Histogram< float > m_hntrk_rec
Definition: AnalysisR3_Tier0.h:187
AnalysisR3_Tier0::m_htrkdd0_rec
TIDA::Histogram< float > m_htrkdd0_rec
Definition: AnalysisR3_Tier0.h:205
AnalysisR3_Tier0::initialise_R2
virtual void initialise_R2()
Definition: AnalysisR3_Tier0.cxx:40
AnalysisR3_Tier0::m_htrkdz0
TIDA::Histogram< float > m_htrkdz0
Definition: AnalysisR3_Tier0.h:178
AnalysisR3_Tier0::m_debug
bool m_debug
Definition: AnalysisR3_Tier0.h:235
AnalysisR3_Tier0::m_hlayer
TIDA::Histogram< float > m_hlayer
Definition: AnalysisR3_Tier0.h:196
AnalysisR3_Tier0::m_hd0vsphi
TIDA::Histogram< float > m_hd0vsphi
Definition: AnalysisR3_Tier0.h:162
AnalysisR3_Tier0::m_hlbeff
TIDA::Histogram< float > m_hlbeff
Definition: AnalysisR3_Tier0.h:118
AnalysisR3_Tier0::m_hnsctvseta_rec
TIDA::Histogram< float > m_hnsctvseta_rec
Definition: AnalysisR3_Tier0.h:152
TIDAHistogram.h
emacs: this is -* c++ -*-
AnalysisR3_Tier0::m_htrkdz0_residual
TIDA::Histogram< float > m_htrkdz0_residual
Definition: AnalysisR3_Tier0.h:227