41 auto cc = setWhatProduced(
this);
43 auto apvGainLabels = iConfig.getParameter<std::vector<edm::ParameterSet> >(
"APVGain");
44 if (apvGainLabels.empty()) {
45 throw cms::Exception(
"Configuration") <<
"Got empty APVGain vector, but need at least one entry";
49 for (
const auto& gainPSet : apvGainLabels) {
51 tokenLabels_.emplace_back(
53 factor_.push_back_norm(gainPSet.getUntrackedParameter<
double>(
"NormalizationFactor", 1.));
56 factor_.resetIfBadNorm();