test
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 
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 (DetId fId) const { return mShape[getCoder(fId)->qieIndex()];}
38  const HcalQIEShape& getShape (const HcalQIECoder* coder) const { return mShape[coder->qieIndex()];}
40  const HcalQIECoder* getCoder (DetId fId) const { return getValues(fId); }
41  // check if data are sorted - remove in the next version
42  bool sorted () const { return true; }
43  // fill values [capid][range]
44  bool addCoder (const HcalQIECoder& fCoder) { return addValues(fCoder); }
45  // sort values by channelId - remove in the next version
46  void sort () {}
47 
48  std::string myname() const {return (std::string)"HcalQIEData";}
49 
50  //not needed/not used HcalQIEData(const HcalQIEData&);
51 
52  private:
54 
55 
57 };
58 
59 #endif
uint32_t qieIndex() const
Definition: HcalQIECoder.h:39
const HcalQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: HcalQIEData.h:40
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:44
HcalQIEShape mShape[2]
Definition: HcalQIEData.h:53
std::string myname() const
Definition: HcalQIEData.h:48
const HcalQIEShape & getShape(DetId fId) const
get basic shape
Definition: HcalQIEData.h:37
Definition: DetId.h:18
#define COND_TRANSIENT
Definition: Serializable.h:60
void sort()
Definition: HcalQIEData.h:46
#define COND_SERIALIZABLE
Definition: Serializable.h:37
const HcalQIEShape & getShape(const HcalQIECoder *coder) const
Definition: HcalQIEData.h:38
void setupShape()
Definition: HcalQIEData.cc:3
bool sorted() const
Definition: HcalQIEData.h:42
bool addValues(const HcalQIECoder &myItem)
const HcalTopology * topo() const