Definition at line 32 of file CastorSimpleRecAlgo.cc.
References CastorCoder::adc2fC(), alignCSCRings::corr, CastorTimeSlew::delay(), CastorCalibrations::gain(), mps_fire::i, SiStripPI::max, findQualityFiles::maxI, dqmiodumpmetadata::n, CastorCalibrations::pedestal(), CaloSamples::size(), FrontierCondition_GT_autoExpress_cfi::t0, RandomServiceHelper::t2, protons_cff::time, and timeshift_ns_hf().
48 for (
int i = ifirst;
i < tool.
size() &&
i <
n + ifirst;
i++) {
49 int capid = digi[
i].capid();
52 ta *= calibs.
gain(capid);
74 int capid = digi[
maxI - 1].capid();
76 capid = digi[
maxI + 1].capid();
78 float wpksamp = (
t0 + maxA +
t2);
80 wpksamp = (maxA + 2.0 *
t2) / wpksamp;
83 if (
corr !=
nullptr) {
85 ampl *=
corr->getCorrection(fc_ampl);
92 return RecHit(digi.id(), ampl,
time);
static double delay(double fC, BiasSetting bias=Medium)
Returns the amount (ns) by which a pulse of the given number of fC will be delayed by the timeslew ef...
int size() const
get the size
double gain(int fCapId) const
get gain for capid=0..3
virtual void adc2fC(const CastorDataFrame &df, CaloSamples &lf) const =0
double pedestal(int fCapId) const
get pedestal for capid=0..3
static float timeshift_ns_hf(float wpksamp)
Same as above, but for the HF PMTs.