Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CastorQIEData_h
0002 #define CastorQIEData_h
0003 
0004 /** 
0005 \class CastorQIEData
0006 \author Fedor Ratnikov (UMd), with changes by Radek Ofierzynski 
0007    (preserve backwards compatibility of methods for this release)
0008 Modified by L.Mundim (Mar/2009)
0009 POOL object to store QIE parameters
0010 $Author: ratnikov
0011 $Date: 2008/07/15 13:00:16 $
0012 $Revision: 1.9 $
0013 */
0014 
0015 #include "CondFormats/Serialization/interface/Serializable.h"
0016 
0017 #include <vector>
0018 #include <algorithm>
0019 
0020 #include "CondFormats/CastorObjects/interface/CastorCondObjectContainer.h"
0021 #include "CondFormats/CastorObjects/interface/CastorQIEShape.h"
0022 #include "CondFormats/CastorObjects/interface/CastorQIECoder.h"
0023 #include "DataFormats/DetId/interface/DetId.h"
0024 
0025 class CastorQIEData : public CastorCondObjectContainer<CastorQIECoder> {
0026 private:
0027   static const CastorQIEShape shape_;
0028 
0029 public:
0030   // constructor, destructor, and all methods stay the same
0031   CastorQIEData() : CastorCondObjectContainer<CastorQIECoder>() {}
0032   /// get basic shape
0033   //   const CastorQIEShape& getShape () const {return mShape;}
0034 
0035   const CastorQIEShape& getShape() const { return shape_; }
0036   /// get QIE parameters
0037   const CastorQIECoder* getCoder(DetId fId) const { return getValues(fId); }
0038   // check if data are sorted - remove in the next version
0039   bool sorted() const { return true; }
0040   // fill values [capid][range]
0041   //bool addCoder (const CastorQIECoder& fCoder, bool h2mode_ = false) { return addValues(fCoder, h2mode_); }
0042   bool addCoder(const CastorQIECoder& fCoder) { return addValues(fCoder); }
0043   // sort values by channelId - remove in the next version
0044   void sort() {}
0045 
0046   std::string myname() const { return (std::string) "CastorQIEData"; }
0047 
0048   //not needed/not used  CastorQIEData(const CastorQIEData&);
0049 
0050   COND_SERIALIZABLE;
0051 };
0052 
0053 #endif