CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 private:
27  static const CastorQIEShape shape_;
28 
29 public:
30  // constructor, destructor, and all methods stay the same
33  // const CastorQIEShape& getShape () const {return mShape;}
34 
35  const CastorQIEShape& getShape() const { return shape_; }
37  const CastorQIECoder* getCoder(DetId fId) const { return getValues(fId); }
38  // check if data are sorted - remove in the next version
39  bool sorted() const { return true; }
40  // fill values [capid][range]
41  //bool addCoder (const CastorQIECoder& fCoder, bool h2mode_ = false) { return addValues(fCoder, h2mode_); }
42  bool addCoder(const CastorQIECoder& fCoder) { return addValues(fCoder); }
43  // sort values by channelId - remove in the next version
44  void sort() {}
45 
46  std::string myname() const { return (std::string) "CastorQIEData"; }
47 
48  //not needed/not used CastorQIEData(const CastorQIEData&);
49 
51 };
52 
53 #endif
const CastorQIEShape & getShape() const
get basic shape
Definition: CastorQIEData.h:35
const CastorQIECoder * getValues(DetId fId, bool throwOnFail=true) const
std::string myname() const
Definition: CastorQIEData.h:46
static const CastorQIEShape shape_
Definition: CastorQIEData.h:27
Definition: DetId.h:17
const CastorQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: CastorQIEData.h:37
#define COND_SERIALIZABLE
Definition: Serializable.h:39
bool addValues(const CastorQIECoder &myItem)
bool sorted() const
Definition: CastorQIEData.h:39
bool addCoder(const CastorQIECoder &fCoder)
Definition: CastorQIEData.h:42