#include <TrNode.h>
Public Types | |
enum | Type { OTMeasurement, STMeasurement, TTMeasurement, VeloRMeasurement, VeloPhiMeasurement } |
Public Methods | |
TrNode () | |
Default Constructor. More... | |
virtual | ~TrNode () |
Destructor. More... | |
virtual TrNode * | clone () const |
Clone the TrNode. More... | |
int | type () const |
Retrieve the type of the measurement. More... | |
void | setType (int value) |
Update the type of the measurement. More... | |
double | residual () const |
Retrieve the residual value. More... | |
void | setResidual (double value) |
Update the residual value. More... | |
double | errResidual () const |
Retrieve the error on the residual. More... | |
void | setErrResidual (double value) |
Update the error on the residual. More... | |
const TrMeasurement * | measurement () const |
Retrieve the pointer to the measurement. More... | |
TrMeasurement * | measurement () |
Retrieve the pointer to the measurement (non-const). More... | |
void | setMeasurement (TrMeasurement *value) |
Update the pointer to the measurement. 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... | |
Private Attributes | |
int | m_type |
the type of the measurement. More... | |
double | m_residual |
the residual value. More... | |
double | m_errResidual |
the error on the residual. More... | |
TrMeasurement * | m_measurement |
the pointer to the measurement. More... | |
Friends | |
StreamBuffer & | operator<< (StreamBuffer &s, const TrNode &obj) |
Operator overloading for serializing (writing). More... | |
StreamBuffer & | operator>> (StreamBuffer &s, TrNode &obj) |
Operator overloading for serializing (reading). More... | |
std::ostream & | operator<< (std::ostream &s, const TrNode &obj) |
Operator overloading for stringoutput. More... |
|
|
|
Default Constructor.
00047 : m_type(0), 00048 m_residual(0.0), 00049 m_errResidual(0.0), 00050 m_measurement() {} |
|
Destructor.
00053 {} |
|
Clone the TrNode.
|
|
Retrieve the error on the residual.
00149 { 00150 return m_errResidual; 00151 } |
|
Fill the ASCII output stream.
00195 { 00196 s << "{ " 00197 << " type:\t" << m_type << std::endl 00198 << " residual:\t" << (float)m_residual << std::endl 00199 << " errResidual:\t" << (float)m_errResidual << std::endl 00200 << " measurement:\t" << m_measurement << " } "; 00201 return s; 00202 } |
|
Retrieve the pointer to the measurement (non-const).
00164 { 00165 return m_measurement; 00166 } |
|
Retrieve the pointer to the measurement.
00159 { 00160 return m_measurement; 00161 } |
|
Retrieve the residual value.
00139 { 00140 return m_residual; 00141 } |
|
Serialize the object for reading.
00183 { 00184 float l_residual, l_errResidual; 00185 s >> m_type 00186 >> l_residual 00187 >> l_errResidual 00188 >> m_measurement; 00189 m_residual = l_residual; 00190 m_errResidual = l_errResidual; 00191 return s; 00192 } |
|
Serialize the object for writing.
00174 { 00175 s << m_type 00176 << (float)m_residual 00177 << (float)m_errResidual 00178 << m_measurement; 00179 return s; 00180 } |
|
Update the error on the residual.
00154 { 00155 m_errResidual = value; 00156 } |
|
Update the pointer to the measurement.
00169 { 00170 m_measurement = value; 00171 } |
|
Update the residual value.
00144 { 00145 m_residual = value; 00146 } |
|
Update the type of the measurement.
00134 { 00135 m_type = value; 00136 } |
|
Retrieve the type of the measurement.
00129 { 00130 return m_type; 00131 } |
|
Operator overloading for stringoutput.
00099 { 00100 return obj.fillStream(s); 00101 } |
|
Operator overloading for serializing (writing).
00087 { 00088 return obj.serialize(s); 00089 } |
|
Operator overloading for serializing (reading).
00093 { 00094 return obj.serialize(s); 00095 } |
|
the error on the residual.
|
|
the pointer to the measurement.
|
|
the residual value.
|
|
the type of the measurement.
|