00001 #ifndef MdcDigi_H 00002 #define MdcDigi_H 00003 #include <vector> 00004 #include "GaudiKernel/ObjectVector.h" 00005 #include "RawEvent/RawData.h" 00006 #include "EventModel/EventModel.h" 00007 00008 using namespace EventModel; 00009 extern const CLID& CLID_MdcDigi; 00010 00011 /* 00012 * 00013 */ 00014 00015 class MdcDigi : public RawData { 00016 public: 00017 // Constructor 00018 MdcDigi(const Identifier& id, const unsigned int timeChannel, const unsigned int chargeChannel); 00019 MdcDigi(const unsigned int id); 00020 00021 00022 // Set Overflow Flag 00023 void setOverflow(const unsigned int overflow) { m_overflow = overflow; } 00024 00025 // Get Overflow Flag 00026 unsigned int getOverflow() const { return m_overflow; } 00027 // Retrieve reference to class definition structure 00028 virtual const CLID& clID() const { return MdcDigi::classID(); } 00029 static const CLID& classID() { return CLID_MdcDigi; } 00030 00031 // Add two signals 00032 MdcDigi &operator+=(const MdcDigi &); 00033 00034 private: 00035 unsigned int m_overflow; 00036 00037 }; 00038 00039 typedef ObjectVector<MdcDigi> MdcDigiCol; 00040 00041 #endif