59 edm::LogInfo(
"SiStripDelayESProducer") <<
"ctor" << std::endl;
61 for (
const auto&
pset : iConfig.
getParameter<std::vector<edm::ParameterSet>>(
"ListOfRecordToMerge")) {
66 <<
"[SiStripDelayESProducer::ctor] Going to get data from record " <<
recordName <<
" with label " <<
label;
74 <<
"[SiStripDelayESProducer::ctor] Skipping the requested data for unexisting record " <<
recordName 75 <<
" with tag " <<
label << std::endl;
81 edm::LogInfo(
"SiStripDelayESProducer") <<
"produce called" << std::endl;
82 auto delay = std::make_unique<SiStripDelay>();
84 for (
const auto& tokenSign :
tokens_) {
85 const auto& baseDelay = iRecord.
get(tokenSign.token_);
86 delay->fillNewDelay(baseDelay, tokenSign.sumSign_, std::make_pair(tokenSign.recordName_, tokenSign.label_));
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
T getParameter(std::string const &) const
auto consumesFrom(ESInputTag const &tag)
SiStripDelayESProducer(const edm::ParameterSet &)
Log< level::Error, false > LogError
TokenSign(edm::ESConsumesCollector &cc, const std::string &recordName, const std::string &label, int sumSign)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Log< level::Info, false > LogInfo
std::unique_ptr< SiStripDelay > produce(const SiStripDelayRcd &)
~SiStripDelayESProducer() override
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::vector< TokenSign > tokens_
edm::ESGetToken< SiStripBaseDelay, SiStripBaseDelayRcd > token_