00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: MdcHitDict.h,v 1.1.1.1 2005/04/21 06:23:43 maqm Exp $ 00004 // 00005 // Description: 00006 // Dictionary: associates a stored (by pointer) object (in current 00007 // implementation, a MdcSegUsage object) with a MdcHit. Given the 00008 // hit, it returns the associated object. Uses a RW hash dictionary. 00009 // 00010 // Environment: 00011 // Software developed for the BaBar Detector at the SLAC B-Factory. 00012 // 00013 // Author(s): Steve Schaffner 00014 // 00015 //------------------------------------------------------------------------ 00016 #ifndef MMDCITDICT_H 00017 #define MMDCITDICT_H 00018 #include "MdcData/MdcHit.h" 00019 #include "MdcTrkRecon/MdcSegUsage.h" 00020 00021 #include <map> 00022 00023 // Class interface // 00024 class MdcHitDict { 00025 00026 public: 00027 MdcHitDict(); 00028 virtual ~MdcHitDict(); 00029 MdcSegUsage* get(const MdcHit*) const; 00030 void put(MdcHit*, MdcSegUsage*); 00031 void clear(); 00032 00033 private: 00034 //**RWTPtrHashDictionary<DchHit, DchSegUsage> m_segUsage; 00035 00036 //zhangxy 00037 std::map<const MdcHit *, MdcSegUsage *> m_segUsage; 00038 00039 // Preempt 00040 MdcHitDict& operator= (const MdcHitDict&); 00041 MdcHitDict(const MdcHitDict &); 00042 }; 00043 00044 #endif 00045 00046 00047 00048 00049 00050 00051