46 findingRecord<SiStripLatencyRcd>();
65 auto latency = std::make_unique<SiStripLatency>();
68 const auto& detInfos = reader->getAllData();
70 if ( ! detInfos.empty() ) {
72 edm::LogInfo(
"SiStripLatencyGenerator") <<
"detId = " << detInfos.rbegin()->first <<
" apv = " << 6
80 edm::LogError(
"SiStripLatencyGenerator") <<
"Error: detInfo map is empty. Cannot get the last detId.";
T getParameter(std::string const &) const
static const IOVSyncValue & endOfTime()
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
~SiStripLatencyFakeESSource() override
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &iov, edm::ValidityInterval &iValidity) override
static const IOVSyncValue & beginOfTime()
ReturnType produce(const SiStripLatencyRcd &)
SiStripLatencyFakeESSource(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
std::unique_ptr< SiStripLatency > ReturnType