13 static std::unique_ptr<MahiFit>
17 const bool iDynamicPed = conf.
getParameter<
bool> (
"dynamicPed");
18 const double iTS4Thresh = conf.
getParameter<
double> (
"ts4Thresh");
21 const bool iApplyTimeSlew = conf.
getParameter<
bool> (
"applyTimeSlew");
23 const double iMeanTime = conf.
getParameter<
double> (
"meanTime");
24 const double iTimeSigmaHPD = conf.
getParameter<
double> (
"timeSigmaHPD");
25 const double iTimeSigmaSiPM = conf.
getParameter<
double> (
"timeSigmaSiPM");
27 const std::vector<int> iActiveBXs = conf.
getParameter<std::vector<int>> (
"activeBXs");
28 const int iNMaxItersMin = conf.
getParameter<
int> (
"nMaxItersMin");
29 const int iNMaxItersNNLS = conf.
getParameter<
int> (
"nMaxItersNNLS");
30 const double iDeltaChiSqThresh = conf.
getParameter<
double> (
"deltaChiSqThresh");
31 const double iNnlsThresh = conf.
getParameter<
double> (
"nnlsThresh");
33 std::unique_ptr<MahiFit>
corr = std::make_unique<MahiFit>();
36 iMeanTime, iTimeSigmaHPD, iTimeSigmaSiPM,
37 iActiveBXs, iNMaxItersMin, iNMaxItersNNLS,
38 iDeltaChiSqThresh, iNnlsThresh);
44 static std::unique_ptr<PulseShapeFitOOTPileupCorrection>
47 const bool iPedestalConstraint = conf.
getParameter<
bool> (
"applyPedConstraint");
48 const bool iTimeConstraint = conf.
getParameter<
bool> (
"applyTimeConstraint");
49 const bool iAddPulseJitter = conf.
getParameter<
bool> (
"applyPulseJitter");
50 const bool iApplyTimeSlew = conf.
getParameter<
bool> (
"applyTimeSlew");
51 const double iTS4Min = conf.
getParameter<
double>(
"ts4Min");
52 const std::vector<double> iTS4Max = conf.
getParameter<std::vector<double>>(
"ts4Max");
53 const double iPulseJitter = conf.
getParameter<
double>(
"pulseJitter");
54 const double iTimeMean = conf.
getParameter<
double>(
"meanTime");
55 const double iTimeSigHPD = conf.
getParameter<
double>(
"timeSigmaHPD");
56 const double iTimeSigSiPM = conf.
getParameter<
double>(
"timeSigmaSiPM");
57 const double iPedMean = conf.
getParameter<
double>(
"meanPed");
58 const double iTMin = conf.
getParameter<
double>(
"timeMin");
59 const double iTMax = conf.
getParameter<
double>(
"timeMax");
60 const std::vector<double> its4Chi2 = conf.
getParameter<std::vector<double>>(
"ts4chi2");
61 const int iFitTimes = conf.
getParameter<
int> (
"fitTimes");
63 if (iTimeConstraint) assert(iTimeSigHPD);
64 if (iTimeConstraint) assert(iTimeSigSiPM);
66 std::unique_ptr<PulseShapeFitOOTPileupCorrection>
corr =
67 std::make_unique<PulseShapeFitOOTPileupCorrection>();
69 corr->setPUParams(iPedestalConstraint, iTimeConstraint, iAddPulseJitter,
70 iApplyTimeSlew, iTS4Min, iTS4Max,
72 iTimeMean,iTimeSigHPD, iTimeSigSiPM, iPedMean,
73 iTMin, iTMax, its4Chi2,
80 static std::unique_ptr<HcalDeterministicFit>
83 const bool iApplyTimeSlew = conf.
getParameter<
bool> (
"applyTimeSlewM3");
84 const int iTimeSlewParsType = conf.
getParameter<
int> (
"timeSlewParsType");
85 const double irespCorrM3 = conf.
getParameter<
double>(
"respCorrM3");
87 std::unique_ptr<HcalDeterministicFit>
fit = std::make_unique<HcalDeterministicFit>();
97 std::unique_ptr<AbsHBHEPhase1Algo>
100 std::unique_ptr<AbsHBHEPhase1Algo>
algo;
104 if (className ==
"SimpleHBHEPhase1Algo")
106 std::unique_ptr<MahiFit> mahi;
107 std::unique_ptr<PulseShapeFitOOTPileupCorrection> m2;
108 std::unique_ptr<HcalDeterministicFit> detFit;
113 "SimpleHBHEPhase1Algo does not allow both Mahi and Method 2 to be turned on together.";
122 algo = std::unique_ptr<AbsHBHEPhase1Algo>(
T getParameter(std::string const &) const
std::unique_ptr< AbsHBHEPhase1Algo > parseHBHEPhase1AlgoDescription(const edm::ParameterSet &ps)
static std::unique_ptr< PulseShapeFitOOTPileupCorrection > parseHBHEMethod2Description(const edm::ParameterSet &conf)
static std::unique_ptr< MahiFit > parseHBHEMahiDescription(const edm::ParameterSet &conf)
static std::unique_ptr< HcalDeterministicFit > parseHBHEMethod3Description(const edm::ParameterSet &conf)
std::string className(const T &t)