#include <Node.h>
Public Types | |
enum | Type { Muon, OT, ST, TT, VeloR, VeloPhi } |
enumerator for the type of Node (XxxNode) More... | |
Public Member Functions | |
Node () | |
Default Constructor. | |
~Node () | |
specific destructor | |
double | chi2 () const |
Retrieve the local chi2. | |
Measurement & | measurement () |
Retrieve the reference to the measurement. | |
Measurement & | measurement () const |
Retrieve the reference to the measurement. | |
State & | state () |
Retrieve the reference to the state. | |
State & | state () const |
Retrieve the reference to the state. | |
virtual Node * | clone () const |
Clone the Node. | |
void | setMeasurement (const Measurement &meas) |
Update the measurement. | |
void | setState (const State &state) |
Update the state. | |
void | setType (const Type &value) |
Update node type. | |
bool | checkType (const Type &value) const |
Check node type. | |
double | residual () const |
Retrieve const the residual value. | |
void | setResidual (double value) |
Update the residual value. | |
double | errResidual () const |
Retrieve const the residual error. | |
void | setErrResidual (double value) |
Update the residual error. | |
const HepMatrix & | projectionMatrix () const |
Retrieve const the projection matrix. | |
HepMatrix & | projectionMatrix () |
Retrieve the projection matrix. | |
void | setProjectionMatrix (const HepMatrix &value) |
Update the projection matrix. | |
Protected Types | |
enum | flagsBits { typeBits = 0 } |
Offsets of bitfield flags. More... | |
enum | flagsMasks { typeMask = 0x3FL } |
Bitmasks for bitfield flags. More... | |
Protected Attributes | |
unsigned int | m_flags |
the variety of node types | |
Private Attributes | |
Measurement * | m_measurement |
pointer to the measurement | |
State * | m_state |
pointer to the state | |
double | m_residual |
the residual value | |
double | m_errResidual |
the residual error | |
HepMatrix | m_projectionMatrix |
the projection matrix |
Definition at line 35 of file Node.h.
|
Offsets of bitfield flags.
Definition at line 112 of file Node.h. 00112 {typeBits = 0};
|
|
Bitmasks for bitfield flags.
Definition at line 115 of file Node.h. 00115 {typeMask = 0x3FL};
|
|
enumerator for the type of Node (XxxNode)
Definition at line 40 of file Node.h.
|
|
Default Constructor.
Definition at line 48 of file Node.h. References m_errResidual, m_flags, m_measurement, m_projectionMatrix, m_residual, and m_state. Referenced by clone(). 00048 : m_flags(0), 00049 m_measurement(), 00050 m_state(), 00051 m_residual(0.0), 00052 m_errResidual(0.0), 00053 m_projectionMatrix() {}
|
|
specific destructor
Definition at line 136 of file Node.h. References m_measurement, and m_state. 00137 { 00138 00139 delete m_measurement; 00140 delete m_state; 00141 00142 }
|
|
Check node type.
Definition at line 151 of file Node.h. References m_flags, typeBits, and typeMask. 00152 { 00153 unsigned int val = (unsigned int)value; 00154 return 0 != ( m_flags & typeMask & ( val << typeBits )); 00155 }
|
|
Retrieve the local chi2.
Definition at line 192 of file Node.h. References m_errResidual, and m_residual. 00193 {
00194
00195 return (m_errResidual >0 ? m_residual/m_errResidual: 0);
00196
00197 }
|
|
Clone the Node.
Definition at line 227 of file Node.h. References Node().
|
|
Retrieve const the residual error.
Definition at line 167 of file Node.h. References m_errResidual. 00168 { 00169 return m_errResidual; 00170 }
|
|
Retrieve the reference to the measurement.
Definition at line 206 of file Node.h. References m_measurement. 00207 { 00208 00209 return *m_measurement; 00210 00211 }
|
|
Retrieve the reference to the measurement.
Definition at line 199 of file Node.h. References m_measurement. 00200 { 00201 00202 return *m_measurement; 00203 00204 }
|
|
Retrieve the projection matrix.
Definition at line 182 of file Node.h. References m_projectionMatrix. 00183 { 00184 return m_projectionMatrix; 00185 }
|
|
Retrieve const the projection matrix.
Definition at line 177 of file Node.h. References m_projectionMatrix. 00178 { 00179 return m_projectionMatrix; 00180 }
|
|
Retrieve const the residual value.
Definition at line 157 of file Node.h. References m_residual. 00158 { 00159 return m_residual; 00160 }
|
|
Update the residual error.
Definition at line 172 of file Node.h. References m_errResidual. 00173 { 00174 m_errResidual = value; 00175 }
|
|
Update the measurement.
Definition at line 234 of file Node.h. References Measurement::clone(), and m_measurement. 00235 { 00236 00237 m_measurement = meas.clone(); 00238 00239 }
|
|
Update the projection matrix.
Definition at line 187 of file Node.h. References m_projectionMatrix. 00188 { 00189 m_projectionMatrix = value; 00190 }
|
|
Update the residual value.
Definition at line 162 of file Node.h. References m_residual. 00163 { 00164 m_residual = value; 00165 }
|
|
Update the state.
Definition at line 241 of file Node.h. References State::clone(), m_state, and state().
|
|
Update node type.
Definition at line 144 of file Node.h. References m_flags, typeBits, and typeMask. 00145 { 00146 unsigned int val = (unsigned int)value; 00147 m_flags &= ~typeMask; 00148 m_flags |= ((((unsigned int)val) << typeBits) & typeMask); 00149 }
|
|
Retrieve the reference to the state.
Definition at line 220 of file Node.h. References m_state. 00221 { 00222 00223 return *m_state; 00224 00225 }
|
|
Retrieve the reference to the state.
Definition at line 213 of file Node.h. References m_state. Referenced by setState(). 00214 { 00215 00216 return *m_state; 00217 00218 }
|
|
the residual error
Definition at line 125 of file Node.h. Referenced by chi2(), errResidual(), Node(), and setErrResidual(). |
|
the variety of node types
Definition at line 118 of file Node.h. Referenced by checkType(), Node(), and setType(). |
|
pointer to the measurement
Definition at line 122 of file Node.h. Referenced by measurement(), Node(), setMeasurement(), and ~Node(). |
|
the projection matrix
Definition at line 126 of file Node.h. Referenced by Node(), projectionMatrix(), and setProjectionMatrix(). |
|
the residual value
Definition at line 124 of file Node.h. Referenced by chi2(), Node(), residual(), and setResidual(). |
|
pointer to the state
Definition at line 123 of file Node.h. Referenced by Node(), setState(), state(), and ~Node(). |