CMS 3D CMS Logo

EcalRecHitParametersGPUESProducer.cc
Go to the documentation of this file.
1 #include <array>
2 #include <tuple>
3 #include <utility>
4 
18 
20 public:
22  ~EcalRecHitParametersGPUESProducer() override = default;
23 
25  std::unique_ptr<EcalRecHitParametersGPU> produce(JobConfigurationGPURecord const&);
26 
27 protected:
29  const edm::IOVSyncValue&,
30  edm::ValidityInterval&) override;
31 
32 private:
34 };
35 
37  setWhatProduced(this);
38  findingRecord<JobConfigurationGPURecord>();
39 }
40 
42  const edm::IOVSyncValue& iTime,
43  edm::ValidityInterval& oInterval) {
45 }
46 
49 
50  //---- db statuses to be exluded from reconstruction
51  d.add<std::vector<std::string>>("ChannelStatusToBeExcluded",
52  {
53  "kDAC",
54  "kNoisy",
55  "kNNoisy",
56  "kFixedG6",
57  "kFixedG1",
58  "kFixedG0",
59  "kNonRespondingIsolated",
60  "kDeadVFE",
61  "kDeadFE",
62  "kNoDataNoTP",
63  });
64 
65  // reco flags association to DB flag
66  edm::ParameterSetDescription desc_list_flagsMapDBReco;
67  desc_list_flagsMapDBReco.add<std::vector<std::string>>("kGood", {"kOk", "kDAC", "kNoLaser", "kNoisy"});
68  desc_list_flagsMapDBReco.add<std::vector<std::string>>("kNoisy", {"kNNoisy", "kFixedG6", "kFixedG1"});
69  desc_list_flagsMapDBReco.add<std::vector<std::string>>("kNeighboursRecovered",
70  {"kFixedG0", "kNonRespondingIsolated", "kDeadVFE"});
71  desc_list_flagsMapDBReco.add<std::vector<std::string>>("kTowerRecovered", {"kDeadFE"});
72  desc_list_flagsMapDBReco.add<std::vector<std::string>>("kDead", {"kNoDataNoTP"});
73 
74  d.add<edm::ParameterSetDescription>("flagsMapDBReco", desc_list_flagsMapDBReco);
75 
76  desc.addWithDefaultLabel(d);
77 }
78 
79 std::unique_ptr<EcalRecHitParametersGPU> EcalRecHitParametersGPUESProducer::produce(JobConfigurationGPURecord const&) {
80  return std::make_unique<EcalRecHitParametersGPU>(pset_);
81 }
82 
EcalRecHitParametersGPUESProducer::pset_
const edm::ParameterSet pset_
Definition: EcalRecHitParametersGPUESProducer.cc:33
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
EcalRecHitParametersGPUESProducer::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition: EcalRecHitParametersGPUESProducer.cc:41
ESTransientHandle.h
eventsetuprecord_registration_macro.h
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::ValidityInterval
Definition: ValidityInterval.h:28
ESProducer.h
typelookup.h
edm::EventSetupRecordIntervalFinder
Definition: EventSetupRecordIntervalFinder.h:33
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
EcalRecHitParametersGPUESProducer
Definition: EcalRecHitParametersGPUESProducer.cc:19
MakerMacros.h
ReusableObjectHolder.h
JobConfigurationGPURecord
Definition: JobConfigurationGPURecord.h:6
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
DEFINE_FWK_EVENTSETUP_SOURCE
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
Definition: SourceFactory.h:91
EventSetupRecordIntervalFinder.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
JobConfigurationGPURecord.h
SourceFactory.h
edm::ParameterSet
Definition: ParameterSet.h:47
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
EcalRecHitParametersGPUESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &)
Definition: EcalRecHitParametersGPUESProducer.cc:47
EcalRecHitParametersGPUESProducer::~EcalRecHitParametersGPUESProducer
~EcalRecHitParametersGPUESProducer() override=default
EcalRecHitParametersGPU.h
ModuleFactory.h
cond::ValidityInterval
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:17
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
EcalRecHitParametersGPUESProducer::EcalRecHitParametersGPUESProducer
EcalRecHitParametersGPUESProducer(edm::ParameterSet const &)
Definition: EcalRecHitParametersGPUESProducer.cc:36
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
edm::ESProducer
Definition: ESProducer.h:104
ESProductHost.h
ztail.d
d
Definition: ztail.py:151
ParameterSet.h
EcalRecHitParametersGPUESProducer::produce
std::unique_ptr< EcalRecHitParametersGPU > produce(JobConfigurationGPURecord const &)
Definition: EcalRecHitParametersGPUESProducer.cc:79
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27