12#ifndef ChargeCalibrationBundle_h
13#define ChargeCalibrationBundle_h
29 std::vector<PixelChargeCalib::Thresholds>
threshold;
32 std::vector<PixelChargeCalib::LegacyFitParameters>
params;
34 std::vector<PixelChargeCalib::LinearFitParameters>
lin;
35 std::vector<PixelChargeCalib::LinearFitParameters>
linGanged;
36 std::vector<PixelChargeCalib::Resolutions>
totRes;
57 for (
int i = start;i!=end;++i){
58 const float tmpcharge = relevantArray.back().Q(i);
59 if (tmpcharge > chargeLimit){
75 targetArray.emplace_back(0.f,0.f);
81 static constexpr int dx = 5;
82 const float x1 = idxLimit;
83 const float x2 = idxLimit-dx;
84 const float y1 = readArray.back().Q(x1);
85 const float y2 = readArray.back().Q(x2);
86 targetArray.emplace_back((y1-y2)/dx, (y2*x1-y1*x2)/dx);
Structs for holding charge calibration parameterisation and data.
std::vector< IBLCalibration > IBLModule
std::vector< PixelChargeCalib::LinearFitParameters > linGanged
std::vector< PixelChargeCalib::Thresholds > thresholdGanged
std::vector< PixelChargeCalib::Thresholds > threshold
PixelChargeCalibCondData::CalibrationStrategy calibrationType
ChargeCalibrationBundle(size_t n, bool lut=false, bool txt=false)
constructor with reserve for the vectors, n = number of frontends
std::vector< PixelChargeCalib::LinearFitParameters > lin
std::vector< PixelChargeCalib::LegacyFitParameters > paramsGanged
int idxAtChargeLimit(float chargeLimit, InDetDD::PixelDiodeType type, int start, int end) const
void insertLinearParams(InDetDD::PixelDiodeType type, int idxLimit)
std::vector< PixelChargeCalib::Thresholds > thresholdLong
std::vector< PixelChargeCalib::Resolutions > totRes
PixelChargeCalibCondData::IBLModule tot2Charges
std::vector< PixelChargeCalib::LegacyFitParameters > params
Tell the compiler to optimize assuming that FP may trap.
#define CXXUTILS_TRAPPING_FP