CMS 3D CMS Logo

Public Member Functions | Private Attributes

QieShape Class Reference

#include <QieShape.h>

List of all members.

Public Member Functions

double binSize (int fAdc) const
double linearization (int fAdc) const
 QieShape (const double fAdcShape[32], const double fAdcBin[32])

Private Attributes

double mBinSize [128]
double mLinearization [128]

Detailed Description

basic linearization function for HCAL/castor QIE $Author: ratnikov

Date:
2010/07/20 04:22:55
Revision:
1.2

basic linearization function for HCAL QIE $Author: ratnikov

Date:
2010/07/20 04:22:55
Revision:
1.2

basic linearization function for HCAL QIE $Author: ratnikov

Date:
2005/08/18 23:41:41
Revision:
1.1

basic linearization function for HCAL QIE $Author: ratnikov

Date:
2005/11/07 22:15:09
Revision:
1.2

Definition at line 11 of file QieShape.h.


Constructor & Destructor Documentation

QieShape::QieShape ( const double  fAdcShape[32],
const double  fAdcBin[32] 
)

Definition at line 13 of file QieShape.cc.

References newFWLiteAna::bin, i, mBinSize, mLinearization, and evf::evtn::offset().

                                                                          {
  for (int i = 0; i < 32; i++) {  // initial settings
    mLinearization [i] = fAdcShape [i];
    mBinSize [i] = fAdcBin [i];
    //    std::cout << "QieShape::QieShape-> #/adc/bin: " << i << '/' << fAdcShape [i] << '/' << fAdcBin [i] << std::endl;
  }
  double factor = 1;
  for (int range = 1; range < 4; range++) {
    factor = factor * 5;
    int offset = 32 * range;
    mLinearization [offset] = mLinearization[offset-2]; // initial overlap
    for (int bin = 1; bin < 32; bin++) {
      mLinearization [offset+bin] = mLinearization [offset+bin-1] +
        factor * (mLinearization [bin] - mLinearization [bin-1]); // scale initial curve
      mBinSize [offset+bin] = factor * mBinSize [bin];
    }
  }
}

Member Function Documentation

double QieShape::binSize ( int  fAdc) const [inline]

Definition at line 17 of file QieShape.h.

References mBinSize.

Referenced by HcalChannelCoder::adc().

{return mBinSize [fAdc];}
double QieShape::linearization ( int  fAdc) const [inline]

Definition at line 15 of file QieShape.h.

References mLinearization.

Referenced by HcalChannelCoder::adc(), and HcalChannelCoder::charge().

{return mLinearization [fAdc];}

Member Data Documentation

double QieShape::mBinSize[128] [private]

Definition at line 20 of file QieShape.h.

Referenced by binSize(), and QieShape().

double QieShape::mLinearization[128] [private]

Definition at line 19 of file QieShape.h.

Referenced by linearization(), and QieShape().