52 if (getLatency.getParameter<
std::string>(
"record") !=
"SiStripLatencyRcd") {
54 "[SiStripLorentzAngleDepESProducer::ctor] No Latency Record found ");
58 if (getPeak.getParameter<
std::string>(
"record") !=
"SiStripLorentzAngleRcd") {
60 "[SiStripLorentzAngleDepESProducer::ctor] No Lorentz Angle Record found ");
65 if (getDeconv.getParameter<
std::string>(
"record") !=
"SiStripLorentzAngleRcd") {
67 "[SiStripLorentzAngleDepESProducer::ctor] No Lorentz Angle Record found ");
70 auto const peakLabel{getPeak.getUntrackedParameter<
std::string>(
"label")};
71 auto const deconvLabel{getDeconv.getUntrackedParameter<
std::string>(
"label")};
75 if (iLatency->singleReadOutMode() == 1) {
76 return get(
"", peakLabel);
78 return get(
"", deconvLabel);
82 edm::LogInfo(
"SiStripLorentzAngleDepESProducer") <<
"ctor" << std::endl;
87 edm::LogInfo(
"SiStripLorentzAngleDepESProducer") <<
"Producer called" << std::endl;
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void addDefault(ParameterSetDescription const &psetDescription)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::shared_ptr< SiStripLorentzAngle const > produce(const SiStripLorentzAngleDepRcd &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Log< level::Info, false > LogInfo
edm::ESGetToken< SiStripLorentzAngle, SiStripLorentzAngleRcd > lorentzAngleToken_
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
SiStripLorentzAngleDepESProducer(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)