00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: MdcRecoHitOnTrack.h,v 1.4 2010/03/03 23:47:51 zhangy Exp $ 00004 // 00005 // Description: 00006 // Contains drift chamber hit info, as hit is used on a particular track 00007 // Inherits from TrkHitOnTrk. The drift distance is stored as an 00008 // absolute value, but returned as |drift|*ambig. Ambiguity stored as +/- 1; 00009 // ambiguity = 0 => pick better value @ first call to updateMeasurement. 00010 // 00011 // Environment: 00012 // Software developed for the BaBar Detector at the SLAC B-Factory. 00013 // 00014 // Authors: Steve Schaffner 00015 //------------------------------------------------------------------------ 00016 00017 #ifndef MDCRECOHITONTRACK_H 00018 #define MDCRECOHITONTRACK_H 00019 00020 #include "MdcData/MdcHitOnTrack.h" 00021 00022 class TrkRep; 00023 class TrkDifTraj; 00024 class MdcHit; 00025 00026 // Class definition// 00027 class MdcRecoHitOnTrack : public MdcHitOnTrack { 00028 public: 00029 MdcRecoHitOnTrack(const MdcHit& baseHit, int ambig, double bunchTime); 00030 virtual ~MdcRecoHitOnTrack(); 00031 virtual TrkHitOnTrk* clone(TrkRep *, const TrkDifTraj *trkTraj=0) const; 00032 00033 protected: 00034 MdcRecoHitOnTrack(const MdcRecoHitOnTrack &hitToBeCopied, TrkRep *newRep, 00035 const TrkDifTraj* trkTraj=0 ); 00036 00037 public: 00038 unsigned status() const; 00039 const MdcHit* mdcHit() const; 00040 unsigned tdcIndex() const; 00041 int whichView() const; 00042 00043 private: 00044 00045 MdcRecoHitOnTrack(const MdcRecoHitOnTrack&); 00046 MdcRecoHitOnTrack& operator=(const MdcRecoHitOnTrack&); 00047 }; 00048 00049 #endif