Definition at line 28 of file SiStripGainFactor.h.
32 std::vector<uint32_t> DetIds;
33 gain.getDetIds(DetIds);
35 double SumOfGains = 0.;
37 for (uint32_t detid : DetIds) {
41 for (std::vector<float>::const_iterator apvit = detRange.first; apvit != detRange.second; apvit++) {
42 SumOfGains += (*apvit);
46 <<
"detid/component: " << detid <<
"/" << iComp <<
" gain factor " << *apvit;
52 if (SumOfGains > 0 &&
NGains > 0) {
53 NFactor = SumOfGains /
NGains;
56 "SiStripGainESProducer::produce() - ERROR: empty set of gain values received. Cannot compute "
57 "normalization factor. Assuming 1 for such factor")
65 NFactor =
norm_[apvGainIndex];
70 <<
" putting A SiStrip Gain object in eventSetup with normalization factor " << NFactor;
References automaticMode_, PedestalClient_cfi::gain, NGains, norm_, and printdebug_.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), util.rrapi.RRApi::data(), rrapi.RRApi::data(), data_sources.json_list::first(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), data_sources.json_list::indices(), data_sources.json_list::last(), SiStripGainSimESProducer::produce(), SiStripGainESProducer::produce(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), util.rrapi.RRApi::templates(), rrapi.RRApi::templates(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().