42 auto apvGainLabels = iConfig.getParameter<std::vector<edm::ParameterSet> >(
"APVGain");
43 if (apvGainLabels.empty()) {
44 throw cms::Exception(
"Configuration") <<
"Got empty APVGain vector, but need at least one entry";
48 for (
const auto& gainPSet : apvGainLabels) {
51 cc, gainPSet.getParameter<
std::string>(
"Record"), gainPSet.getUntrackedParameter<
std::string>(
"Label",
""));
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::unique_ptr< SiStripGain > produce(const SiStripGainSimRcd &)
edm::ESGetToken< SiStripApvGain, SiStripApvGainSimRcd > token_
~SiStripGainSimESProducer() override
std::vector< TokenLabel > tokenLabels_
auto consumesFrom(ESInputTag const &tag)
void push_back_norm(double norm)
TokenLabel(edm::ESConsumesCollector &cc, std::string record, std::string label)
std::pair< std::string, std::string > recordLabel_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
SiStripGainFactor factor_
double get(const SiStripApvGain &gain, const int apvGainIndex) const
SiStripGainSimESProducer(const edm::ParameterSet &)