CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalQIEData.h
Go to the documentation of this file.
1 #ifndef HcalQIEData_h
2 #define HcalQIEData_h
3 
15 
16 #include <vector>
17 #include <algorithm>
18 
23 
24 class HcalQIEData : public HcalCondObjectContainer<HcalQIECoder> {
25 public:
26 #ifndef HCAL_COND_SUPPRESS_DEFAULT
28 #endif
29  // constructor, destructor, and all methods stay the same
31 
32  void setupShape();
34  // const HcalQIEShape& getShape () const {return mShape;}
35  const HcalQIEShape& getShape(int qieType) const { return mShape[qieType]; }
37  const HcalQIECoder* 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 HcalQIECoder& fCoder) { return addValues(fCoder); }
42  // sort values by channelId - remove in the next version
43  void sort() {}
44 
45  std::string myname() const override { return (std::string) "HcalQIEData"; }
46 
47  //not needed/not used HcalQIEData(const HcalQIEData&);
48 
49 private:
51 
53 };
54 
55 #endif
const HcalQIEShape & getShape(int qieType) const
get basic shape
Definition: HcalQIEData.h:35
std::string myname() const override
Definition: HcalQIEData.h:45
const HcalQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: HcalQIEData.h:37
HcalQIEData(const HcalTopology *topo)
Definition: HcalQIEData.h:30
const HcalQIECoder * getValues(DetId fId, bool throwOnFail=true) const
bool addCoder(const HcalQIECoder &fCoder)
Definition: HcalQIEData.h:41
HcalQIEShape mShape[2]
Definition: HcalQIEData.h:50
Definition: DetId.h:17
#define COND_TRANSIENT
Definition: Serializable.h:63
void sort()
Definition: HcalQIEData.h:43
#define COND_SERIALIZABLE
Definition: Serializable.h:39
void setupShape()
Definition: HcalQIEData.cc:3
bool sorted() const
Definition: HcalQIEData.h:39
bool addValues(const HcalQIECoder &myItem)
const HcalTopology * topo() const