CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalChannelCoder.h
Go to the documentation of this file.
1 #ifndef HCAL_CHANNEL_CODER_H
2 #define HCAL_CHANNEL_CODER_H
3 
12 class QieShape;
13 
15  public:
16  HcalChannelCoder (const float fOffset [16], const float fSlope [16]); // [CapId][Range]
18  double charge (const QieShape& fShape, int fAdc, int fCapId) const;
20  int adc (const QieShape& fShape, double fCharge, int fCapId) const;
21  int index (int fCapId, int Range) {return fCapId*4+Range;}
22  private:
23  double mOffset [4][4];
24  double mSlope [4][4];
25 };
26 
27 #endif
int adc(const QieShape &fShape, double fCharge, int fCapId) const
fC + capid[0..3] -> ADC conversion
double charge(const QieShape &fShape, int fAdc, int fCapId) const
ADC[0..127]+capid[0..3]->fC conversion.
HcalChannelCoder(const float fOffset[16], const float fSlope[16])
PixelRecoRange< float > Range
double mOffset[4][4]
int index(int fCapId, int Range)
double mSlope[4][4]