#include <EcalLiteDTUCoder.h>
Public Types | |
typedef CaloTSamples< float, ecalPh2::sampleSize > | EcalSamples |
typedef CorrelatedNoisifier< EcalCorrMatrix_Ph2 > | Noisifier |
Public Member Functions | |
virtual void | analogToDigital (CLHEP::HepRandomEngine *, const EcalSamples &clf, EcalDataFrame_Ph2 &df) const |
from EcalSamples to EcalDataFrame_Ph2 More... | |
EcalLiteDTUCoder (bool addNoise, bool PreMix1, Noisifier *ebCorrNoise0, Noisifier *ebCorrNoise1=nullptr) | |
ctor More... | |
void | setFullScaleEnergy (double EBscale) |
void | setGainRatios (float gainRatios) |
void | setIntercalibConstants (const EcalIntercalibConstantsMC *ical) |
void | setPedestals (const EcalLiteDTUPedestalsMap *pedestals) |
can be fetched every event from the EventSetup More... | |
virtual | ~EcalLiteDTUCoder () |
dtor More... | |
Private Member Functions | |
void | encode (const EcalSamples &ecalSamples, EcalDataFrame_Ph2 &df, CLHEP::HepRandomEngine *) const |
produce the pulse-shape More... | |
void | findGains (const DetId &detId, float theGains[]) const |
void | findIntercalibConstant (const DetId &detId, double &icalconst) const |
void | findPedestal (const DetId &detId, int gainId, double &pedestal, double &width) const |
double | fullScaleEnergy (const DetId &did) const |
limit on the energy scale due to the electronics range More... | |
Private Attributes | |
bool | m_addNoise |
const Noisifier * | m_ebCorrNoise [ecalPh2::NGAINS] |
float | m_gainRatios |
const EcalIntercalibConstantsMC * | m_intercals |
double | m_maxEneEB |
const EcalLiteDTUPedestalsMap * | m_peds |
bool | m_PreMix1 |
Definition at line 24 of file EcalLiteDTUCoder.h.
typedef CaloTSamples<float, ecalPh2::sampleSize> EcalLiteDTUCoder::EcalSamples |
Definition at line 26 of file EcalLiteDTUCoder.h.
Definition at line 28 of file EcalLiteDTUCoder.h.
EcalLiteDTUCoder::EcalLiteDTUCoder | ( | bool | addNoise, |
bool | PreMix1, | ||
EcalLiteDTUCoder::Noisifier * | ebCorrNoise0, | ||
EcalLiteDTUCoder::Noisifier * | ebCorrNoise1 = nullptr |
||
) |
ctor
Definition at line 9 of file EcalLiteDTUCoder.cc.
|
virtual |
|
virtual |
from EcalSamples to EcalDataFrame_Ph2
Definition at line 35 of file EcalLiteDTUCoder.cc.
References isotrackApplyRegressor::df, encode(), and CaloTSamplesBase< Ttype >::size().
|
private |
produce the pulse-shape
Definition at line 42 of file EcalLiteDTUCoder.cc.
References funct::abs(), gpuClustering::adc, hcalRecHitTable_cff::detId, isotrackApplyRegressor::df, findIntercalibConstant(), findPedestal(), fullScaleEnergy(), ecalPh2::gains, mps_fire::i, CaloTSamplesBase< Ttype >::id(), dqmiolumiharvest::j, m_addNoise, m_ebCorrNoise, m_PreMix1, ecalPh2::MAXADC, ecalPh2::NGAINS, CorrelatedNoisifier< M >::noisify(), PresampleTask_cfi::nSamples, CaloTSamplesBase< Ttype >::size(), and mathSSE::sqrt().
Referenced by analogToDigital().
|
private |
|
private |
Definition at line 165 of file EcalLiteDTUCoder.cc.
References hcalRecHitTable_cff::detId, EcalCondObjectContainer< T >::end(), EcalCondObjectContainer< T >::find(), EcalCondObjectContainer< T >::getMap(), LogDebug, and m_intercals.
Referenced by encode().
|
private |
Definition at line 151 of file EcalLiteDTUCoder.cc.
References hcalRecHitTable_cff::detId, EcalCondObjectContainer< T >::end(), EcalCondObjectContainer< T >::find(), ecalLiteDTU::gainId(), EcalCondObjectContainer< T >::getMap(), LogDebug, m_peds, QIE10Task_cfi::ped, and ApeEstimator_cff::width.
Referenced by encode().
|
private |
limit on the energy scale due to the electronics range
Definition at line 33 of file EcalLiteDTUCoder.cc.
References m_maxEneEB.
Referenced by encode().
void EcalLiteDTUCoder::setFullScaleEnergy | ( | double | EBscale | ) |
void EcalLiteDTUCoder::setGainRatios | ( | float | gainRatios | ) |
void EcalLiteDTUCoder::setIntercalibConstants | ( | const EcalIntercalibConstantsMC * | ical | ) |
Definition at line 31 of file EcalLiteDTUCoder.cc.
References m_intercals.
void EcalLiteDTUCoder::setPedestals | ( | const EcalLiteDTUPedestalsMap * | pedestals | ) |
can be fetched every event from the EventSetup
Definition at line 27 of file EcalLiteDTUCoder.cc.
References m_peds.
|
private |
Definition at line 69 of file EcalLiteDTUCoder.h.
Referenced by encode().
|
private |
Definition at line 72 of file EcalLiteDTUCoder.h.
Referenced by encode().
|
private |
Definition at line 63 of file EcalLiteDTUCoder.h.
Referenced by setGainRatios().
|
private |
Definition at line 65 of file EcalLiteDTUCoder.h.
Referenced by findIntercalibConstant(), and setIntercalibConstants().
|
private |
Definition at line 67 of file EcalLiteDTUCoder.h.
Referenced by fullScaleEnergy(), and setFullScaleEnergy().
|
private |
Definition at line 61 of file EcalLiteDTUCoder.h.
Referenced by findPedestal(), and setPedestals().
|
private |
Definition at line 70 of file EcalLiteDTUCoder.h.
Referenced by encode().