14 const bool iDynamicPed = conf.
getParameter<
bool>(
"dynamicPed");
15 const double iTS4Thresh = conf.
getParameter<
double>(
"ts4Thresh");
18 const bool iApplyTimeSlew = conf.
getParameter<
bool>(
"applyTimeSlew");
20 const bool iCalculateArrivalTime = conf.
getParameter<
bool>(
"calculateArrivalTime");
21 const double iMeanTime = conf.
getParameter<
double>(
"meanTime");
22 const double iTimeSigmaHPD = conf.
getParameter<
double>(
"timeSigmaHPD");
23 const double iTimeSigmaSiPM = conf.
getParameter<
double>(
"timeSigmaSiPM");
25 const std::vector<int> iActiveBXs = conf.
getParameter<std::vector<int>>(
"activeBXs");
26 const int iNMaxItersMin = conf.
getParameter<
int>(
"nMaxItersMin");
27 const int iNMaxItersNNLS = conf.
getParameter<
int>(
"nMaxItersNNLS");
28 const double iDeltaChiSqThresh = conf.
getParameter<
double>(
"deltaChiSqThresh");
29 const double iNnlsThresh = conf.
getParameter<
double>(
"nnlsThresh");
31 std::unique_ptr<MahiFit>
corr = std::make_unique<MahiFit>();
33 corr->setParameters(iDynamicPed,
38 iCalculateArrivalTime,
52 const bool iPedestalConstraint = conf.
getParameter<
bool>(
"applyPedConstraint");
53 const bool iTimeConstraint = conf.
getParameter<
bool>(
"applyTimeConstraint");
54 const bool iAddPulseJitter = conf.
getParameter<
bool>(
"applyPulseJitter");
55 const bool iApplyTimeSlew = conf.
getParameter<
bool>(
"applyTimeSlew");
56 const double iTS4Min = conf.
getParameter<
double>(
"ts4Min");
57 const std::vector<double> iTS4Max = conf.
getParameter<std::vector<double>>(
"ts4Max");
58 const double iPulseJitter = conf.
getParameter<
double>(
"pulseJitter");
59 const double iTimeMean = conf.
getParameter<
double>(
"meanTime");
60 const double iTimeSigHPD = conf.
getParameter<
double>(
"timeSigmaHPD");
61 const double iTimeSigSiPM = conf.
getParameter<
double>(
"timeSigmaSiPM");
62 const double iPedMean = conf.
getParameter<
double>(
"meanPed");
63 const double iTMin = conf.
getParameter<
double>(
"timeMin");
64 const double iTMax = conf.
getParameter<
double>(
"timeMax");
65 const std::vector<double> its4Chi2 = conf.
getParameter<std::vector<double>>(
"ts4chi2");
66 const int iFitTimes = conf.
getParameter<
int>(
"fitTimes");
73 std::unique_ptr<PulseShapeFitOOTPileupCorrection>
corr = std::make_unique<PulseShapeFitOOTPileupCorrection>();
75 corr->setPUParams(iPedestalConstraint,
96 const bool iApplyTimeSlew = conf.
getParameter<
bool>(
"applyTimeSlewM3");
97 const int iTimeSlewParsType = conf.
getParameter<
int>(
"timeSlewParsType");
98 const double irespCorrM3 = conf.
getParameter<
double>(
"respCorrM3");
100 std::unique_ptr<HcalDeterministicFit>
fit = std::make_unique<HcalDeterministicFit>();
108 std::unique_ptr<AbsHBHEPhase1Algo>
algo;
112 if (
className ==
"SimpleHBHEPhase1Algo") {
113 std::unique_ptr<MahiFit> mahi;
114 std::unique_ptr<PulseShapeFitOOTPileupCorrection> m2;
115 std::unique_ptr<HcalDeterministicFit> detFit;
120 <<
"SimpleHBHEPhase1Algo does not allow both Mahi and Method 2 to be turned on together.";
149 desc.
add<
bool>(
"useM2",
false);
150 desc.
add<
bool>(
"useM3",
true);
151 desc.
add<
bool>(
"useMahi",
true);
152 desc.
add<
int>(
"firstSampleShift", 0);
153 desc.
add<
int>(
"samplesToAdd", 2);
154 desc.
add<
double>(
"correctionPhaseNS", 6.0);
155 desc.
add<
double>(
"tdcTimeShift", 0.0);
156 desc.
add<
bool>(
"correctForPhaseContainment",
true);
157 desc.
add<
bool>(
"applyLegacyHBMCorrection",
true);
158 desc.
add<
bool>(
"calculateArrivalTime",
false);