#include <CastorCoderDb.h>
Public Member Functions | |
virtual void | adc2fC (const CastorDataFrame &df, CaloSamples &lf) const |
CastorCoderDb (const CastorQIECoder &fCoder, const CastorQIEShape &fShape) | |
virtual void | fC2adc (const CaloSamples &clf, CastorDataFrame &df, int fCapIdOffset) const |
Private Member Functions | |
template<class Digi > | |
void | adc2fC_ (const Digi &df, CaloSamples &clf) const |
template<class Digi > | |
void | fC2adc_ (const CaloSamples &clf, Digi &df, int fCapIdOffset) const |
Private Attributes | |
const CastorQIECoder * | mCoder |
const CastorQIEShape * | mShape |
coder which uses DB services to convert to fC
Definition at line 17 of file CastorCoderDb.h.
CastorCoderDb::CastorCoderDb | ( | const CastorQIECoder & | fCoder, |
const CastorQIEShape & | fShape | ||
) |
Definition at line 11 of file CastorCoderDB.cc.
void CastorCoderDb::adc2fC | ( | const CastorDataFrame & | df, |
CaloSamples & | lf | ||
) | const [virtual] |
Implements CastorCoder.
Definition at line 34 of file CastorCoderDB.cc.
References adc2fC_().
{adc2fC_ (df, lf);}
void CastorCoderDb::adc2fC_ | ( | const Digi & | df, |
CaloSamples & | clf | ||
) | const [private] |
Definition at line 16 of file CastorCoderDB.cc.
References ecalMGPA::adc(), CastorQIECoder::charge(), i, mCoder, mShape, and CaloSamples::setPresamples().
Referenced by adc2fC().
void CastorCoderDb::fC2adc | ( | const CaloSamples & | clf, |
CastorDataFrame & | df, | ||
int | fCapIdOffset | ||
) | const [virtual] |
Implements CastorCoder.
Definition at line 36 of file CastorCoderDB.cc.
References fC2adc_().
{fC2adc_ (clf, df, fCapIdOffset);}
void CastorCoderDb::fC2adc_ | ( | const CaloSamples & | clf, |
Digi & | df, | ||
int | fCapIdOffset | ||
) | const [private] |
Definition at line 24 of file CastorCoderDB.cc.
References CastorQIECoder::adc(), i, CaloSamples::id(), mCoder, mShape, CaloSamples::presamples(), and CaloSamples::size().
Referenced by fC2adc().
const CastorQIECoder* CastorCoderDb::mCoder [private] |
Definition at line 29 of file CastorCoderDb.h.
const CastorQIEShape* CastorCoderDb::mShape [private] |
Definition at line 30 of file CastorCoderDb.h.