#include <VtxR3Analysis.h>
Definition at line 24 of file VtxR3Analysis.h.
◆ VtxR3Analysis()
| VtxR3Analysis::VtxR3Analysis |
( |
const std::string & | n | ) |
|
Definition at line 16 of file VtxR3Analysis.cxx.
16 :
41{}
VertexAnalysis(const std::string &n)
TIDA::Histogram< float > * m_eff_mu
TIDA::Histogram< float > * m_hx_rec
TIDA::Histogram< float > * m_hzed_rec
TIDA::Histogram< float > * m_hy_rec
TIDA::Histogram< float > * m_rdz_vs_nvtx
TIDA::Histogram< float > * m_rdz_vs_zed
TIDA::Histogram< float > * m_hnvtx
TIDA::Histogram< float > * m_hzed_res
TIDA::Histogram< float > * m_eff_lb
TIDA::Histogram< float > * m_hx_res
TIDA::Histogram< float > * m_hnvtx_rec
TIDA::Histogram< float > * m_hntrax_rec
TIDA::Histogram< float > * m_hx
TIDA::Histogram< float > * m_hntrax
TIDA::Histogram< float > * m_eff_nvtx
TIDA::Histogram< float > * m_eff_zed
TIDA::Histogram< float > * m_hy
TIDA::Histogram< float > * m_hzed
ToolHandle< GenericMonitoringTool > * m_monTool
TIDA::Histogram< float > * m_rdz_vs_ntrax
TIDA::Histogram< float > * m_hy_res
TIDA::Histogram< float > * m_eff_ntrax
◆ ~VtxR3Analysis()
| virtual VtxR3Analysis::~VtxR3Analysis |
( |
| ) |
|
|
inlinevirtual |
◆ addHistogram() [1/2]
| void VertexAnalysis::addHistogram |
( |
TH1 * | h | ) |
|
|
inlineinherited |
◆ addHistogram() [2/2]
| void VertexAnalysis::addHistogram |
( |
TProfile * | h | ) |
|
|
inlineinherited |
◆ execute()
ah ha ! can fill some silly old histograms here ...
this isn't really legitimate
Implements VertexAnalysis.
Definition at line 88 of file VtxR3Analysis.cxx.
90 {
91
92
93
95
96
97
98#if 0
99 std::cout <<
"VtxAnalysis::execute() " <<
name()
100 << "\tvtx0.size() " << vtx0.size()
101 << "\tvtx1.size() " << vtx1.size()
102 << std::endl;
103#endif
104
105
106 VertexMatcher
m(
"vtx_matcher", 10 );
107
108 m.match( vtx0, vtx1 );
109
112
113
114 for (
unsigned i=0 ;
i<vtx0.size() ;
i++ ) {
115
116 if ( i>0 ) break;
117
118
119
121 m_hx->Fill( vtx0[i]->
x() );
122 m_hy->Fill( vtx0[i]->
y() );
123
124
125 m_hntrax->Fill( vtx0[i]->Ntracks() );
126
127 const TIDA::Vertex* mv =
m.matched( vtx0[i] );
128
129 if ( mv ) {
130
131
132
135
140
142 m_hx_res->Fill( mv->
x() - vtx0[i]->x() );
143 m_hy_res->Fill( mv->
y() - vtx0[i]->y() );
144
148
152
154 m_eff_lb->Fill( tevt->lumi_block(), 1 );
155
156 }
157 else {
158
159
161
164
166 m_eff_lb->Fill( tevt->lumi_block(), 0 );
167 }
168
169 }
170
171}
const std::string & name() const
◆ finalise()
| void VtxR3Analysis::finalise |
( |
| ) |
|
|
virtual |
◆ initialise()
| void VtxR3Analysis::initialise |
( |
| ) |
|
|
virtual |
mdir->pop();
Implements VertexAnalysis.
Definition at line 44 of file VtxR3Analysis.cxx.
44 {
45
47
48
49
50
51
52
53
54
55
58 m_hx =
new TIDA::Histogram<float>(
monTool(),
"vx_x" );
59 m_hy =
new TIDA::Histogram<float>(
monTool(),
"vx_y" );
61
62
68
72
76
82
84
85}
ToolHandle< GenericMonitoringTool > * monTool()
◆ monTool()
◆ name()
| const std::string & VertexAnalysis::name |
( |
| ) |
const |
|
inlineinherited |
◆ objects()
| const std::vector< TH1 * > & VertexAnalysis::objects |
( |
| ) |
const |
|
inlineinherited |
◆ profs()
| const std::vector< TProfile * > & VertexAnalysis::profs |
( |
| ) |
const |
|
inlineinherited |
◆ set_monTool()
◆ m_eff_lb
◆ m_eff_mu
◆ m_eff_ntrax
◆ m_eff_nvtx
◆ m_eff_zed
◆ m_histos
| std::vector<TH1*> VertexAnalysis::m_histos |
|
protectedinherited |
◆ m_hntrax
◆ m_hntrax_rec
◆ m_hnvtx
◆ m_hnvtx_rec
◆ m_hx
◆ m_hx_rec
◆ m_hx_res
◆ m_hy
◆ m_hy_rec
◆ m_hy_res
◆ m_hzed
◆ m_hzed_rec
◆ m_hzed_res
◆ m_initialised
| bool VtxR3Analysis::m_initialised |
|
private |
◆ m_monTool
◆ m_name
| std::string VertexAnalysis::m_name |
|
privateinherited |
◆ m_profs
| std::vector<TProfile*> VertexAnalysis::m_profs |
|
protectedinherited |
◆ m_rdz_vs_ntrax
◆ m_rdz_vs_nvtx
◆ m_rdz_vs_zed
The documentation for this class was generated from the following files: