9 adcNBits_(conf.getParameter<uint32_t>(
"adcNbits")),
12 toaLSBToNS_(conf.getParameter<double>(
"toaLSB_ns")),
13 timeError_(conf.getParameter<double>(
"timeResolutionInNs")),
16 timeCorr_p2_(conf.getParameter<double>(
"timeCorr_p2")) {}
46 std::pair<float, float>
amplitude(0., 0.);
47 std::pair<float, float>
time(0., 0.);
49 unsigned char flag = 0;
51 const auto& sampleLeft = dataFrame.
sample(0);
52 const auto& sampleRight = dataFrame.
sample(1);
54 if (sampleLeft.data() > 0) {
64 if (sampleRight.data() > 0) {
65 amplitude.second = sampleRight.data() *
adcLSB_;
73 LogDebug(
"BTLUncalibRecHit") <<
"ADC+: set the charge to: (" << amplitude.first <<
", " << amplitude.second <<
") (" 74 << sampleLeft.data() <<
", " << sampleRight.data() <<
" " <<
adcLSB_ <<
' ' 76 LogDebug(
"BTLUncalibRecHit") <<
"TDC+: set the time to: (" << time.first <<
", " << time.second <<
") (" 77 << sampleLeft.toa() <<
", " << sampleRight.toa() <<
" " <<
toaLSBToNS_ <<
' '
const int row() const
row
const double adcSaturation_
~BTLUncalibRecHitAlgo() override
Destructor.
BTLUncalibRecHitAlgo(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
Constructor.
const S & sample(int i) const
FTLUncalibratedRecHit makeRecHit(const BTLDataFrame &dataFrame) const final
make the rec hit
void getEvent(const edm::Event &) final
get event and eventsetup information
const double timeCorr_p1_
const double timeCorr_p0_
void getEventSetup(const edm::EventSetup &) final
const int column() const
column
#define DEFINE_EDM_PLUGIN(factory, type, name)
const double timeCorr_p2_
Power< A, B >::type pow(const A &a, const B &b)
const D & id() const
det id