00001 #ifndef CastorRawGains_h 00002 #define CastorRawGains_h 00003 00010 #include <vector> 00011 #include <algorithm> 00012 00013 #include "CondFormats/CastorObjects/interface/CastorRawGain.h" 00014 #include "DataFormats/DetId/interface/DetId.h" 00015 00016 // 00017 class CastorRawGains { 00018 public: 00019 CastorRawGains(); 00020 ~CastorRawGains(); 00022 const CastorRawGain* getValues (DetId fId) const; 00024 std::vector<DetId> getAllChannels () const; 00026 bool sorted () const {return mSorted;} 00028 CastorRawGain* addItem (DetId fId); 00030 void addValues (DetId fId, const CastorRawGain& fValues); 00032 void sort (); 00033 // helper typedefs 00034 typedef CastorRawGain Item; 00035 typedef std::vector <Item> Container; 00036 private: 00037 Container mItems; 00038 bool mSorted; 00039 }; 00040 00041 #endif