00001 #ifndef HcalCalibrationQIEData_h 00002 #define HcalCalibrationQIEData_h 00003 00012 #include <vector> 00013 #include <algorithm> 00014 00015 #include "CondFormats/HcalObjects/interface/HcalCondObjectContainer.h" 00016 00017 #include "CondFormats/HcalObjects/interface/HcalCalibrationQIECoder.h" 00018 #include "DataFormats/DetId/interface/DetId.h" 00019 00020 00021 class HcalCalibrationQIEData: public HcalCondObjectContainer<HcalCalibrationQIECoder> 00022 { 00023 public: 00024 00026 const HcalCalibrationQIECoder* getCoder (DetId fId) const { return getValues(fId); } 00027 // check if data are sorted 00028 bool sorted () const {return true;} 00029 // fill values [capid][range] 00030 bool addCoder (const HcalCalibrationQIECoder& fCoder) { return addValues(fCoder); } 00031 // sort values by channelId 00032 void sort () {} 00033 00034 }; 00035 00036 #endif