51 std::pair<float, float> amplitude(0., 0.);
52 std::pair<float, float> time(0., 0.);
54 unsigned char flag = 0;
56 const auto& sampleLeft = dataFrame.
sample(0);
57 const auto& sampleRight = dataFrame.
sample(1);
61 if (sampleLeft.data() > 0) {
62 amplitude.first = float(sampleLeft.data()) *
adcLSB_;
73 if (sampleRight.data() > 0) {
74 amplitude.second = sampleRight.data() *
adcLSB_;
86 const std::array<double, 1> amplitudeV = {{(amplitude.first + amplitude.second) / nHits}};
87 const std::array<double, 1> emptyV = {{0.}};
96 LogDebug(
"BTLUncalibRecHit") <<
"ADC+: set the charge to: (" << amplitude.first <<
", " << amplitude.second <<
") ("
97 << sampleLeft.data() <<
", " << sampleRight.data() <<
" " <<
adcLSB_ <<
' '
99 LogDebug(
"BTLUncalibRecHit") <<
"TDC+: set the time to: (" << time.first <<
", " << time.second <<
") ("
100 << sampleLeft.toa() <<
", " << sampleRight.toa() <<
" " <<
toaLSBToNS_ <<
' '
104 dataFrame.
id(), dataFrame.
row(), dataFrame.
column(), amplitude, time, timeError,
position, positionError, flag);
const int row() const
row
static float positionError()
const S & sample(int i) const
const reco::FormulaEvaluator timeError_
const double timeCorr_p1_
const double timeCorr_p0_
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ uint32_t const *__restrict__ gpuPixelDoublets::CellNeighborsVector const gpuPixelDoublets::CellTracksVector const GPUCACell::OuterHitOfCell const int32_t nHits
static int position[264][3]
const int column() const
column
const double timeCorr_p2_
Power< A, B >::type pow(const A &a, const B &b)
const D & id() const
det id