ATLAS Offline Software
Loading...
Searching...
No Matches
AnalysisR3_Tier0.h
Go to the documentation of this file.
1/* emacs: this is -*- c++ -*- */
10
11
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
32public:
33
35
36public:
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
94private:
95
96 void addHistogram( TH1* ) { }
97
98 void addHistogram( TProfile* ) { }
99
100 double phi(double p);
101
102private:
103
106 std::map<std::string, TH1*> m_histos;
107 std::map<std::string, TProfile*> m_effhistos;
108
110
120
127
131
132
137
142
145
147
152
157
160
162
165
166
171
176
177
180
182
187
189
192
193
195
196
198
199
205
208
210
215
216
218
219
226
229
230
231
233
235
237
238 unsigned long long m_eventid;
239
241
242 ToolHandle<GenericMonitoringTool>* m_monTool;
243
244};
245
246
247#endif // TrigInDetAnalysisExample_AnalysisR3_Tier0_H
Scalar phi() const
phi method
emacs: this is -* c++ -*-
TIDA::Associator< TIDA::Track > TrackAssociator
TIDA::Histogram< float > m_hz0res
TIDA::Histogram< float > m_hz0eff
TIDA::Histogram< float > m_hd0vsphi_rec
TIDA::Histogram< float > m_hntrt
TIDA::Histogram< float > m_hnVtxeff
TIDA::Histogram< float > m_htrkd0
virtual void initialise_R2()
TIDA::Histogram< float > m_hnsctvsphi_rec
std::map< std::string, TProfile * >::const_iterator TEffbegin() const
TIDA::Histogram< float > m_hphires
virtual void execute(const std::vector< TIDA::Track * > &referenceTracks, const std::vector< TIDA::Track * > &testTracks, TrackAssociator *associator, const TIDA::Event *tevt, double *beamline)
TIDA::Histogram< float > m_htrkpT
TIDA::Histogram< float > m_hntrt_rec
TIDA::Histogram< float > m_htrkdd0_rec
TIDA::Histogram< float > m_htotal_efficiency
Monitorwd::AScalar Histogram wrapper class.
TIDA::Histogram< float > m_hetares
virtual void finalise()
int m_nVtx
sundry other items
TIDA::Histogram< float > m_htrkz0_rec
TIDA::Histogram< float > m_hlbeff
TIDA::Histogram< float > m_hnsctvseta_rec
TIDA::Histogram< float > m_hphieff
TIDA::Histogram< float > m_hroieta
TIDA::Histogram< float > m_hntrtvsphi
TIDA::Histogram< float > m_htrkphi
AnalysisR3_Tier0(const std::string &name, double pTCut, double etaCut, double d0Cut, double z0Cut)
TIDA::Histogram< float > m_chi2dof_rec
TIDA::Histogram< float > m_hntrk_rec
TIDA::Histogram< float > m_hnpixvsphi_rec
TIDA::Histogram< float > m_htrkphi_rec
TIDA::Histogram< float > m_chi2dof
TIDA::Histogram< float > m_hntrtvseta
virtual void execute_vtx(const std::vector< TIDA::Vertex * > &vtx0, const std::vector< TIDA::Vertex * > &vtx1, const TIDA::Event *tevt=0)
ToolHandle< GenericMonitoringTool > * m_monTool
virtual void execute(const std::vector< TIDA::Track * > &referenceTracks, const std::vector< TIDA::Track * > &testTracks, TrackAssociator *associator, const TIDA::Event *tevt)
TIDA::Histogram< float > m_htrkdz0
TIDA::Histogram< float > m_hnsctvspT_rec
virtual void execute(const std::vector< TIDA::Track * > &referenceTracks, const std::vector< TIDA::Track * > &testTracks, TrackAssociator *associator)
TIDA::Histogram< float > m_htrkvtx_z_lb
TIDA::Histogram< float > m_htrkd0sig_rec
std::map< std::string, TH1 * >::const_iterator THend() const
std::map< std::string, TProfile * > m_effhistos
TIDA::Histogram< float > m_hnsctvsphi
TIDA::Histogram< float > m_hnsct
TIDA::Histogram< float > m_htrkd0_rec
TIDA::Histogram< float > m_hntrk
TIDA::Histogram< float > m_htrkpT_residual
TIDA::Histogram< float > m_hnsct_rec
TIDA::Histogram< float > m_hnsihits_lb_rec
virtual void initialise_R3()
TIDA::Histogram< float > m_hnsctvspT
TIDA::Histogram< float > m_hd0eff
std::map< std::string, TProfile * >::const_iterator TEffend() const
TIDA::Histogram< float > m_htrkz0_residual
TIDA::Histogram< float > m_hlayer_rec
TIDA::Histogram< float > m_hnsihits_rec
TIDA::Histogram< float > m_htrkdz0_residual
void addHistogram(TProfile *)
TIDA::Histogram< float > m_htrkdd0_residual
TIDA::Histogram< float > m_htrkipT_residual
virtual void initialise()
standard operation interface
TIDA::Histogram< float > m_hnpixvsphi
TIDA::Histogram< float > m_hntrtvseta_rec
TIDA::Histogram< float > m_hd0vsphi
TIDA::Histogram< float > m_hnsihits_lb
TIDA::Histogram< float > m_htrkdz0_rec
void set_monTool(ToolHandle< GenericMonitoringTool > *m)
TIDA::Histogram< float > m_hetaeff
std::map< std::string, TH1 * >::const_iterator THbegin() const
TIDA::Histogram< float > m_htrketa
TIDA::Histogram< float > m_hlayer
TIDA::Histogram< float > m_hntraxeff
TIDA::Histogram< float > m_htrkphi_residual
TIDA::Histogram< float > m_hnpix
TIDA::Histogram< float > m_htrkvtx_y_lb
TIDA::Histogram< float > m_hnsctvsd0_rec
TIDA::Histogram< float > m_hnpix_rec
void addHistogram(TH1 *)
TIDA::Histogram< float > m_hmu
TIDA::Histogram< float > m_hpTres
TIDA::Histogram< float > m_hchain
TIDA::Histogram< float > m_hipTres
ToolHandle< GenericMonitoringTool > * monTool()
TIDA::Histogram< float > m_hnpixvsd0_rec
TIDA::Histogram< float > m_htrkvtx_x_lb
TIDA::Histogram< float > m_htrketa_rec
TIDA::Histogram< float > m_htrkd0sig
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...
VtxR3Analysis * m_vtxanal
TIDA::Histogram< float > m_hntrtvsphi_rec
TIDA::Histogram< float > m_hnpixvsd0
void setvertices(int numvtx)
TIDA::Histogram< float > m_hnsctvseta
TIDA::Histogram< float > m_hnpixvseta_rec
TIDA::Histogram< float > m_hd0res
TIDA::Histogram< float > m_htrkd0_residual
TIDA::Histogram< float > m_htrketa_residual
TIDA::Histogram< float > m_hpTeff
TIDA::Histogram< float > m_hnpixvspT
TIDA::Histogram< float > m_hnsctvsd0
TIDA::Histogram< float > m_hnsihits
TIDA::Histogram< float > m_htrkz0
TIDA::Histogram< float > m_htrkpT_rec
unsigned long long m_eventid
TIDA::Histogram< float > m_hnpixvseta
TIDA::Histogram< float > m_htrkdd0
TIDA::Histogram< float > m_hnpixvspT_rec
Describes the Region of Ineterest geometry It has basically 8 parameters.
virtual void execute(const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher)=0
const std::string & name() const
return identifier
TrackAnalysis(const std::string &name)
the beam test parts are not really usable in a multithreaded environment