31 edm::LogInfo(
"SiStripDelayESProducer") <<
"ctor" << std::endl;
38 edm::LogInfo(
"SiStripDelayESProducer") <<
"produce called" << std::endl;
39 auto delay = std::make_unique<SiStripDelay>();
48 for( Parameters::iterator itToGet =
toGet.begin(); itToGet !=
toGet.end(); ++itToGet ) {
49 recordName = itToGet->getParameter<
std::string>(
"Record");
50 label = itToGet->getParameter<
std::string>(
"Label");
51 sumSign = itToGet->getParameter<
int>(
"SumSign");
53 edm::LogInfo(
"SiStripDelayESProducer") <<
"[SiStripDelayESProducer::produce] Getting data from record " << recordName <<
" with label " << label << std::endl;
55 if( recordName==
"SiStripBaseDelayRcd" ) {
57 delay->fillNewDelay( *(baseDelay.
product()), sumSign, std::make_pair(recordName, label) );
59 edm::LogError(
"SiStripDelayESProducer") <<
"[SiStripDelayESProducer::produce] Skipping the requested data for unexisting record " << recordName <<
" with tag " << label << std::endl;
SiStripDelayESProducer(const edm::ParameterSet &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
const DepRecordT getRecord() const
std::unique_ptr< SiStripDelay > produce(const SiStripDelayRcd &)
T const * product() const
std::vector< edm::ParameterSet > Parameters