#include <OTMeasurement.h>
Inheritance diagram for OTMeasurement:
Public Member Functions | |
OTMeasurement (OTTime &otTime, DeOTDetector &det, int ambiguity, double tu=999.0) | |
Constructor from an OTTime. | |
OTMeasurement () | |
Default Constructor. | |
virtual | ~OTMeasurement () |
Default Destructor. | |
OTMeasurement * | clone () const |
Clone the OTMeasurement. | |
int | ambiguity () const |
Retrieve const the ambiguity (+1/-1) of the measurement. | |
void | setAmbiguity (int value) |
Update the ambiguity (+1/-1) of the measurement. | |
double | tu () const |
Retrieve const the slope in u of the measurement. | |
void | setTu (double value) |
Update the slope in u of the measurement. | |
const OTTime * | time () const |
Retrieve const Pointer to the OTTime. | |
OTTime * | time () |
Retrieve Pointer to the OTTime. | |
void | setTime (OTTime *value) |
Update Pointer to the OTTime. | |
Private Attributes | |
int | m_ambiguity |
the ambiguity (+1/-1) of the measurement | |
double | m_tu |
the slope in u of the measurement | |
OTTime * | m_time |
Pointer to the OTTime. |
Definition at line 35 of file OTMeasurement.h.
|
Constructor from an OTTime.
Definition at line 18 of file OTMeasurement.cpp. References m_ambiguity, m_time, and m_tu. 00021 { 00022 00023 m_tu = tu; 00024 m_time = &otTime; // pointer to hit 00025 m_ambiguity = ambiguity; // drift ambiguity 00026 00027 // some constants... 00028 double driftVelocity = geom.driftDelay(); // ns/mm 00029 // double wireVelocity = geom.propagationDelay(); // ns/mm 00030 00031 m_measure = m_time->calibratedTime() * m_ambiguity; 00032 m_errMeasure = geom.resolution() * driftVelocity; 00033 00034 OTChannelID OTChan = m_time->channel(); 00035 DeOTModule* module = geom.module( OTChan ); 00036 HepPoint3D wirePos = module->centerOfStraw( OTChan.straw() ); 00037 00038 // double stereoAngle = module->stereoAngle(); 00039 // double mwirePos = wirePos.x() * cos(stereoAngle) + 00040 // wirePos.y() * sin(stereoAngle); 00041 m_z = wirePos.z(); 00042 // m_wireLength = module->wireLength(); 00043 00044 }
|
|
Default Constructor.
Definition at line 46 of file OTMeasurement.h. References m_ambiguity, m_time, and m_tu. Referenced by clone(). 00046 : m_ambiguity(0), 00047 m_tu(0.0), 00048 m_time() {}
|
|
Default Destructor.
Definition at line 51 of file OTMeasurement.h. 00051 {}
|
|
Retrieve const the ambiguity (+1/-1) of the measurement.
Definition at line 93 of file OTMeasurement.h. References m_ambiguity. 00094 { 00095 return m_ambiguity; 00096 }
|
|
Clone the OTMeasurement.
Reimplemented from Measurement. Definition at line 128 of file OTMeasurement.h. References OTMeasurement(). 00129 { 00130 00131 OTMeasurement* me = new OTMeasurement(); *me = *this; return me; 00132 00133 }
|
|
Update the ambiguity (+1/-1) of the measurement.
Definition at line 98 of file OTMeasurement.h. References m_ambiguity. 00099 { 00100 m_ambiguity = value; 00101 }
|
|
Update Pointer to the OTTime.
Definition at line 123 of file OTMeasurement.h. References m_time. 00124 { 00125 m_time = value; 00126 }
|
|
Update the slope in u of the measurement.
Definition at line 108 of file OTMeasurement.h. References m_tu. 00109 { 00110 m_tu = value; 00111 }
|
|
Retrieve Pointer to the OTTime.
Definition at line 118 of file OTMeasurement.h. References m_time. 00119 { 00120 return m_time; 00121 }
|
|
Retrieve const Pointer to the OTTime.
Definition at line 113 of file OTMeasurement.h. References m_time. 00114 { 00115 return m_time; 00116 }
|
|
Retrieve const the slope in u of the measurement.
Definition at line 103 of file OTMeasurement.h. References m_tu. 00104 { 00105 return m_tu; 00106 }
|
|
the ambiguity (+1/-1) of the measurement
Definition at line 81 of file OTMeasurement.h. Referenced by ambiguity(), OTMeasurement(), and setAmbiguity(). |
|
Pointer to the OTTime.
Definition at line 83 of file OTMeasurement.h. Referenced by OTMeasurement(), setTime(), and time(). |
|
the slope in u of the measurement
Definition at line 82 of file OTMeasurement.h. Referenced by OTMeasurement(), setTu(), and tu(). |