10 adcNBits_( conf.getParameter<uint32_t>(
"adcNbits") ),
13 toaLSBToNS_( conf.getParameter<double>(
"toaLSB_ns") ),
14 timeError_( conf.getParameter<double>(
"timeResolutionInNs") ),
15 timeCorr_p0_( conf.getParameter<double>(
"timeCorr_p0") ),
16 timeCorr_p1_( conf.getParameter<double>(
"timeCorr_p1") ),
53 std::pair<float,float>
time(0.,0.);
55 unsigned char flag = 0;
57 const auto& sampleLeft = dataFrame.
sample(0);
58 const auto& sampleRight = dataFrame.
sample(1);
60 if ( sampleLeft.data() > 0 ) {
72 if ( sampleRight.data() > 0 ) {
74 amplitude.second = sampleRight.data() *
adcLSB_;
83 LogDebug(
"BTLUncalibRecHit") <<
"ADC+: set the charge to: (" << amplitude.first <<
", " 84 << amplitude.second <<
") (" 85 << sampleLeft.data() <<
", " << sampleRight.data()
86 <<
" " <<
adcLSB_ <<
' ' << std::endl;
87 LogDebug(
"BTLUncalibRecHit") <<
"TDC+: set the time to: (" << time.first <<
", " 88 << time.second <<
") (" 89 << sampleLeft.toa() <<
", " << sampleRight.toa()
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