CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CondFormats/HcalObjects/interface/HcalQIEShape.h

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