5 linLSB_(conf.getParameter<double>(
"linLSB")),
6 adcsaturation_(conf.getParameter<double>(
"adcsaturation")),
7 tdcnBits_(conf.getParameter<uint32_t>(
"tdcnBits")),
8 tdcOnsetfC_(conf.getParameter<double>(
"tdcOnsetfC")),
9 adcnBits_(conf.getParameter<uint32_t>(
"adcnBits")),
10 tdcsaturation_(conf.getParameter<double>(
"tdcsaturation")),
11 linnBits_(conf.getParameter<uint32_t>(
"linnBits"))
21 std::vector<std::pair<DetId, uint32_t > >& linearized_dataframes)
24 uint32_t amplitude_int = 0;
25 const int kIntimeSample = 2;
27 for(
const auto& frame : dataframes) {
28 unsigned det = frame.id().det();
30 if (frame[kIntimeSample].
mode()) {
34 amplitude = double(frame[kIntimeSample].
data()) *
adcLSB_;
37 amplitude_int = uint32_t (floor(amplitude/
linLSB_+0.5));
41 amplitude_int = frame[kIntimeSample].data();
45 linearized_dataframes.push_back(std::make_pair (frame.id(), amplitude_int));
HGCalVFELinearizationImpl(const edm::ParameterSet &conf)
void linearize(const std::vector< HGCDataFrame< DetId, HGCSample >> &, std::vector< std::pair< DetId, uint32_t > > &)
char data[epos_bytes_allocation]
Power< A, B >::type pow(const A &a, const B &b)