make the rec hit
Definition at line 45 of file BTLUncalibRecHitAlgo.cc.
References adcLSB_, CustomPhysics_cfi::amplitude, c_LYSO_, FTLDataFrameT< D, S, DECODE >::column(), reco::FormulaEvaluator::evaluate(), RemoveAddSevLevel::flag, dqmMemoryStats::float, FTLDataFrameT< D, S, DECODE >::id(), LogDebug, nHits, position, BTLRecHitsErrorEstimatorIM::positionError(), funct::pow(), FTLDataFrameT< D, S, DECODE >::row(), FTLDataFrameT< D, S, DECODE >::sample(), protons_cff::time, timeCorr_p0_, timeCorr_p1_, timeCorr_p2_, timeError_, and toaLSBToNS_.
52 std::pair<float, float>
amplitude(0., 0.);
53 std::pair<float, float>
time(0., 0.);
55 unsigned char flag = 0;
57 const auto& sampleRight = dataFrame.
sample(0);
58 const auto& sampleLeft = dataFrame.
sample(1);
63 <<
float(sampleLeft.toa()) *
toaLSBToNS_ << std::endl;
65 if (sampleRight.data() > 0) {
77 if (sampleLeft.data() > 0) {
91 const std::array<double, 1> emptyV = {{0.}};
101 LogDebug(
"BTLUncalibRecHit") <<
"DetId: " << dataFrame.
id().rawId() <<
" x position = " <<
position <<
" +/- " 104 << sampleRight.data() <<
", " << sampleLeft.data() <<
") " <<
adcLSB_ <<
' ' 106 LogDebug(
"BTLUncalibRecHit") <<
"TDC+: set the time to: (" <<
time.first <<
", " <<
time.second <<
") (" 107 << sampleRight.toa() <<
", " << sampleLeft.toa() <<
") " <<
toaLSBToNS_ <<
' '
static float positionError()
const D & id() const
det id
const S & sample(int i) const
const reco::FormulaEvaluator timeError_
const double timeCorr_p1_
const double timeCorr_p0_
const int column() const
column
static int position[264][3]
TupleMultiplicity< TrackerTraits > const *__restrict__ uint32_t nHits
const double timeCorr_p2_
Power< A, B >::type pow(const A &a, const B &b)