Go to the source code of this file.
Definition at line 80 of file parseHFPhase1AlgoDescription.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::ifValue(), or, and mitigatedMETSequence_cff::U.
Referenced by HFPhase1Reconstructor::fillDescriptions().
83 std::vector<double> allPass{-10000.0, 10000.0, -10000.0, 10000.0};
84 desc.
add<std::vector<double> >(
"tlimits", allPass);
85 desc.
add<std::vector<double> >(
"energyWeights");
86 desc.
add<
unsigned>(
"soiPhase", 1
U);
87 desc.
add<
double>(
"timeShift", 0.0);
88 desc.add<
double>(
"triseIfNoTDC", -100.0);
89 desc.add<
double>(
"tfallIfNoTDC", -101.0);
90 desc.add<
double>(
"minChargeForUndershoot", 1.0e10);
91 desc.add<
double>(
"minChargeForOvershoot", 1.0e10);
92 desc.add<
bool>(
"alwaysCalculateQAsymmetry",
true);
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition at line 10 of file parseHFPhase1AlgoDescription.cc.
References ecalcalib_dqm_sourceclient-live_cfg::algo, HFPhase1Reconstructor_cfi::alwaysCalculateQAsymmetry, className(), HLT_2018_cff::energyWeights, edm::ParameterSet::getParameter(), mps_fire::i, HFPhase1Reconstructor_cfi::minChargeForOvershoot, HFPhase1Reconstructor_cfi::minChargeForUndershoot, HFAnodeStatus::N_POSSIBLE_STATES, HLT_2018_cff::rejectAllFailures, HLT_2018_cff::soiPhase, AlCaHLTBitMon_QueryRunRegistry::string, HLT_2018_cff::tfallIfNoTDC, HLT_2018_cff::timeShift, HLT_2018_cff::tlimits, and HLT_2018_cff::triseIfNoTDC.
11 std::unique_ptr<AbsHFPhase1Algo>
algo;
15 const bool isHFSimpleTimeCheck = className ==
"HFSimpleTimeCheck";
16 if (isHFSimpleTimeCheck || className ==
"HFFlexibleTimeCheck") {
17 const std::vector<double>& energyWeightsVec = ps.
getParameter<std::vector<double> >(
"energyWeights");
28 const unsigned sz =
sizeof(
energyWeights) /
sizeof(energyWeights[0][0]);
30 if (energyWeightsVec.size() == sz) {
31 std::pair<float, float>
tlimits[2];
32 if (isHFSimpleTimeCheck) {
34 const std::vector<double>& tlimitsVec = ps.
getParameter<std::vector<double> >(
"tlimits");
35 if (tlimitsVec.size() == 4) {
36 tlimits[0] = std::pair<float, float>(tlimitsVec[0], tlimitsVec[1]);
37 tlimits[1] = std::pair<float, float>(tlimitsVec[2], tlimitsVec[3]);
42 tlimits[0] = std::pair<float, float>(-FLT_MAX, FLT_MAX);
43 tlimits[1] = tlimits[0];
47 float*
to = &energyWeights[0][0];
48 for (
unsigned i = 0;
i < sz; ++
i)
49 to[
i] = energyWeightsVec[
i];
52 if (isHFSimpleTimeCheck)
59 minChargeForUndershoot,
60 minChargeForOvershoot,
62 alwaysCalculateQAsymmetry));
70 minChargeForUndershoot,
71 minChargeForOvershoot,
73 alwaysCalculateQAsymmetry));
T getParameter(std::string const &) const
alwaysCalculateQAsymmetry
std::string className(const T &t)