#include <FitTrack.h>
Inheritance diagram for FitTrack:
Public Types | |
enum | TrackType { Velo = 1, VeloR = 2, Backward = 4, Long = 8, Upstream = 16, Downstream = 32, Ttrack = 64 } |
enumeration for the track type More... | |
enum | HistoryFlag { LongTrack = 1, Seeding = 2, TrKshort = 4, TrMatching = 8, VeloTrack = 16, VeloTT = 32, TrgForward = 64, TrgVelo = 128, TrgVeloTT = 256 } |
enumeration for the track history More... | |
enum | Flag { Valid = 1, Unique = 2, IPSelected = 4, MuSelected = 8 } |
enumeration for the track flags More... | |
Public Member Functions | |
FitTrack () | |
Default Constructor. | |
virtual | ~FitTrack () |
Default Destructor. | |
virtual const CLID & | clID () const |
virtual State & | closestState (double z) |
Retrieve the reference to the state closest to the given z-position. | |
virtual const State & | closestState (double z) const |
Retrieve the reference to the state closest to the given z-position. | |
virtual State & | closestState (const HepPlane3D &plane) |
Retrieve the reference to the state closest to the given plane. | |
virtual const State & | closestState (const HepPlane3D &plane) const |
Retrieve the reference to the state closest to the given plane. | |
virtual State * | stateAt (const State::Location &value) |
Retrieve the pointer to the state at a certain predefined location. See State class. | |
virtual const State * | stateAt (const State::Location &value) const |
Retrieve the pointer to the state at a certain predefined location. See State class. | |
virtual void | reset () |
Clear the fit track before re-use. | |
virtual FitTrack * | clone () const |
Clone the fit track. | |
virtual bool | producedByAlgo (const HistoryFlag &value) const |
Check whether the fit track was produced by a given algorithm. | |
virtual void | setProducedByAlgo (const HistoryFlag &value) |
Update the name of the algorithm that produced the fit track. | |
const std::vector< Node * > & | nodes () const |
Retrieve const container of Nodes. | |
std::vector< Node * > & | nodes () |
Retrieve container of Nodes. | |
void | setNodes (const std::vector< Node * > &value) |
Update container of Nodes. | |
const std::vector< Measurement * > & | measurements () const |
Retrieve const container of Measurements. | |
std::vector< Measurement * > & | measurements () |
Retrieve container of Measurements. | |
void | setMeasurements (const std::vector< Measurement * > &value) |
Update container of Measurements. | |
Static Public Member Functions | |
static const CLID & | classID () |
Protected Attributes | |
std::vector< Node * > | m_nodes |
container of Nodes | |
std::vector< Measurement * > | m_measurements |
container of Measurements |
Definition at line 54 of file FitTrack.h.
|
enumeration for the track flags
Reimplemented from Track. Definition at line 77 of file FitTrack.h. 00077 { Valid=1, 00078 Unique=2, 00079 IPSelected=4, 00080 MuSelected=8 };
|
|
enumeration for the track history
Reimplemented from Track. Definition at line 67 of file FitTrack.h. 00067 { LongTrack=1, 00068 Seeding=2, 00069 TrKshort=4, 00070 TrMatching=8, 00071 VeloTrack=16, 00072 VeloTT=32, 00073 TrgForward=64, 00074 TrgVelo=128, 00075 TrgVeloTT=256 };
|
|
enumeration for the track type
Reimplemented from Track. Definition at line 59 of file FitTrack.h. 00059 { Velo=1, 00060 VeloR=2, 00061 Backward=4, 00062 Long=8, 00063 Upstream=16, 00064 Downstream=32, 00065 Ttrack=64 };
|
|
Default Constructor.
Definition at line 83 of file FitTrack.h. References m_measurements, and m_nodes. 00083 : m_nodes(), 00084 m_measurements() {}
|
|
Default Destructor.
Definition at line 87 of file FitTrack.h. 00087 {}
|
|
Reimplemented from Track. Definition at line 163 of file FitTrack.h. References CLID_FitTrack. Referenced by clID(). 00164 { 00165 return CLID_FitTrack; 00166 }
|
|
Reimplemented from Track. Definition at line 158 of file FitTrack.h. References classID(). 00159 { 00160 return FitTrack::classID(); 00161 }
|
|
Clone the fit track.
Reimplemented from Track. Definition at line 140 of file FitTrack.cpp. 00141 { 00142 00143 };
|
|
Retrieve the reference to the state closest to the given plane.
Reimplemented from Track. Definition at line 83 of file FitTrack.cpp. References State::position(). 00084 { 00085 double minDist = 999999999.; 00086 double dist; 00087 State* best = 0; 00088 for ( std::vector<State*>::const_iterator it = m_states.begin() ; 00089 m_states.end() != it; it++ ) { 00090 dist = plane.distance( ((*it) -> position()) ); 00091 if ( minDist > dist ) { 00092 minDist = dist; 00093 best = *it; 00094 } 00095 } 00096 if ( fabs( plane.distance(m_physicsState.position()) ) < minDist ) 00097 return m_physicsState; 00098 00099 return *best; 00100 };
|
|
Retrieve the reference to the state closest to the given plane.
Reimplemented from Track. Definition at line 63 of file FitTrack.cpp. References State::position(). 00064 { 00065 double minDist = 999999999.; 00066 double dist; 00067 State* best = 0; 00068 for ( std::vector<State*>::iterator it = m_states.begin() ; 00069 m_states.end() != it; it++ ) { 00070 dist = plane.distance( ((*it) -> position()) ); 00071 if ( minDist > dist ) { 00072 minDist = dist; 00073 best = *it; 00074 } 00075 } 00076 if ( fabs( plane.distance(m_physicsState.position())) < minDist ) return m_physicsState; 00077 return *best; 00078 };
|
|
Retrieve the reference to the state closest to the given z-position.
Reimplemented from Track. Definition at line 45 of file FitTrack.cpp. References State::z(). 00046 { 00047 double minDist = 999999999.; 00048 State* best = 0; 00049 for ( std::vector<State*>::const_iterator it = m_states.begin() ; 00050 m_states.end() != it; it++ ) { 00051 if ( minDist > fabs( z - (*it)->z() ) ) { 00052 minDist = fabs( z-(*it)->z() ); 00053 best = *it; 00054 } 00055 } 00056 if ( fabs(z - m_physicsState.z()) < minDist ) return m_physicsState; 00057 return *best; 00058 };
|
|
Retrieve the reference to the state closest to the given z-position.
Reimplemented from Track. Definition at line 27 of file FitTrack.cpp. References State::z(). 00028 { 00029 double minDist = 999999999.; 00030 State* best = 0; 00031 for ( std::vector<State*>::iterator it = m_states.begin() ; 00032 m_states.end() != it; it++ ) { 00033 if ( minDist > fabs( z - (*it)->z() ) ) { 00034 minDist = fabs( z-(*it)->z() ); 00035 best = *it; 00036 } 00037 } 00038 if ( fabs(z - m_physicsState.z()) < minDist ) return m_physicsState; 00039 return *best; 00040 };
|
|
Retrieve container of Measurements.
Definition at line 188 of file FitTrack.h. References m_measurements. 00189 { 00190 return m_measurements; 00191 }
|
|
Retrieve const container of Measurements.
Definition at line 183 of file FitTrack.h. References m_measurements. 00184 { 00185 return m_measurements; 00186 }
|
|
Retrieve container of Nodes.
Definition at line 173 of file FitTrack.h. References m_nodes. 00174 { 00175 return m_nodes; 00176 }
|
|
Retrieve const container of Nodes.
Definition at line 168 of file FitTrack.h. References m_nodes. 00169 { 00170 return m_nodes; 00171 }
|
|
Check whether the fit track was produced by a given algorithm.
Reimplemented from Track. Definition at line 148 of file FitTrack.cpp. 00149 { 00150 unsigned int val = (unsigned int)value; 00151 return 0 != ( m_flags & historyMask & val ); 00152 };
|
|
Clear the fit track before re-use.
Reimplemented from Track. |
|
Update container of Measurements.
Definition at line 193 of file FitTrack.h. References m_measurements. 00194 { 00195 m_measurements = value; 00196 }
|
|
Update container of Nodes.
Definition at line 178 of file FitTrack.h. References m_nodes. 00179 { 00180 m_nodes = value; 00181 }
|
|
Update the name of the algorithm that produced the fit track.
Reimplemented from Track. Definition at line 157 of file FitTrack.cpp. 00158 { 00159 unsigned int val = (unsigned int)value; 00160 m_flags &= ~historyMask; 00161 m_flags |= ((((unsigned int)val) << historyBits) & historyMask); 00162 };
|
|
Retrieve the pointer to the state at a certain predefined location. See State class.
Reimplemented from Track. Definition at line 127 of file FitTrack.cpp. References State::checkLocation(). 00128 { 00129 for ( std::vector<State*>::const_iterator it = m_states.begin() ; 00130 m_states.end() != it; it++ ) { 00131 if ( (*it) -> checkLocation( value ) ) return (*it); 00132 } 00133 if (m_physicsState.checkLocation(value)) return &m_physicsState; 00134 return NULL; 00135 };
|
|
Retrieve the pointer to the state at a certain predefined location. See State class.
Reimplemented from Track. Definition at line 114 of file FitTrack.cpp. References State::checkLocation(). 00115 { 00116 for ( std::vector<State*>::iterator it = m_states.begin() ; 00117 m_states.end() != it; it++ ) { 00118 if ( (*it) -> checkLocation( value ) ) return (*it); 00119 } 00120 if (m_physicsState.checkLocation(value)) return &m_physicsState; 00121 return NULL; 00122 };
|
|
container of Measurements
Definition at line 144 of file FitTrack.h. Referenced by FitTrack(), measurements(), and setMeasurements(). |
|
container of Nodes
Definition at line 143 of file FitTrack.h. Referenced by FitTrack(), nodes(), and setNodes(). |