CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorQIEData.h
Go to the documentation of this file.
1 #ifndef CastorQIEData_h
2 #define CastorQIEData_h
3 
16 
17 #include <vector>
18 #include <algorithm>
19 
24 
25 class CastorQIEData: public CastorCondObjectContainer<CastorQIECoder>
26 {
27  private:
28  static const CastorQIEShape shape_;
29  public:
30 
31  // constructor, destructor, and all methods stay the same
34  // const CastorQIEShape& getShape () const {return mShape;}
35 
36  const CastorQIEShape& getShape () const { return shape_;}
38  const CastorQIECoder* getCoder (DetId fId) const { return getValues(fId); }
39  // check if data are sorted - remove in the next version
40  bool sorted () const { return true; }
41  // fill values [capid][range]
42  //bool addCoder (const CastorQIECoder& fCoder, bool h2mode_ = false) { return addValues(fCoder, h2mode_); }
43  bool addCoder (const CastorQIECoder& fCoder) { return addValues(fCoder); }
44  // sort values by channelId - remove in the next version
45  void sort () {}
46 
47  std::string myname() const {return (std::string)"CastorQIEData";}
48 
49  //not needed/not used CastorQIEData(const CastorQIEData&);
50 
51 
53 };
54 
55 #endif
const CastorQIEShape & getShape() const
get basic shape
Definition: CastorQIEData.h:36
const CastorQIECoder * getValues(DetId fId, bool throwOnFail=true) const
std::string myname() const
Definition: CastorQIEData.h:47
static const CastorQIEShape shape_
Definition: CastorQIEData.h:28
Definition: DetId.h:18
const CastorQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: CastorQIEData.h:38
bool addValues(const CastorQIECoder &myItem)
bool sorted() const
Definition: CastorQIEData.h:40
bool addCoder(const CastorQIECoder &fCoder)
Definition: CastorQIEData.h:43