00001 #ifndef CastorPedestalWidths_h 00002 #define CastorPedestalWidths_h 00003 00011 #include <vector> 00012 #include <algorithm> 00013 00014 #include "CondFormats/CastorObjects/interface/CastorPedestalWidth.h" 00015 00016 #include "DataFormats/DetId/interface/DetId.h" 00017 00018 // 00019 class CastorPedestalWidths { 00020 public: 00021 CastorPedestalWidths(); 00022 ~CastorPedestalWidths(); 00023 00025 const CastorPedestalWidth* getValues (DetId fId) const; 00027 float getWidth (DetId fId, int fCapId) const; 00029 float getSigma (DetId fId, int fCapId1, int fCapId2) const; 00031 std::vector<DetId> getAllChannels () const; 00033 bool sorted () const {return mSorted;} 00035 CastorPedestalWidth* setWidth (DetId fId); 00037 void setWidth (const CastorPedestalWidth& fItem); 00039 void sort (); 00040 typedef CastorPedestalWidth Item; 00041 private: 00042 std::vector <CastorPedestalWidth> mItems; 00043 bool mSorted; 00044 }; 00045 00046 #endif