Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:57

0001 #ifndef CastorCalibrationQIEData_h
0002 #define CastorCalibrationQIEData_h
0003 
0004 /** 
0005 \class CastorCalibrationQIEData
0006 \author Fedor Ratnikov (UMd), with changes by Radek Ofierzynski 
0007    (preserve backwards compatibility of methods for this release)
0008    Adapted for CASTOR by L. Mundim
0009 
0010 POOL object to store calibration mode QIE parameters
0011 $Id
0012 */
0013 
0014 #include "CondFormats/Serialization/interface/Serializable.h"
0015 
0016 #include <vector>
0017 #include <algorithm>
0018 
0019 #include "CondFormats/CastorObjects/interface/CastorCondObjectContainer.h"
0020 
0021 #include "CondFormats/CastorObjects/interface/CastorCalibrationQIECoder.h"
0022 #include "DataFormats/DetId/interface/DetId.h"
0023 
0024 class CastorCalibrationQIEData : public CastorCondObjectContainer<CastorCalibrationQIECoder> {
0025 public:
0026   /// get QIE parameters
0027   const CastorCalibrationQIECoder* getCoder(DetId fId) const { return getValues(fId); }
0028   // check if data are sorted
0029   bool sorted() const { return true; }
0030   // fill values [capid][range]
0031   bool addCoder(const CastorCalibrationQIECoder& fCoder) { return addValues(fCoder); }
0032   // sort values by channelId
0033   void sort() {}
0034 
0035   COND_SERIALIZABLE;
0036 };
0037 
0038 #endif