#include <Measurement.h>
Inheritance diagram for Measurement:
Public Types | |
enum | Type { Unknown, Muon, OT, ST, TT, VeloR, VeloPhi } |
enumerator for the type of Measurement More... | |
Public Member Functions | |
Measurement () | |
Default Constructor. | |
virtual | ~Measurement () |
Default Destructor. | |
double | errMeasure2 () const |
return the error squared | |
Type | type () const |
Retrieve measurement type. | |
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 | z () const |
Retrieve const the z-position of the measurement. | |
void | setZ (double value) |
Update the z-position of the measurement. | |
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 | |
double | m_z |
the z-position of the measurement | |
double | m_measure |
the measurement value | |
double | m_errMeasure |
the measurement error | |
LHCbID | m_lhcbID |
the corresponding LHCbID |
Definition at line 35 of file Measurement.h.
|
Offsets of bitfield mtype.
Definition at line 103 of file Measurement.h. 00103 {typeBits = 0};
|
|
Bitmasks for bitfield mtype.
Definition at line 106 of file Measurement.h. 00106 {typeMask = 0x3FL};
|
|
enumerator for the type of Measurement
Definition at line 40 of file Measurement.h.
|
|
Default Constructor.
Definition at line 49 of file Measurement.h. References m_errMeasure, m_lhcbID, m_measure, m_mtype, and m_z. Referenced by clone(). 00049 : m_mtype(0), 00050 m_z(0.0), 00051 m_measure(0.0), 00052 m_errMeasure(0.0), 00053 m_lhcbID() {}
|
|
Default Destructor.
Definition at line 56 of file Measurement.h. 00056 {}
|
|
Check measurement type.
Definition at line 132 of file Measurement.h. References m_mtype, typeBits, and typeMask. 00133 { 00134 unsigned int val = (unsigned int)value; 00135 return 0 != ( m_mtype & typeMask & ( val << typeBits )); 00136 }
|
|
Clone the Measurement.
Reimplemented in ITMeasurement, OTMeasurement, VeloPhiMeasurement, and VeloRMeasurement. Definition at line 197 of file Measurement.h. References Measurement(). 00198 { 00199 00200 Measurement* me = new Measurement(); *me = *this; return me; 00201 00202 }
|
|
Retrieve const the measurement error.
Definition at line 158 of file Measurement.h. References m_errMeasure. 00159 { 00160 return m_errMeasure; 00161 }
|
|
return the error squared
Definition at line 183 of file Measurement.h. References m_errMeasure. 00184 { 00185 00186 return m_errMeasure*m_errMeasure; 00187 00188 }
|
|
Retrieve the corresponding LHCbID.
Definition at line 173 of file Measurement.h. References m_lhcbID. 00174 { 00175 return m_lhcbID; 00176 }
|
|
Retrieve const the corresponding LHCbID.
Definition at line 168 of file Measurement.h. References m_lhcbID. 00169 { 00170 return m_lhcbID; 00171 }
|
|
Retrieve const the measurement value.
Definition at line 148 of file Measurement.h. References m_measure. Referenced by TrackVeloRProjector::project(), TrackVeloPhiProjector::project(), and TrackOTProjector::project(). 00149 { 00150 return m_measure; 00151 }
|
|
Update the measurement error.
Definition at line 163 of file Measurement.h. References m_errMeasure. 00164 { 00165 m_errMeasure = value; 00166 }
|
|
Update the corresponding LHCbID.
Definition at line 178 of file Measurement.h. References m_lhcbID. Referenced by MeasurementProvider::measurement(). 00179 { 00180 m_lhcbID = value; 00181 }
|
|
Update the measurement value.
Definition at line 153 of file Measurement.h. References m_measure. 00154 { 00155 m_measure = value; 00156 }
|
|
Update measurement type.
Definition at line 125 of file Measurement.h. References m_mtype, typeBits, and typeMask. 00126 { 00127 unsigned int val = (unsigned int)value; 00128 m_mtype &= ~typeMask; 00129 m_mtype |= ((((unsigned int)val) << typeBits) & typeMask); 00130 }
|
|
Update the z-position of the measurement.
Definition at line 143 of file Measurement.h. References m_z. 00144 { 00145 m_z = value; 00146 }
|
|
Retrieve measurement type.
Definition at line 190 of file Measurement.h. References m_mtype, typeBits, and typeMask.
|
|
Retrieve const the z-position of the measurement.
Definition at line 138 of file Measurement.h. References m_z. 00139 { 00140 return m_z; 00141 }
|
|
the measurement error
Definition at line 112 of file Measurement.h. Referenced by errMeasure(), errMeasure2(), Measurement(), and setErrMeasure(). |
|
the corresponding LHCbID
Definition at line 113 of file Measurement.h. Referenced by lhcbID(), Measurement(), and setLhcbID(). |
|
the measurement value
Definition at line 111 of file Measurement.h. Referenced by measure(), Measurement(), and setMeasure(). |
|
the variety of measurement types
Definition at line 109 of file Measurement.h. Referenced by checkType(), Measurement(), setType(), and type(). |
|
the z-position of the measurement
Definition at line 110 of file Measurement.h. Referenced by Measurement(), setZ(), and z(). |