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 namespace
23 {
24  HcalQIEShape shape_;
25 }
26 
27 class HcalQIEData: public HcalCondObjectContainer<HcalQIECoder>
28 {
29  public:
30 
31  // constructor, destructor, and all methods stay the same
33 
35  // const HcalQIEShape& getShape () const {return mShape;}
36  const HcalQIEShape& getShape () const { return shape_;}
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, bool h2mode_ = false) { return addValues(fCoder, h2mode_); }
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 };
51 
52 #endif
bool addValues(const HcalQIECoder &myItem, bool h2mode_=false)
const HcalQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: HcalQIEData.h:38
const HcalQIEShape & getShape() const
get basic shape
Definition: HcalQIEData.h:36
std::string myname() const
Definition: HcalQIEData.h:46
bool addCoder(const HcalQIECoder &fCoder, bool h2mode_=false)
Definition: HcalQIEData.h:42
Definition: DetId.h:20
void sort()
Definition: HcalQIEData.h:44
bool sorted() const
Definition: HcalQIEData.h:40
const HcalQIECoder * getValues(DetId fId) const