CMS 3D CMS Logo

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