00001 #ifndef CastorQIEData_h 00002 #define CastorQIEData_h 00003 00015 #include <vector> 00016 #include <algorithm> 00017 00018 #include "CondFormats/CastorObjects/interface/CastorCondObjectContainer.h" 00019 #include "CondFormats/CastorObjects/interface/CastorQIEShape.h" 00020 #include "CondFormats/CastorObjects/interface/CastorQIECoder.h" 00021 #include "DataFormats/DetId/interface/DetId.h" 00022 00023 namespace 00024 { 00025 CastorQIEShape shape_; 00026 } 00027 00028 class CastorQIEData: public CastorCondObjectContainer<CastorQIECoder> 00029 { 00030 public: 00031 00032 // constructor, destructor, and all methods stay the same 00033 CastorQIEData():CastorCondObjectContainer<CastorQIECoder>() {} 00034 00036 // const CastorQIEShape& getShape () const {return mShape;} 00037 const CastorQIEShape& getShape () const { return shape_;} 00039 const CastorQIECoder* getCoder (DetId fId) const { return getValues(fId); } 00040 // check if data are sorted - remove in the next version 00041 bool sorted () const { return true; } 00042 // fill values [capid][range] 00043 //bool addCoder (const CastorQIECoder& fCoder, bool h2mode_ = false) { return addValues(fCoder, h2mode_); } 00044 bool addCoder (const CastorQIECoder& fCoder) { return addValues(fCoder); } 00045 // sort values by channelId - remove in the next version 00046 void sort () {} 00047 00048 std::string myname() const {return (std::string)"CastorQIEData";} 00049 00050 //not needed/not used CastorQIEData(const CastorQIEData&); 00051 00052 }; 00053 00054 #endif