CMS 3D CMS Logo

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