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

OTMeasurement.cpp

Go to the documentation of this file.
00001 // $Id: OTMeasurement.cpp,v 1.1.1.1 2005/04/07 20:24:28 erodrigu Exp $
00002 // Include files
00003 
00004 // local
00005 #include "Event/OTMeasurement.h"
00006 
00007 //-----------------------------------------------------------------------------
00008 // Implementation file for class : OTMeasurement
00009 //
00010 // 2005-04-07 : Jose Hernando, Eduardo Rodrigues
00011 // Author: Rutger van der Eijk
00012 // Created: 07-04-1999
00013 //-----------------------------------------------------------------------------
00014 
00015 //=============================================================================
00016 // Standard constructor, initializes variables
00017 //=============================================================================
00018 OTMeasurement::OTMeasurement( OTTime& otTime,
00019                               DeOTDetector& geom,
00020                               int ambiguity,
00021                               double tu ) {
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 }
00045 //=============================================================================

Generated on Thu Apr 7 22:43:27 2005 for New Track Event Model by doxygen 1.4.1