#include <TrackDistributions.h>
|
| | TrackDistributions (const std::string &name) |
| virtual void | initialise () |
| | standard operation interface
|
| virtual void | execute (const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher) |
| virtual void | finalise () |
| virtual void | execute (const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher, TrigObjectMatcher *) |
| virtual void | execute (const std::vector< TIDA::Track * > &, const std::vector< TIDA::Track * > &, TrackAssociator *, const TIDA::Event *) |
| virtual void | execute (const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher, const TIDA::Event *event, double *) |
| virtual void | execute (const std::vector< TIDA::Track * > &, const std::vector< TIDA::Track * > &, TrackAssociator *, const TIDA::Event *, double *, TIDARoiDescriptor *) |
| const std::string & | name () const |
| | return identifier
|
| virtual void | execute_vtx (const std::vector< TIDA::Vertex * > &, const std::vector< TIDA::Vertex * > &, const TIDA::Event *=0) |
| void | addHistogram (TH1 *h) |
| const std::map< std::string, TH1 * > & | getHistograms () const |
| | access the histograms
|
| std::map< std::string, TH1 * >::const_iterator | begin () const |
| std::map< std::string, TH1 * >::const_iterator | end () const |
| void | setBeamRef (double x, double y, double z=0) |
| | set the beamline positions
|
| void | setBeamRef (const std::vector< double > &v) |
| void | setBeamTest (double x, double y, double z=0) |
| void | setBeamTest (const std::vector< double > &v) |
| double | beamRefx () const |
| double | beamRefy () const |
| double | beamRefz () const |
| double | beamTestx () const |
| double | beamTesty () const |
| double | beamTestz () const |
| TIDA::FeatureStore & | store () |
| const TIDA::Event * | event () const |
| void | setevent (TIDA::Event *e) |
| const TIDARoiDescriptor * | roi () const |
| void | setroi (TIDARoiDescriptor *r) |
Definition at line 22 of file TrackDistributions.h.
◆ TrackDistributions()
| TrackDistributions::TrackDistributions |
( |
const std::string & | name | ) |
|
|
inline |
Definition at line 30 of file TrackDistributions.h.
30 :
32 { }
const std::string & name() const
return identifier
TrackAnalysis(const std::string &name)
the beam test parts are not really usable in a multithreaded environment
◆ addHistogram()
| void TrackAnalysis::addHistogram |
( |
TH1 * | h | ) |
|
|
inlineinherited |
Definition at line 97 of file TrackAnalysis.h.
97 {
98 std::string
name =
h->GetName();
99 m_histos.insert( std::map<std::string, TH1*>::value_type(
name, h) );
100 }
std::map< std::string, TH1 * > m_histos
lookup table for the histograms by name - does this need to be in the base class?
◆ beamRefx()
| double TrackAnalysis::beamRefx |
( |
| ) |
const |
|
inlineinherited |
Definition at line 124 of file TrackAnalysis.h.
double m_xBeamReference
beamline positions reference sample
◆ beamRefy()
| double TrackAnalysis::beamRefy |
( |
| ) |
const |
|
inlineinherited |
◆ beamRefz()
| double TrackAnalysis::beamRefz |
( |
| ) |
const |
|
inlineinherited |
◆ beamTestx()
| double TrackAnalysis::beamTestx |
( |
| ) |
const |
|
inlineinherited |
◆ beamTesty()
| double TrackAnalysis::beamTesty |
( |
| ) |
const |
|
inlineinherited |
◆ beamTestz()
| double TrackAnalysis::beamTestz |
( |
| ) |
const |
|
inlineinherited |
◆ begin()
◆ end()
◆ event()
◆ execute() [1/5]
◆ execute() [2/5]
◆ execute() [3/5]
Implements TrackAnalysis.
Definition at line 64 of file TrackDistributions.cxx.
67{
68 std::cout <<
"execute() " <<
name() << std::endl;
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83 for ( unsigned i=testtracks.size() ; i-- ; ) {
84
85#if 0
86 std::cout << "SUTT pt distribution "
87 <<
"\tpt=" << reftracks[
i]->pT()
88 <<
"\tpTr=" << testtracks[
i]->pT()
89 << "\t1/pTt=" << 1/testpTt
90 << "\tDpT=" << pTt-pTr
91 << "\tD1/pT=" << 1/pTt-1/pTr
92 << std::endl;
93#endif
94
95 std::cout <<
"SUTT pt distribution " << *testtracks[
i] << std::endl;
96
98
101
102 m_hz0->Fill( testtracks[i]->
z0() );
103
104 m_hd0->Fill( testtracks[i]->
a0() );
105 m_hpT->Fill( testtracks[i]->
pT() );
106
107 m_hdeta->Fill( testtracks[i]->deta() );
108 m_hdphi->Fill( testtracks[i]->dphi() );
109
110 m_hdz0->Fill( testtracks[i]->dz0() );
111 m_hdd0->Fill( testtracks[i]->da0() );
112 m_hdpT->Fill( testtracks[i]->dpT() );
113
114 m_hblayer->Fill( testtracks[i]->bLayerHits() );
115 m_hpixel->Fill( testtracks[i]->pixelHits() );
116 m_hsct->Fill( testtracks[i]->sctHits() );
118
119 m_hstraw->Fill( testtracks[i]->strawHits() );
120 m_htr->Fill( testtracks[i]->trHits() );
121
122
123
124 }
125
126}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
double chi2(TH1 *h0, TH1 *h1)
◆ execute() [4/5]
Reimplemented from TrackAnalysis.
Definition at line 73 of file TrackAnalysis.h.
77 {
79 }
const TIDA::Event * event() const
virtual void execute(const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher)
◆ execute() [5/5]
◆ execute_vtx()
◆ finalise()
| void TrackDistributions::finalise |
( |
| ) |
|
|
virtual |
◆ getHistograms()
| const std::map< std::string, TH1 * > & TrackAnalysis::getHistograms |
( |
| ) |
const |
|
inlineinherited |
◆ initialise()
| void TrackDistributions::initialise |
( |
| ) |
|
|
virtual |
standard operation interface
Implements TrackAnalysis.
Definition at line 21 of file TrackDistributions.cxx.
21 {
22
23
24 m_hchi2 =
new TH1D(std::string(
name()+
"-chi2").c_str(),
25 std::string(
name()+
" chi2 distribution").c_str(), 100, 0.0, 50.0);
26 m_heta =
new TH1D(std::string(
name()+
"-eta").c_str(),
27 std::string(
name()+
" eta distribution").c_str(), 100, -3.0, 3.0);
28 m_hphi =
new TH1D(std::string(
name()+
"-phi").c_str(),
29 std::string(
name()+
" phi distribution").c_str(), 100, -3.1416, 3.1416);
30 m_hz0 =
new TH1D(std::string(
name()+
"-z0").c_str(),
31 std::string(
name()+
" z0 distribution").c_str(), 100, -1000.0, 1000.0);
32 m_hd0 =
new TH1D(std::string(
name()+
"-d0").c_str(),
33 std::string(
name()+
" d0 distribution").c_str(), 100, -500.0, 500.0);
34 m_hpT =
new TH1D(std::string(
name()+
"-pT").c_str(),
35 std::string(
name()+
" pT distribution").c_str(), 100, -100000, 100000);
36 m_hdeta =
new TH1D(std::string(
name()+
"-deta").c_str(),
37 std::string(
name()+
" eta error distribution").c_str(), 100, 0, 0.2);
38 m_hdphi =
new TH1D(std::string(
name()+
"-dphi").c_str(),
39 std::string(
name()+
" phi error distribution").c_str(), 100, 0, 0.2);
40 m_hdz0 =
new TH1D(std::string(
name()+
"-dz0").c_str(),
41 std::string(
name()+
" z0 error distribution").c_str(), 100, 0, 1.0);
42 m_hdd0 =
new TH1D(std::string(
name()+
"-dd0").c_str(),
43 std::string(
name()+
" d0 error distribution").c_str(), 100, 0, 0.5);
44 m_hdpT =
new TH1D(std::string(
name()+
"-dpT").c_str(),
45 std::string(
name()+
" pT error distribution").c_str(), 100, 0, 10000);
47 std::string(
name()+
" blayer distribution").c_str(), 10, 0, 10.0);
48 m_hpixel =
new TH1D(std::string(
name()+
"-pixel").c_str(),
49 std::string(
name()+
" pixel distribution").c_str(), 10, 0, 10.0);
50 m_hsct =
new TH1D(std::string(
name()+
"-sct").c_str(),
51 std::string(
name()+
" sct distribution").c_str(), 10, 0, 10.0);
53 std::string(
name()+
" silicon distribution").c_str(), 10, 0, 10.0);
54 m_hstraw =
new TH1D(std::string(
name()+
"-straw").c_str(),
55 std::string(
name()+
" straw distribution").c_str(), 40, 0, 40.0);
56 m_htr =
new TH1D(std::string(
name()+
"-tr").c_str(),
57 std::string(
name()+
" tr distribution").c_str(), 40, 0, 40.0);
58
59
60}
◆ name()
| const std::string & TrackAnalysis::name |
( |
| ) |
const |
|
inlineinherited |
return identifier
Definition at line 52 of file TrackAnalysis.h.
std::string m_name
identifier of the of the analysis - also used for the root directory into which the histograms are pu...
◆ roi()
◆ setBeamRef() [1/2]
| void TrackAnalysis::setBeamRef |
( |
const std::vector< double > & | v | ) |
|
|
inlineinherited |
◆ setBeamRef() [2/2]
| void TrackAnalysis::setBeamRef |
( |
double | x, |
|
|
double | y, |
|
|
double | z = 0 ) |
|
inlineinherited |
◆ setBeamTest() [1/2]
| void TrackAnalysis::setBeamTest |
( |
const std::vector< double > & | v | ) |
|
|
inlineinherited |
◆ setBeamTest() [2/2]
| void TrackAnalysis::setBeamTest |
( |
double | x, |
|
|
double | y, |
|
|
double | z = 0 ) |
|
inlineinherited |
◆ setevent()
◆ setroi()
◆ store()
◆ m_event
◆ m_hblayer
| TH1D* TrackDistributions::m_hblayer = nullptr |
|
private |
◆ m_hchi2
| TH1D* TrackDistributions::m_hchi2 = nullptr |
|
private |
◆ m_hd0
| TH1D* TrackDistributions::m_hd0 = nullptr |
|
private |
◆ m_hdd0
| TH1D* TrackDistributions::m_hdd0 = nullptr |
|
private |
◆ m_hdeta
| TH1D* TrackDistributions::m_hdeta = nullptr |
|
private |
◆ m_hdphi
| TH1D* TrackDistributions::m_hdphi = nullptr |
|
private |
◆ m_hdpT
| TH1D* TrackDistributions::m_hdpT = nullptr |
|
private |
◆ m_hdz0
| TH1D* TrackDistributions::m_hdz0 = nullptr |
|
private |
◆ m_heta
| TH1D* TrackDistributions::m_heta = nullptr |
|
private |
◆ m_histos
| std::map<std::string, TH1*> TrackAnalysis::m_histos |
|
protectedinherited |
lookup table for the histograms by name - does this need to be in the base class?
Definition at line 149 of file TrackAnalysis.h.
◆ m_hphi
| TH1D* TrackDistributions::m_hphi = nullptr |
|
private |
◆ m_hpixel
| TH1D* TrackDistributions::m_hpixel = nullptr |
|
private |
◆ m_hpT
| TH1D* TrackDistributions::m_hpT = nullptr |
|
private |
◆ m_hsct
| TH1D* TrackDistributions::m_hsct = nullptr |
|
private |
◆ m_hsilicon
| TH1D* TrackDistributions::m_hsilicon = nullptr |
|
private |
◆ m_hstraw
| TH1D* TrackDistributions::m_hstraw = nullptr |
|
private |
◆ m_htr
| TH1D* TrackDistributions::m_htr = nullptr |
|
private |
◆ m_hz0
| TH1D* TrackDistributions::m_hz0 = nullptr |
|
private |
◆ m_name
| std::string TrackAnalysis::m_name |
|
protectedinherited |
identifier of the of the analysis - also used for the root directory into which the histograms are put
Definition at line 145 of file TrackAnalysis.h.
◆ m_roi
◆ m_store
◆ m_xBeamReference
| double TrackAnalysis::m_xBeamReference |
|
protectedinherited |
◆ m_xBeamTest
| double TrackAnalysis::m_xBeamTest |
|
protectedinherited |
◆ m_yBeamReference
| double TrackAnalysis::m_yBeamReference |
|
protectedinherited |
◆ m_yBeamTest
| double TrackAnalysis::m_yBeamTest |
|
protectedinherited |
◆ m_zBeamReference
| double TrackAnalysis::m_zBeamReference |
|
protectedinherited |
◆ m_zBeamTest
| double TrackAnalysis::m_zBeamTest |
|
protectedinherited |
The documentation for this class was generated from the following files: