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={})
auto consumesFrom(ESInputTag const &tag)
SiStripDelayESProducer(const edm::ParameterSet &)
Log< level::Error, false > LogError
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
TokenSign(edm::ESConsumesCollector &cc, const std::string &recordName, const std::string &label, int sumSign)
Log< level::Info, false > LogInfo
std::unique_ptr< SiStripDelay > produce(const SiStripDelayRcd &)
~SiStripDelayESProducer() override
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
std::vector< TokenSign > tokens_
edm::ESGetToken< SiStripBaseDelay, SiStripBaseDelayRcd > token_