40 setWhatProduced(
this);
41 findingRecord<JobConfigurationGPURecord>();
54 d.add<std::vector<std::string>>(
"ChannelStatusToBeExcluded",
62 "kNonRespondingIsolated",
70 desc_list_flagsMapDBReco.
add<std::vector<std::string>>(
"kGood", {
"kOk",
"kDAC",
"kNoLaser",
"kNoisy"});
71 desc_list_flagsMapDBReco.add<std::vector<std::string>>(
"kNoisy", {
"kNNoisy",
"kFixedG6",
"kFixedG1"});
72 desc_list_flagsMapDBReco.add<std::vector<std::string>>(
"kNeighboursRecovered",
73 {
"kFixedG0",
"kNonRespondingIsolated",
"kDeadVFE"});
74 desc_list_flagsMapDBReco.add<std::vector<std::string>>(
"kTowerRecovered", {
"kDeadFE"});
75 desc_list_flagsMapDBReco.add<std::vector<std::string>>(
"kDead", {
"kNoDataNoTP"});
79 desc.addWithDefaultLabel(
d);
83 auto const& channelStatusToBeExcluded = StringToEnumValue<EcalChannelStatusCode::Code>(
90 std::vector<std::string> recoflagbitsStrings =
p.getParameterNames();
92 std::vector<EcalRecHitParametersGPU::DBStatus>
status;
93 status.reserve(recoflagbitsStrings.size());
94 for (
auto const& recoflagbitsString : recoflagbitsStrings) {
96 std::vector<std::string> dbstatus_s =
p.getParameter<std::vector<std::string>>(recoflagbitsString);
98 std::vector<uint32_t> db_reco_flags;
99 db_reco_flags.reserve(dbstatus_s.size());
100 for (
auto const& dbstatusString : dbstatus_s) {
103 db_reco_flags.push_back(dbstatus);
105 status.emplace_back(static_cast<int>(recoflagbit), db_reco_flags);
108 return std::make_unique<EcalRecHitParametersGPU>(channelStatusToBeExcluded,
status);