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
CastorQIEShape::setLowEdges
bool setLowEdges(const float fValue[32])
Definition: CastorQIEShape.cc:67
CastorQIEShape::local
unsigned local(unsigned fAdc) const
Definition: CastorQIEShape.h:23
CastorQIEShape::lowEdge
float lowEdge(unsigned fAdc) const
Definition: CastorQIEShape.cc:34
CastorQIEShape::CastorQIEShape
CastorQIEShape()
Definition: CastorQIEShape.cc:13
CastorQIEShape::highEdge
float highEdge(unsigned fAdc) const
Definition: CastorQIEShape.cc:50
CastorQIEShape::expand
void expand()
Definition: CastorQIEShape.cc:21
CastorQIEShape::center
float center(unsigned fAdc) const
Definition: CastorQIEShape.cc:40
CastorQIEShape::mValues
float mValues[129]
Definition: CastorQIEShape.h:29
CastorQIEShape::range
unsigned range(unsigned fAdc) const
Definition: CastorQIEShape.h:22
CastorQIEShape::~CastorQIEShape
~CastorQIEShape()
Definition: CastorQIEShape.cc:19
CastorQIEShape::setLowEdge
bool setLowEdge(float fValue, unsigned fAdc)
Definition: CastorQIEShape.cc:60
CastorQIEShape
Definition: CastorQIEShape.h:14