Main Page   Namespace List   Compound List   File List   Compound Members   File Members  

TrNode Class Reference

#include <TrNode.h>

List of all members.

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 TrMeasurementmeasurement () const
 Retrieve the pointer to the measurement. More...

TrMeasurementmeasurement ()
 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...

TrMeasurementm_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...


Detailed Description

TrNode is a class that links track states to measurements.

Author:
Jose Hernando, Eduardo Rodrigues created Tue Sep 28 17:55:56 2004


Member Enumeration Documentation

enum TrNode::Type
 

Enumeration values:
OTMeasurement 
STMeasurement 
TTMeasurement 
VeloRMeasurement 
VeloPhiMeasurement 


Constructor & Destructor Documentation

TrNode::TrNode   [inline]
 

Default Constructor.

00047     : m_type(0),
00048     m_residual(0.0),
00049     m_errResidual(0.0),
00050     m_measurement() {}

virtual TrNode::~TrNode   [inline, virtual]
 

Destructor.

00053 {}


Member Function Documentation

virtual TrNode* TrNode::clone   const [virtual]
 

Clone the TrNode.

double TrNode::errResidual   const [inline]
 

Retrieve the error on the residual.

00149 {
00150   return m_errResidual;
00151 }

std::ostream & TrNode::fillStream std::ostream &    s const [inline, virtual]
 

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 }

TrMeasurement * TrNode::measurement   [inline]
 

Retrieve the pointer to the measurement (non-const).

00164 {
00165   return m_measurement;
00166 }

const TrMeasurement * TrNode::measurement   const [inline]
 

Retrieve the pointer to the measurement.

00159 {
00160   return m_measurement;
00161 }

double TrNode::residual   const [inline]
 

Retrieve the residual value.

00139 {
00140   return m_residual;
00141 }

StreamBuffer & TrNode::serialize StreamBuffer &    s [inline, virtual]
 

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 }

StreamBuffer & TrNode::serialize StreamBuffer &    s const [inline, virtual]
 

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 }

void TrNode::setErrResidual double    value [inline]
 

Update the error on the residual.

00154 {
00155   m_errResidual = value; 
00156 }

void TrNode::setMeasurement TrMeasurement   value [inline]
 

Update the pointer to the measurement.

00169 {
00170   m_measurement = value; 
00171 }

void TrNode::setResidual double    value [inline]
 

Update the residual value.

00144 {
00145   m_residual = value; 
00146 }

void TrNode::setType int    value [inline]
 

Update the type of the measurement.

00134 {
00135   m_type = value; 
00136 }

int TrNode::type   const [inline]
 

Retrieve the type of the measurement.

00129 {
00130   return m_type;
00131 }


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &    s,
const TrNode &    obj
[friend]
 

Operator overloading for stringoutput.

00099   {
00100     return obj.fillStream(s);
00101   }

StreamBuffer& operator<< StreamBuffer &    s,
const TrNode &    obj
[friend]
 

Operator overloading for serializing (writing).

00087   {
00088     return obj.serialize(s);
00089   }

StreamBuffer& operator>> StreamBuffer &    s,
TrNode &    obj
[friend]
 

Operator overloading for serializing (reading).

00093   {
00094     return obj.serialize(s);
00095   }


Member Data Documentation

double TrNode::m_errResidual [private]
 

the error on the residual.

TrMeasurement* TrNode::m_measurement [private]
 

the pointer to the measurement.

double TrNode::m_residual [private]
 

the residual value.

int TrNode::m_type [private]
 

the type of the measurement.


The documentation for this class was generated from the following file:
Generated on Tue Sep 28 18:11:17 2004 for New Track Event Model by doxygen 1.2.14 written by Dimitri van Heesch, © 1997-2002