CMS 3D CMS Logo

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 
25 class HcalQIEData: public HcalCondObjectContainer<HcalQIECoder>
26 {
27  public:
28 #ifndef HCAL_COND_SUPPRESS_DEFAULT
30 #endif
31  // constructor, destructor, and all methods stay the same
33 
34  void setupShape();
36  // const HcalQIEShape& getShape () const {return mShape;}
37  const HcalQIEShape& getShape (int qieType) const { return mShape[qieType];}
39  const HcalQIECoder* getCoder (DetId fId) const { return getValues(fId); }
40  // check if data are sorted - remove in the next version
41  bool sorted () const { return true; }
42  // fill values [capid][range]
43  bool addCoder (const HcalQIECoder& fCoder) { return addValues(fCoder); }
44  // sort values by channelId - remove in the next version
45  void sort () {}
46 
47  std::string myname() const override {return (std::string)"HcalQIEData";}
48 
49  //not needed/not used HcalQIEData(const HcalQIEData&);
50 
51  private:
53 
54 
56 };
57 
58 #endif
const HcalQIEShape & getShape(int qieType) const
get basic shape
Definition: HcalQIEData.h:37
const HcalQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: HcalQIEData.h:39
#define nullptr
std::string myname() const override
Definition: HcalQIEData.h:47
HcalQIEData(const HcalTopology *topo)
Definition: HcalQIEData.h:32
const HcalQIECoder * getValues(DetId fId, bool throwOnFail=true) const
bool addCoder(const HcalQIECoder &fCoder)
Definition: HcalQIEData.h:43
HcalQIEShape mShape[2]
Definition: HcalQIEData.h:52
Definition: DetId.h:18
#define COND_TRANSIENT
Definition: Serializable.h:61
void sort()
Definition: HcalQIEData.h:45
#define COND_SERIALIZABLE
Definition: Serializable.h:38
void setupShape()
Definition: HcalQIEData.cc:3
bool sorted() const
Definition: HcalQIEData.h:41
bool addValues(const HcalQIECoder &myItem)
const HcalTopology * topo() const