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
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
static const IOVSyncValue & endOfTime()
~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 &)
std::unique_ptr< SiStripLatency > ReturnType
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)