11 adcNBits_(conf.getParameter<uint32_t>(
"adcNbits")),
14 toaLSBToNS_(conf.getParameter<double>(
"toaLSB_ns")),
15 tofDelay_(conf.getParameter<double>(
"tofDelay")),
20 timeCorr_p3_(conf.getParameter<double>(
"timeCorr_p3")) {}
47 const std::array<double, 1> amplitudeV = {{double(
sample.data()) *
adcLSB_}};
51 unsigned char flag = 0;
53 LogDebug(
"ETLUncalibRecHit") <<
"ADC+: set the charge to: " << amplitudeV[0] <<
' ' <<
sample.data() <<
' ' <<
adcLSB_ 56 if (time_over_threshold == 0) {
63 timeCorr_p2_ * time_over_threshold * time_over_threshold +
64 timeCorr_p3_ * time_over_threshold * time_over_threshold * time_over_threshold;
69 <<
" .Timewalk correction: " << timeWalkCorr << std::endl;
72 LogDebug(
"ETLUncalibRecHit") <<
"Final uncalibrated amplitude : " << amplitudeV[0] << std::endl;
74 const std::array<double, 1> emptyV = {{0.}};
FTLUncalibratedRecHit makeRecHit(const ETLDataFrame &dataFrame) const final
make the rec hit
const double timeCorr_p1_
const double timeCorr_p2_
const reco::FormulaEvaluator timeError_
ETLUncalibRecHitAlgo(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
Constructor.
const double timeCorr_p0_
const D & id() const
det id
~ETLUncalibRecHitAlgo() override
Destructor.
const double adcSaturation_
const S & sample(int i) const
const double timeCorr_p3_
const int column() const
column
void getEvent(const edm::Event &) final
get event and eventsetup information
#define DEFINE_EDM_PLUGIN(factory, type, name)
void getEventSetup(const edm::EventSetup &) final