CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/CondFormats/CastorObjects/interface/CastorCalibrationQIEData.h

Go to the documentation of this file.
00001 #ifndef CastorCalibrationQIEData_h
00002 #define CastorCalibrationQIEData_h
00003 
00014 #include <vector>
00015 #include <algorithm>
00016 
00017 #include "CondFormats/CastorObjects/interface/CastorCondObjectContainer.h"
00018 
00019 #include "CondFormats/CastorObjects/interface/CastorCalibrationQIECoder.h"
00020 #include "DataFormats/DetId/interface/DetId.h"
00021 
00022 
00023 class CastorCalibrationQIEData: public CastorCondObjectContainer<CastorCalibrationQIECoder>
00024 {
00025  public:
00026    
00028   const CastorCalibrationQIECoder* getCoder (DetId fId) const { return getValues(fId); }
00029   // check if data are sorted
00030   bool sorted () const {return true;}
00031   // fill values [capid][range]
00032   bool addCoder (const CastorCalibrationQIECoder& fCoder) { return addValues(fCoder); }
00033    // sort values by channelId  
00034   void sort () {}
00035 
00036 };
00037 
00038 #endif