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"});
83 auto const& channelStatusToBeExcluded = StringToEnumValue<EcalChannelStatusCode::Code>(
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);
edm::ParameterSet const pset_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
static const IOVSyncValue & beginOfTime()
~EcalRecHitParametersGPUESProducer() override=default
EcalRecHitParametersGPUESProducer(edm::ParameterSet const &)
std::vector< std::string > getParameterNames() const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &)
T getParameter(std::string const &) const
std::unique_ptr< EcalRecHitParametersGPU > produce(JobConfigurationGPURecord const &)