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  protected:
25  private:
26  void expand ();
27  bool setLowEdge (float fValue, unsigned fAdc);
28  float mValues [129];
29 };
30 
31 #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