#include <Measurement.h>
Public Types | |
enum | Type { Muon, OT, ST, TT, VeloR, VeloPhi } |
enumerator for the type of Measurement More... | |
Public Member Functions | |
Measurement () | |
Default Constructor. | |
virtual | ~Measurement () |
Default Destructor. | |
virtual double | z () const |
the z-position of the measurement | |
virtual Measurement * | clone () const |
Clone the Measurement. | |
void | setType (const Type &value) |
Update measurement type. | |
bool | checkType (const Type &value) const |
Check measurement type. | |
double | measure () const |
Retrieve const the measurement value. | |
void | setMeasure (double value) |
Update the measurement value. | |
double | errMeasure () const |
Retrieve const the measurement error. | |
void | setErrMeasure (double value) |
Update the measurement error. | |
const LHCbID & | lhcbID () const |
Retrieve const the corresponding LHCbID. | |
LHCbID & | lhcbID () |
Retrieve the corresponding LHCbID. | |
void | setLhcbID (const LHCbID &value) |
Update the corresponding LHCbID. | |
Protected Types | |
enum | mtypeBits { typeBits = 0 } |
Offsets of bitfield mtype. More... | |
enum | mtypeMasks { typeMask = 0x3FL } |
Bitmasks for bitfield mtype. More... | |
Protected Attributes | |
unsigned int | m_mtype |
the variety of measurement types | |
Private Attributes | |
double | m_measure |
the measurement value | |
double | m_errMeasure |
the measurement error | |
LHCbID | m_lhcbID |
the corresponding LHCbID |
Definition at line 33 of file Measurement.h.
|
Offsets of bitfield mtype.
Definition at line 90 of file Measurement.h. 00090 {typeBits = 0};
|
|
Bitmasks for bitfield mtype.
Definition at line 93 of file Measurement.h. 00093 {typeMask = 0x3FL};
|
|
enumerator for the type of Measurement
Definition at line 38 of file Measurement.h.
|
|
Default Constructor.
Definition at line 46 of file Measurement.h. References m_errMeasure, m_lhcbID, m_measure, and m_mtype. Referenced by clone(). 00046 : m_mtype(0), 00047 m_measure(0.0), 00048 m_errMeasure(0.0), 00049 m_lhcbID() {}
|
|
Default Destructor.
Definition at line 52 of file Measurement.h. 00052 {}
|
|
Check measurement type.
Definition at line 119 of file Measurement.h. References m_mtype, typeBits, and typeMask. 00120 { 00121 unsigned int val = (unsigned int)value; 00122 return 0 != ( m_mtype & typeMask & ( val << typeBits )); 00123 }
|
|
Clone the Measurement.
Definition at line 160 of file Measurement.h. References Measurement(). Referenced by Node::setMeasurement(). 00161 { 00162 00163 Measurement* me = new Measurement(); *me = *this; return me; 00164 00165 }
|
|
Retrieve const the measurement error.
Definition at line 135 of file Measurement.h. References m_errMeasure. 00136 { 00137 return m_errMeasure; 00138 }
|
|
Retrieve the corresponding LHCbID.
Definition at line 150 of file Measurement.h. References m_lhcbID. 00151 { 00152 return m_lhcbID; 00153 }
|
|
Retrieve const the corresponding LHCbID.
Definition at line 145 of file Measurement.h. References m_lhcbID. 00146 { 00147 return m_lhcbID; 00148 }
|
|
Retrieve const the measurement value.
Definition at line 125 of file Measurement.h. References m_measure. 00126 { 00127 return m_measure; 00128 }
|
|
Update the measurement error.
Definition at line 140 of file Measurement.h. References m_errMeasure. 00141 { 00142 m_errMeasure = value; 00143 }
|
|
Update the corresponding LHCbID.
Definition at line 155 of file Measurement.h. References m_lhcbID. 00156 { 00157 m_lhcbID = value; 00158 }
|
|
Update the measurement value.
Definition at line 130 of file Measurement.h. References m_measure. 00131 { 00132 m_measure = value; 00133 }
|
|
Update measurement type.
Definition at line 112 of file Measurement.h. References m_mtype, typeBits, and typeMask. 00113 { 00114 unsigned int val = (unsigned int)value; 00115 m_mtype &= ~typeMask; 00116 m_mtype |= ((((unsigned int)val) << typeBits) & typeMask); 00117 }
|
|
the z-position of the measurement
|
|
the measurement error
Definition at line 101 of file Measurement.h. Referenced by errMeasure(), Measurement(), and setErrMeasure(). |
|
the corresponding LHCbID
Definition at line 102 of file Measurement.h. Referenced by lhcbID(), Measurement(), and setLhcbID(). |
|
the measurement value
Definition at line 100 of file Measurement.h. Referenced by measure(), Measurement(), and setMeasure(). |
|
the variety of measurement types
Definition at line 96 of file Measurement.h. Referenced by checkType(), Measurement(), and setType(). |