#include <TrTrack.h>
Public Types | |
enum | TrackType { Velotrack, Backward, Long, Upstream, Downstream, Ttrack } |
enum | HistoryFlag { LongTrack, Seeding, TrKshort, TrMatching, VeloTrack, VeloTT } |
Public Methods | |
TrTrack (const TrTrack &track) | |
TrTrack copy constructor. More... | |
TrTrack () | |
Default Constructor. More... | |
virtual | ~TrTrack () |
Destructor. More... | |
virtual const CLID & | clID () const |
Retrieve pointer to class definition structure. More... | |
virtual bool | producedByAlgo (const TrTrack::HistoryFlag &flag) |
Check wether the track was produced by a given algorithm. More... | |
virtual unsigned int | nStates () const |
number of states on track. More... | |
virtual TrState * | closestState (double z) const |
Retrieve the pointer to the state closest to the given z-position. More... | |
virtual unsigned int | nNodes () const |
number of track nodes. More... | |
virtual const std::vector< TrMeasurement * > | measurements () const |
Retrieve container with pointers to the track measurements. More... | |
virtual void | setMeasurements (const const &std::vector< TrState * >) |
Update the container with the pointers to the measurements. More... | |
virtual double | chi2PerDoF () const |
Retrieve the Chi^2/nDoF of the track. More... | |
virtual double | chi2 () const |
Retrieve the Chi^2 of the track. More... | |
virtual void | setChi2 (double value) |
Update the Chi^2 of the track. More... | |
virtual unsigned int | nDoF () const |
number of degrees of freedom. More... | |
virtual void | setNDoF (unsigned int value) |
Update the number of degrees of freedom of the track. More... | |
virtual int | errorFlag () const |
Retrieve the error flag of the track. More... | |
virtual void | setErrorFlag (int value) |
Update the error flag of the track. More... | |
virtual void | reset () |
Clear the track before re-use. More... | |
virtual void | clone (TrTrack *track) |
Clone the track. More... | |
const std::vector< TrState * > & | states () const |
Retrieve container with pointers to the states. More... | |
std::vector< TrState * > & | states () |
Retrieve container with pointers to the states (non-const). More... | |
void | setStates (const std::vector< TrState * > &value) |
Update container with pointers to the states. More... | |
const std::vector< TrNode * > & | nodes () const |
Retrieve container with pointers to the nodes. More... | |
std::vector< TrNode * > & | nodes () |
Retrieve container with pointers to the nodes (non-const). More... | |
void | setNodes (const std::vector< TrNode * > &value) |
Update container with pointers to the nodes. More... | |
double | charge () const |
Retrieve the track's charge. More... | |
void | setCharge (double value) |
Update the track's charge. More... | |
int | type () const |
Retrieve the type of the track. More... | |
void | setType (int value) |
Update the type of the track. More... | |
virtual StreamBuffer & | serialize (StreamBuffer &s) const |
Serialize the object for writing. More... | |
virtual StreamBuffer & | serialize (StreamBuffer &s) |
Serialize the object for reading. More... | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. More... | |
Static Public Methods | |
const CLID & | classID () |
Private Attributes | |
std::vector< TrState * > | m_states |
container with pointers to the states. More... | |
std::vector< TrNode * > | m_nodes |
container with pointers to the nodes. More... | |
double | m_chi2 |
chi^2 of the track. More... | |
int | m_ndof |
number of degrees of freedom of the track. More... | |
double | m_charge |
the track's charge. More... | |
int | m_errorFlag |
error flag. More... | |
int | m_type |
the type of the track. More... |
|
|
|
|
|
TrTrack copy constructor.
|
|
Default Constructor.
|
|
Destructor.
00066 {} |
|
Retrieve the track's charge.
00237 { 00238 return m_charge; 00239 } |
|
Retrieve the Chi^2 of the track.
|
|
Retrieve the Chi^2/nDoF of the track.
|
|
00181 { 00182 return CLID_TrTrack; 00183 } |
|
Retrieve pointer to class definition structure.
00176 { 00177 return TrTrack::classID(); 00178 } |
|
Clone the track.
|
|
Retrieve the pointer to the state closest to the given z-position.
|
|
Retrieve the error flag of the track.
|
|
Fill the ASCII output stream.
00286 { 00287 s << "{ " 00288 << " states:\t" << m_states << std::endl 00289 << " nodes:\t" << m_nodes << std::endl 00290 << " chi2:\t" << (float)m_chi2 << std::endl 00291 << " ndof:\t" << m_ndof << std::endl 00292 << " charge:\t" << (float)m_charge << std::endl 00293 << " errorFlag:\t" << m_errorFlag << std::endl 00294 << " type:\t" << m_type << " } "; 00295 return s; 00296 } |
|
Retrieve container with pointers to the track measurements.
|
|
number of degrees of freedom.
|
|
number of track nodes.
|
|
Retrieve container with pointers to the nodes (non-const).
00227 { 00228 return m_nodes; 00229 } |
|
Retrieve container with pointers to the nodes.
00222 { 00223 return m_nodes; 00224 } |
|
number of states on track.
|
|
Check wether the track was produced by a given algorithm.
|
|
Clear the track before re-use.
|
|
Serialize the object for reading.
|
|
Serialize the object for writing.
|
|
Update the track's charge.
00242 { 00243 m_charge = value; 00244 } |
|
Update the Chi^2 of the track.
|
|
Update the error flag of the track.
|
|
Update the container with the pointers to the measurements.
|
|
Update the number of degrees of freedom of the track.
|
|
Update container with pointers to the nodes.
00232 { 00233 m_nodes = value; 00234 } |
|
Update container with pointers to the states.
00217 { 00218 m_states = value; 00219 } |
|
Update the type of the track.
00252 { 00253 m_type = value; 00254 } |
|
Retrieve container with pointers to the states (non-const).
00212 { 00213 return m_states; 00214 } |
|
Retrieve container with pointers to the states.
00207 { 00208 return m_states; 00209 } |
|
Retrieve the type of the track.
00247 { 00248 return m_type; 00249 } |
|
the track's charge.
|
|
chi^2 of the track.
|
|
error flag.
|
|
number of degrees of freedom of the track.
|
|
container with pointers to the nodes.
|
|
container with pointers to the states.
|
|
the type of the track.
|