00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: TrkHitUse.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $ 00004 // 00005 // Description: 00006 // 00007 // 00008 // Environment: 00009 // Software developed for the BaBar Detector at the SLAC B-Factory. 00010 // 00011 // Author(s): Steve Schaffner 00012 // 00013 //------------------------------------------------------------------------ 00014 00015 #include "TrkBase/TrkHitUse.h" 00016 00017 //------------------------------------------------------------------------ 00018 TrkHitUse::TrkHitUse(const TrkFundHit& theHit, double flt, bool active, 00019 int usable) : _hit(theHit) { 00020 //------------------------------------------------------------------------ 00021 _fltLen = flt; 00022 _isActive = active; 00023 _isUsable = usable; 00024 } 00025 00026 //------------------------------------------------------------------------ 00027 TrkHitUse::~TrkHitUse() { 00028 //------------------------------------------------------------------------ 00029 } 00030 00031 //------------------------------------------------------------------------ 00032 const MdcHit* 00033 TrkHitUse::mdcHit() const { 00034 //------------------------------------------------------------------------ 00035 return 0; 00036 } 00037 00038 //------------------------------------------------------------------------ 00039 //const SvtHit* 00040 //TrkHitUse::svtHit() const { 00041 //------------------------------------------------------------------------ 00042 // return 0; 00043 //} 00044 00045 //------------------------------------------------------------------------ 00046 bool 00047 TrkHitUse::operator==(const TrkHitUse& rhs) const { 00048 //------------------------------------------------------------------------ 00049 return ( &(hit()) == &(rhs.hit()) ); 00050 }