00001 // $Id: ITMeasurement.cpp,v 1.4 2005/07/01 15:45:24 erodrigu Exp $ 00002 // Include files 00003 00004 #include "STDet/STDetectionLayer.h" 00005 00006 // local 00007 #include "Event/ITMeasurement.h" 00008 00009 //----------------------------------------------------------------------------- 00010 // Implementation file for class : ITMeasurement 00011 // 00012 // 2005-04-07 : Jose Hernando, Eduardo Rodrigues 00013 // Author: Rutger van der Eijk 00014 // Created: 07-04-1999 00015 //----------------------------------------------------------------------------- 00016 00017 //============================================================================= 00018 // Standard constructor, initializes variables 00019 //============================================================================= 00020 ITMeasurement::ITMeasurement( ITCluster& itCluster, 00021 DeSTDetector& geom ) { 00022 00023 m_mtype = Measurement::ST; 00024 00025 m_cluster = &itCluster; //pointer to ITCluster 00026 00027 ITChannelID ITChan = m_cluster->channelID(); 00028 00029 // set the LHCbID 00030 setLhcbID ( LHCbID( ITChan ) ); 00031 00032 const STDetectionLayer* ITLay = geom.layer( ITChan ); 00033 m_measure = ITLay->U( ITChan ) + m_cluster->distToStripCenter() ; 00034 m_errMeasure = m_cluster->distToStripError(); 00035 m_z = ITLay->centerZ( ITChan ); 00036 // m_stereoAngle = ITLay->stereoAngle(); 00037 00038 // std::cout << "- stereo angle = " << ITLay->stereoAngle() << std::endl; 00039 00040 } 00041 00042 //=============================================================================