CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalQIEShape.h
Go to the documentation of this file.
1 #ifndef HcalQIEShape_h
2 #define HcalQIEShape_h
3 
13 #include <vector>
14 #include <algorithm>
15 
16 // 128 QIE channels
17 class HcalQIEShape {
18  public:
19  HcalQIEShape();
20  ~HcalQIEShape();
21  float lowEdge (unsigned fAdc) const;
22  float highEdge (unsigned fAdc) const;
23  float center (unsigned fAdc) const;
24  bool setLowEdges (const float fValue [32]);
25  unsigned range (unsigned fAdc) const {return (fAdc >> 5) & 0x3;}
26  unsigned local (unsigned fAdc) const {return fAdc & 0x1f;}
27  protected:
28  private:
29  void expand ();
30  bool setLowEdge (float fValue, unsigned fAdc);
31  float mValues [129];
32 };
33 
34 #endif
float mValues[129]
Definition: HcalQIEShape.h:31
float lowEdge(unsigned fAdc) const
Definition: HcalQIEShape.cc:39
bool setLowEdges(const float fValue[32])
Definition: HcalQIEShape.cc:63
bool setLowEdge(float fValue, unsigned fAdc)
Definition: HcalQIEShape.cc:57
float center(unsigned fAdc) const
Definition: HcalQIEShape.cc:44
unsigned local(unsigned fAdc) const
Definition: HcalQIEShape.h:26
unsigned range(unsigned fAdc) const
Definition: HcalQIEShape.h:25
float highEdge(unsigned fAdc) const
Definition: HcalQIEShape.cc:52