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"));
156 sLaser->use(wlItr->second);
167 for (map<int, unsigned>::iterator wlItr(
ledWlToME_.begin()); wlItr !=
ledWlToME_.end(); ++wlItr) {
168 sLed->
use(wlItr->second);
178 for (map<int, unsigned>::iterator gainItr(
tpGainToME_.begin()); gainItr !=
tpGainToME_.end(); ++gainItr) {
179 sTestPulse->
use(gainItr->second);
189 sPedestal->
use(gainItr->second);
197 qItr->setBinContent(
status);
200 for (
unsigned iDCC(0); iDCC <
nDCC; ++iDCC) {
203 for (
unsigned iPN(0); iPN < 10; ++iPN) {
219 sLaserPN->
use(wlItr->second);
228 for (map<int, unsigned>::iterator wlItr(
ledWlToME_.begin()); wlItr !=
ledWlToME_.end(); ++wlItr) {
229 sLedPN->
use(wlItr->second);
239 sTestPulsePN->
use(gainItr->second);
250 sPedestalPN->
use(gainItr->second);