00001 // 00002 // Convert from Digit Map to Hit Map 00003 // 00004 // Zhe Wang 2004, 8, 27 00005 // 00006 #ifndef EMC_REC_DIGIT_2_HIT_H 00007 #define EMC_REC_DIGIT_2_HIT_H 00008 00009 #include "EmcRecEventModel/RecEmcEventModel.h" 00010 #include <string> 00011 00012 class EmcRecDigit2Hit 00013 { 00014 public: 00015 // Constructors and destructors 00016 EmcRecDigit2Hit(); 00017 ~EmcRecDigit2Hit(); 00018 00019 void Convert(const RecEmcDigitMap& aDigitMap, 00020 RecEmcHitMap& aHitMap); 00021 00022 void Output(const RecEmcHitMap& aHitMap) const; 00023 void OutputEndcap(const RecEmcHitMap& aHitMap, const unsigned int module_ew) const; 00024 inline void SetAlgName(const string &name) { m_algName=name; } 00025 00026 private: 00027 std::string m_algName; 00028 }; 00029 #endif // EMC_REC_DIGIT_2_HIT_H 00030