00001 #ifndef HltRaw_H 00002 #define HltRaw_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_HltRaw; 00010 00011 /* 00012 * 00013 */ 00014 00015 class HltRaw : public RawData { 00016 public: 00017 // Constructor 00018 HltRaw(const Identifier& id, const unsigned int timeChannel=0, const unsigned int chargeChannel=0); 00019 HltRaw(const unsigned int id); 00020 00021 void setIntChannel(const unsigned int intChannel){setTimeChannel(intChannel);}; 00022 unsigned int getIntChannel(){return getTimeChannel();}; 00023 00024 void setFloatChannel(const float value){m_chargeChannel= *((unsigned int*)(&value));}; 00025 float getFloatChannel(){return *((float*)(&m_chargeChannel));}; 00026 00027 // Retrieve reference to class definition structure 00028 virtual const CLID& clID() const { return HltRaw::classID(); } 00029 static const CLID& classID() { return CLID_HltRaw; } 00030 00031 private: 00032 00033 }; 00034 00035 typedef ObjectVector<HltRaw> HltRawCol; 00036 00037 #endif