CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalQIEData.h
Go to the documentation of this file.
1 #ifndef HcalQIEData_h
2 #define HcalQIEData_h
3 
14 #include <vector>
15 #include <algorithm>
16 
21 
22 
23 class HcalQIEData: public HcalCondObjectContainer<HcalQIECoder>
24 {
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 (DetId fId) const { return mShape[getCoder(fId)->qieIndex()];}
36  const HcalQIEShape& getShape (const HcalQIECoder* coder) const { return mShape[coder->qieIndex()];}
38  const HcalQIECoder* 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 HcalQIECoder& 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)"HcalQIEData";}
47 
48  //not needed/not used HcalQIEData(const HcalQIEData&);
49 
50  private:
52 
53 };
54 
55 #endif
uint32_t qieIndex() const
Definition: HcalQIECoder.h:37
const HcalQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: HcalQIEData.h:38
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:42
HcalQIEShape mShape[2]
Definition: HcalQIEData.h:51
std::string myname() const
Definition: HcalQIEData.h:46
const HcalQIEShape & getShape(DetId fId) const
get basic shape
Definition: HcalQIEData.h:35
Definition: DetId.h:18
void sort()
Definition: HcalQIEData.h:44
const HcalQIEShape & getShape(const HcalQIECoder *coder) const
Definition: HcalQIEData.h:36
void setupShape()
Definition: HcalQIEData.cc:3
bool sorted() const
Definition: HcalQIEData.h:40
bool addValues(const HcalQIECoder &myItem)
const HcalTopology * topo() const