Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

OTMeasurement Class Reference

#include <OTMeasurement.h>

Inheritance diagram for OTMeasurement:

Measurement List of all members.

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

Detailed Description

OTMeasurement is a measurement made from a OTTime.

Author:
Jose Hernando, Eduardo Rodrigues created Thu Apr 7 22:55:03 2005

Definition at line 35 of file OTMeasurement.h.


Constructor & Destructor Documentation

OTMeasurement::OTMeasurement OTTime &  otTime,
DeOTDetector &  det,
int  ambiguity,
double  tu = 999.0
 

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 }

OTMeasurement::OTMeasurement  )  [inline]
 

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() {}

virtual OTMeasurement::~OTMeasurement  )  [inline, virtual]
 

Default Destructor.

Definition at line 51 of file OTMeasurement.h.

00051 {}


Member Function Documentation

int OTMeasurement::ambiguity  )  const [inline]
 

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 }

OTMeasurement * OTMeasurement::clone  )  const [inline, virtual]
 

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 }

void OTMeasurement::setAmbiguity int  value  )  [inline]
 

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 }

void OTMeasurement::setTime OTTime *  value  )  [inline]
 

Update Pointer to the OTTime.

Definition at line 123 of file OTMeasurement.h.

References m_time.

00124 {
00125   m_time = value;
00126 }

void OTMeasurement::setTu double  value  )  [inline]
 

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 }

OTTime * OTMeasurement::time  )  [inline]
 

Retrieve Pointer to the OTTime.

Definition at line 118 of file OTMeasurement.h.

References m_time.

00119 {
00120   return m_time;
00121 }

const OTTime * OTMeasurement::time  )  const [inline]
 

Retrieve const Pointer to the OTTime.

Definition at line 113 of file OTMeasurement.h.

References m_time.

00114 {
00115   return m_time;
00116 }

double OTMeasurement::tu  )  const [inline]
 

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 }


Member Data Documentation

int OTMeasurement::m_ambiguity [private]
 

the ambiguity (+1/-1) of the measurement

Definition at line 81 of file OTMeasurement.h.

Referenced by ambiguity(), OTMeasurement(), and setAmbiguity().

OTTime* OTMeasurement::m_time [private]
 

Pointer to the OTTime.

Definition at line 83 of file OTMeasurement.h.

Referenced by OTMeasurement(), setTime(), and time().

double OTMeasurement::m_tu [private]
 

the slope in u of the measurement

Definition at line 82 of file OTMeasurement.h.

Referenced by OTMeasurement(), setTu(), and tu().


The documentation for this class was generated from the following files:
Generated on Thu May 12 12:28:08 2005 for New Track Event Model by doxygen 1.4.1