CMS 3D CMS Logo

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
float lowEdge(unsigned fAdc) const
unsigned local(unsigned fAdc) const
float center(unsigned fAdc) const
unsigned range(unsigned fAdc) const
bool setLowEdges(const float fValue[32])
float highEdge(unsigned fAdc) const
float mValues[129]
bool setLowEdge(float fValue, unsigned fAdc)