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 binSize (int fAdc) const
double linearization (int fAdc) const
double linearization (int fAdc) const
 QieShape (const double fAdcShape[32], const double fAdcBin[32])
 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:
2008/03/04 10:04:16
Revision:
1.1

basic linearization function for HCAL QIE $Author: ratnikov

Date:
2008/03/04 10:01:27
Revision:
1.1

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];
    }
  }
}
QieShape::QieShape ( const double  fAdcShape[32],
const double  fAdcBin[32] 
)

Member Function Documentation

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

Definition at line 17 of file QieShape.h.

References mBinSize.

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

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

Definition at line 17 of file QieShape.h.

References mBinSize.

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

Definition at line 15 of file QieShape.h.

References mLinearization.

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

Member Data Documentation

double QieShape::mBinSize [private]

Definition at line 20 of file QieShape.h.

Referenced by binSize(), and QieShape().

double QieShape::mLinearization [private]

Definition at line 19 of file QieShape.h.

Referenced by linearization(), and QieShape().