00001 // ------------------------------------------------------------------------------ 00002 // File and Version Information: 00003 // $Id: TrkStoreHypo.h,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $ 00004 // 00005 // Description: TrkStoreHypo. Trivial class to record which track 00006 // fits sampled where should be stored when a TrkRecoTrk is persisted 00007 // 00008 // Copyright Information: 00009 // Copyright (C) 2000 Lawrence Berkeley Laboratory 00010 // 00011 // Authors: Dave Brown, 11/20/00 00012 //------------------------------------------------------------------------------ 00013 00014 #ifndef TRKSTOREHYPO_HH 00015 #define TRKSTOREHYPO_HH 00016 00017 #include "MdcRecoUtil/PdtPid.h" 00018 00019 class TrkStoreHypo { 00020 public: 00021 // constructors and destructor 00022 TrkStoreHypo() : _hypo(PdtPid::null), _fltlen(-9999.0) 00023 {} 00024 TrkStoreHypo(PdtPid::PidType hypo,double fltlen) : _hypo(hypo),_fltlen(fltlen) 00025 {} 00026 TrkStoreHypo(const TrkStoreHypo& other) : _hypo(other._hypo),_fltlen(other._fltlen) 00027 {} 00028 ~TrkStoreHypo(){} 00029 // accessors 00030 const PdtPid::PidType& hypo() const { return _hypo; } 00031 double flightLength() const { return _fltlen; } 00032 // rw functions 00033 TrkStoreHypo& operator = (const TrkStoreHypo& other) { 00034 if(this != &other){ 00035 _hypo = other._hypo; 00036 _fltlen = other._fltlen; 00037 } 00038 return *this; 00039 } 00040 bool operator == (const TrkStoreHypo& other) const; 00041 bool operator < (const TrkStoreHypo& other) const; 00042 private: 00043 PdtPid::PidType _hypo; 00044 double _fltlen; 00045 static double _flttol; 00046 }; 00047 00048 #endif