CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/CondFormats/CastorObjects/interface/CastorQIEShape.h

Go to the documentation of this file.
00001 #ifndef CastorQIEShape_h
00002 #define CastorQIEShape_h
00003 
00010 #include <vector>
00011 #include <algorithm>
00012 
00013 // 128 QIE channels
00014 class CastorQIEShape {
00015  public:
00016   CastorQIEShape();
00017   ~CastorQIEShape();
00018   float lowEdge (unsigned fAdc) const;
00019   float highEdge (unsigned fAdc) const;
00020   float center (unsigned fAdc) const;
00021   bool setLowEdges (const float fValue [32]);
00022   unsigned range (unsigned fAdc) const {return (fAdc >> 5) & 0x3;}
00023   unsigned local (unsigned fAdc) const {return fAdc & 0x1f;}
00024  protected:
00025  private:
00026   void expand ();
00027   bool setLowEdge (float fValue, unsigned fAdc);
00028   float mValues [129];
00029 };
00030 
00031 #endif