A class to have MC information of TTrack.
More...
#include <TTrackMC.h>
|
virtual | ~TTrackMC () |
| Destructor.
|
|
void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const |
| dumps debug information.
|
|
int | hepId (void) const |
| returns HEP ID.
|
|
const TTrackHEP *const | hep (void) const |
| returns a pointer to TTrackHEP.
|
|
bool | charge (void) const |
| returns charge matching.
|
|
double | wireFraction (void) const |
| returns wire fraction(F1).
|
|
double | wireFractionHEP (void) const |
| returns wire fraction(F2).
|
|
double | ptFraction (void) const |
| returns pt fraction.
|
|
double | pzFraction (void) const |
| returns pz fraction.
|
|
const Hep3Vector & | residual (void) const |
| returns residual of momentum.
|
|
double | ptResidual (void) const |
| returns residual of pt.
|
|
double | pzResidual (void) const |
| returns residual of pz.
|
|
double | ptPull (void) const |
| returns pull of pt.
|
|
double | pzPull (void) const |
| returns pull of pz.
|
|
unsigned | state (void) const |
| returns state.
|
|
unsigned | quality (void) const |
| returns quality.
|
|
std::string | qualityString (void) const |
| returns quality.
|
|
void | update (void) |
| updates information.
|
|
A class to have MC information of TTrack.
Definition at line 54 of file TTrackMC.h.
◆ ~TTrackMC()
◆ charge()
bool TTrackMC::charge |
( |
void | | ) |
const |
|
inline |
◆ dump()
void TTrackMC::dump |
( |
const std::string & | message = std::string(""), |
|
|
const std::string & | prefix = std::string("") ) const |
dumps debug information.
Definition at line 141 of file TTrackMC.cxx.
141 {
142 std::cout << msg;
143 std::cout << _t.
name() <<
":";
144 std::cout << "state=" << _state << ":";
145 if (_quality &
TTrackGood) std::cout <<
"good :";
146 else if (_quality &
TTrackGhost) std::cout <<
"ghost :";
147 else if (_quality &
TTrackBad) std::cout <<
"bad :";
150 else std::cout << "classification error:";
151 bitDisplay(_quality, 23, 15); std::cout <<
":";
152 std::cout << _hepID << ":";
153 std::cout << _wireFraction << "," << _wireFractionHEP << ":";
154 std::cout << _ptFraction << "," << _pzFraction;
155 std::cout << std::endl;
156}
void bitDisplay(unsigned val)
const std::string & name(void) const
returns/sets name.
◆ hep()
const TTrackHEP *const TTrackMC::hep |
( |
void | | ) |
const |
|
inline |
◆ hepId()
int TTrackMC::hepId |
( |
void | | ) |
const |
|
inline |
returns HEP ID.
Definition at line 169 of file TTrackMC.h.
169 {
170 return _hepID;
171}
◆ ptFraction()
double TTrackMC::ptFraction |
( |
void | | ) |
const |
|
inline |
◆ ptPull()
double TTrackMC::ptPull |
( |
void | | ) |
const |
|
inline |
returns pull of pt.
Definition at line 241 of file TTrackMC.h.
241 {
242 return _ptPull;
243}
◆ ptResidual()
double TTrackMC::ptResidual |
( |
void | | ) |
const |
|
inline |
returns residual of pt.
Definition at line 229 of file TTrackMC.h.
229 {
230 return _ptResidual;
231}
◆ pzFraction()
double TTrackMC::pzFraction |
( |
void | | ) |
const |
|
inline |
◆ pzPull()
double TTrackMC::pzPull |
( |
void | | ) |
const |
|
inline |
returns pull of pz.
Definition at line 247 of file TTrackMC.h.
247 {
248 return _pzPull;
249}
◆ pzResidual()
double TTrackMC::pzResidual |
( |
void | | ) |
const |
|
inline |
returns residual of pz.
Definition at line 235 of file TTrackMC.h.
235 {
236 return _pzResidual;
237}
◆ quality()
unsigned TTrackMC::quality |
( |
void | | ) |
const |
|
inline |
◆ qualityString()
std::string TTrackMC::qualityString |
( |
void | | ) |
const |
returns quality.
Definition at line 285 of file TTrackMC.cxx.
285 {
287}
std::string TrackMCQualityString(unsigned quality)
◆ residual()
const Hep3Vector & TTrackMC::residual |
( |
void | | ) |
const |
|
inline |
returns residual of momentum.
Definition at line 223 of file TTrackMC.h.
223 {
224 return _residual;
225}
◆ state()
unsigned TTrackMC::state |
( |
void | | ) |
const |
|
inline |
returns state.
Definition at line 211 of file TTrackMC.h.
211 {
212 return _state;
213}
◆ update()
void TTrackMC::update |
( |
void | | ) |
|
updates information.
Definition at line 67 of file TTrackMC.cxx.
67 {
68 _state = 0;
69 _quality = 0;
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138}
◆ wireFraction()
double TTrackMC::wireFraction |
( |
void | | ) |
const |
|
inline |
◆ wireFractionHEP()
double TTrackMC::wireFractionHEP |
( |
void | | ) |
const |
|
inline |
◆ TrkReco
The documentation for this class was generated from the following files: