4 : linLSB_(conf.getParameter<double>(
"linLSB")),
5 adcsaturation_(conf.getParameter<double>(
"adcsaturation")),
6 tdcnBits_(conf.getParameter<uint32_t>(
"tdcnBits")),
7 tdcOnsetfC_(conf.getParameter<double>(
"tdcOnsetfC")),
8 adcnBits_(conf.getParameter<uint32_t>(
"adcnBits")),
9 tdcsaturation_(conf.getParameter<double>(
"tdcsaturation")),
10 linnBits_(conf.getParameter<uint32_t>(
"linnBits")) {
17 std::vector<std::pair<DetId, uint32_t>>& linearized_dataframes) {
19 uint32_t amplitude_int = 0;
20 const int kIntimeSample = 2;
22 for (
const auto& frame : dataframes) {
23 unsigned det = frame.id().det();
25 if (frame[kIntimeSample].
mode()) {
28 amplitude = double(frame[kIntimeSample].
data()) *
adcLSB_;
31 amplitude_int = uint32_t(floor(amplitude /
linLSB_ + 0.5));
34 amplitude_int = frame[kIntimeSample].data();
39 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)