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.2 2005/05/13 13:09:08 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   // set the LHCbID
00028   setLhcbID ( LHCbID( m_time -> channel() ) );
00029 
00030   // some constants...
00031   double driftVelocity = geom.driftDelay(); // ns/mm
00032   // double wireVelocity  = geom.propagationDelay();      // ns/mm
00033 
00034   m_measure      = m_time->calibratedTime() * m_ambiguity;
00035   m_errMeasure   = geom.resolution() * driftVelocity;
00036 
00037   OTChannelID OTChan = m_time->channel();
00038   DeOTModule* module = geom.module( OTChan );
00039   HepPoint3D wirePos = module->centerOfStraw( OTChan.straw() );
00040 
00041   // double stereoAngle      = module->stereoAngle();
00042   // double mwirePos =  wirePos.x() * cos(stereoAngle) +
00043   //   wirePos.y() * sin(stereoAngle);
00044   m_z                = wirePos.z();
00045 //  m_wireLength       = module->wireLength();
00046 
00047 }
00048 //=============================================================================

Generated on Fri May 27 13:59:37 2005 for New Track Event Model by doxygen 1.4.1