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

TrMeasurement Class Reference

#include <TrMeasurement.h>

List of all members.

Public Types

enum  Type {
  OTMeasurement, STMeasurement, TTMeasurement, VeloRMeasurement,
  VeloPhiMeasurement
}

Public Methods

 TrMeasurement ()
 Default Constructor. More...

virtual ~TrMeasurement ()
 Destructor. More...

virtual TrMeasurement * clone () const=0
 Clone the TrMeasurement. More...

virtual double z () const=0
 z of measurement. More...

int type () const
 Retrieve the type of the measurement. More...

void setType (int value)
 Update the type of the measurement. More...

double measurement () const
 Retrieve the measurement value. More...

void setMeasurement (double value)
 Update the measurement value. More...

double errMeasurement () const
 Retrieve the measurement error. More...

void setErrMeasurement (double value)
 Update the measurement error. More...

const LHCbID & lhCbid () const
 Retrieve the LHCbID. More...

LHCbID & lhCbid ()
 Retrieve the LHCbID (non-const). More...

void setLHCbID (const LHCbID &value)
 Update the LHCbID. 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_measurement
 the measurement value. More...

double m_errMeasurement
 the measurement error. More...

LHCbID m_LHCbID
 the LHCbID. More...


Friends

StreamBuffer & operator<< (StreamBuffer &s, const TrMeasurement &obj)
 Operator overloading for serializing (writing). More...

StreamBuffer & operator>> (StreamBuffer &s, TrMeasurement &obj)
 Operator overloading for serializing (reading). More...

std::ostream & operator<< (std::ostream &s, const TrMeasurement &obj)
 Operator overloading for stringoutput. More...


Detailed Description

TrMeasurement is the base class for measurements from different detectors.

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


Member Enumeration Documentation

enum TrMeasurement::Type
 

Enumeration values:
OTMeasurement 
STMeasurement 
TTMeasurement 
VeloRMeasurement 
VeloPhiMeasurement 


Constructor & Destructor Documentation

TrMeasurement::TrMeasurement   [inline]
 

Default Constructor.

00047     : m_type(0),
00048     m_measurement(0.0),
00049     m_errMeasurement(0.0),
00050     m_LHCbID() {}

virtual TrMeasurement::~TrMeasurement   [inline, virtual]
 

Destructor.

00053 {}


Member Function Documentation

virtual TrMeasurement* TrMeasurement::clone   const [pure virtual]
 

Clone the TrMeasurement.

double TrMeasurement::errMeasurement   const [inline]
 

Retrieve the measurement error.

00152 {
00153   return m_errMeasurement;
00154 }

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

Fill the ASCII output stream.

00198 {
00199   s << "{ "
00200     << " type:\t" << m_type << std::endl
00201     << "   measurement:\t" << (float)m_measurement << std::endl
00202     << "   errMeasurement:\t" << (float)m_errMeasurement << std::endl
00203     << "   LHCbID:\t" << m_LHCbID << " } ";
00204   return s;
00205 }

LHCbID & TrMeasurement::lhCbid   [inline]
 

Retrieve the LHCbID (non-const).

00167 {
00168   return m_LHCbID;
00169 }

const LHCbID & TrMeasurement::lhCbid   const [inline]
 

Retrieve the LHCbID.

00162 {
00163   return m_LHCbID;
00164 }

double TrMeasurement::measurement   const [inline]
 

Retrieve the measurement value.

00142 {
00143   return m_measurement;
00144 }

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

Serialize the object for reading.

00186 {
00187   float l_measurement, l_errMeasurement;
00188   s >> m_type
00189     >> l_measurement
00190     >> l_errMeasurement
00191     >> m_LHCbID;
00192   m_measurement = l_measurement;
00193   m_errMeasurement = l_errMeasurement;
00194   return s;
00195 }

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

Serialize the object for writing.

00177 {
00178   s << m_type
00179     << (float)m_measurement
00180     << (float)m_errMeasurement
00181     << m_LHCbID;
00182   return s;
00183 }

void TrMeasurement::setErrMeasurement double    value [inline]
 

Update the measurement error.

00157 {
00158   m_errMeasurement = value; 
00159 }

void TrMeasurement::setLHCbID const LHCbID &    value [inline]
 

Update the LHCbID.

00172 {
00173   m_LHCbID = value; 
00174 }

void TrMeasurement::setMeasurement double    value [inline]
 

Update the measurement value.

00147 {
00148   m_measurement = value; 
00149 }

void TrMeasurement::setType int    value [inline]
 

Update the type of the measurement.

00137 {
00138   m_type = value; 
00139 }

int TrMeasurement::type   const [inline]
 

Retrieve the type of the measurement.

00132 {
00133   return m_type;
00134 }

virtual double TrMeasurement::z   const [pure virtual]
 

z of measurement.


Friends And Related Function Documentation

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

Operator overloading for stringoutput.

00102   {
00103     return obj.fillStream(s);
00104   }

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

Operator overloading for serializing (writing).

00090   {
00091     return obj.serialize(s);
00092   }

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

Operator overloading for serializing (reading).

00096   {
00097     return obj.serialize(s);
00098   }


Member Data Documentation

double TrMeasurement::m_errMeasurement [private]
 

the measurement error.

LHCbID TrMeasurement::m_LHCbID [private]
 

the LHCbID.

double TrMeasurement::m_measurement [private]
 

the measurement value.

int TrMeasurement::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