23 std::vector<std::string> sourceList(
_params.getUntrackedParameter<std::vector<std::string> >(
"activeSources"));
24 if (
std::find(sourceList.begin(), sourceList.end(),
"Laser") == sourceList.end()) {
28 if (
std::find(sourceList.begin(), sourceList.end(),
"Led") == sourceList.end()) {
32 if (
std::find(sourceList.begin(), sourceList.end(),
"TestPulse") == sourceList.end()) {
36 if (
std::find(sourceList.begin(), sourceList.end(),
"Pedestal") == sourceList.end()) {
48 for (
unsigned iWL(0); iWL != nWL; ++iWL) {
50 if (wl <= 0 || wl >= 5)
51 throw cms::Exception(
"InvalidConfiguration") <<
"Laser Wavelength";
52 repl[
"wl"] = std::to_string(
wl);
62 for (
unsigned iWL(0); iWL != nWL; ++iWL) {
64 if (wl <= 0 || wl >= 5)
66 repl[
"wl"] = std::to_string(
wl);
73 std::vector<int> tpMGPAGains(
_params.getUntrackedParameter<std::vector<int> >(
"testPulseMGPAGains"));
75 unsigned nG(tpMGPAGains.size());
76 for (
unsigned iG(0); iG != nG; ++iG) {
77 int gain(tpMGPAGains[iG]);
80 repl[
"gain"] = std::to_string(
gain);
85 std::vector<int> tpMGPAGainsPN(
_params.getUntrackedParameter<std::vector<int> >(
"testPulseMGPAGainsPN"));
87 unsigned nGPN(tpMGPAGainsPN.size());
88 for (
unsigned iG(0); iG != nGPN; ++iG) {
89 int gain(tpMGPAGainsPN[iG]);
92 repl[
"pngain"] = std::to_string(
gain);
99 std::vector<int> pedMGPAGains(
_params.getUntrackedParameter<std::vector<int> >(
"pedestalMGPAGains"));
101 unsigned nG(pedMGPAGains.size());
102 for (
unsigned iG(0); iG != nG; ++iG) {
103 int gain(pedMGPAGains[iG]);
106 repl[
"gain"] = std::to_string(
gain);
111 std::vector<int> pedMGPAGainsPN(
_params.getUntrackedParameter<std::vector<int> >(
"pedestalMGPAGainsPN"));
113 unsigned nGPN(pedMGPAGainsPN.size());
114 for (
unsigned iG(0); iG != nGPN; ++iG) {
115 int gain(pedMGPAGainsPN[iG]);
118 repl[
"pngain"] = std::to_string(
gain);
130 MESet& meQualitySummary(
MEs_.
at(
"QualitySummary"));
131 MESet& mePNQualitySummary(
MEs_.
at(
"PNQualitySummary"));
155 sLaser->use(wlItr->second);
156 if (sLaser->getBinContent(
id) ==
kBad) {
166 for (map<int, unsigned>::iterator wlItr(
ledWlToME_.begin()); wlItr !=
ledWlToME_.end(); ++wlItr) {
167 sLed->
use(wlItr->second);
177 for (map<int, unsigned>::iterator gainItr(
tpGainToME_.begin()); gainItr !=
tpGainToME_.end(); ++gainItr) {
178 sTestPulse->
use(gainItr->second);
188 sPedestal->
use(gainItr->second);
196 qItr->setBinContent(
status);
199 for (
unsigned iDCC(0); iDCC <
nDCC; ++iDCC) {
202 for (
unsigned iPN(0); iPN < 10; ++iPN) {
213 if (sPNIntegrity.getBinContent(
id) ==
kBad)
218 sLaserPN->
use(wlItr->second);
227 for (map<int, unsigned>::iterator wlItr(
ledWlToME_.begin()); wlItr !=
ledWlToME_.end(); ++wlItr) {
228 sLedPN->
use(wlItr->second);
238 sTestPulsePN->
use(gainItr->second);
249 sPedestalPN->
use(gainItr->second);
257 mePNQualitySummary.setBinContent(
id,
status);