#include <QieShape.h>
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] |
basic linearization function for HCAL/castor QIE $Author: ratnikov
basic linearization function for HCAL QIE $Author: ratnikov
basic linearization function for HCAL QIE $Author: ratnikov
basic linearization function for HCAL QIE $Author: ratnikov
Definition at line 11 of file QieShape.h.
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]; } } }
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];}
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().