6 #include "Identifier/Identifier.h"
17 constexpr
size_t FEStringSize{21};
22 ChargeCalibrationBundle
30 for (
unsigned int j{}; j < numFE; j++) {
31 const auto &calibArray =
data.at(j);
32 if (!calibArray.empty()) {
34 if (calibArray.size() != FEStringSize-1) {
35 std::cout<<
"Parameter size is not consistent(" << FEStringSize <<
") " << calibArray.size() <<
" at (i,j)=(" << moduleHash <<
"," << j <<
")\n";
39 auto getInt = getFunc<int>(calibArray);
40 auto getFloat = getFunc<float>(calibArray);
41 b.threshold.emplace_back(getInt(0), getInt(1), getInt(2), getInt(3));
42 b.thresholdLong.emplace_back(getInt(4), getInt(5), getInt(6), getInt(7));
43 b.thresholdGanged.emplace_back(getInt(8), getInt(9), getInt(10), getInt(11));
44 b.params.emplace_back(getFloat(12), getFloat(13), getFloat(14));
45 b.paramsGanged.emplace_back(getFloat(15), getFloat(16), getFloat(17));
46 b.totRes.emplace_back(getFloat(18), getFloat(19));
53 if (!(element->
isDBM())) {
64 b.lin.emplace_back(0.
f, 0.
f);
65 b.linGanged.emplace_back(0.
f, 0.
f);
68 b.lin.emplace_back(0.
f, 0.
f);
69 b.linGanged.emplace_back(0.
f, 0.
f);
72 std::cout<<
"Array size is zero in " << calibArray <<
" at (i,j)=(" << moduleHash <<
"," << j <<
")\n";