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()) {
47 unsigned nWL(laserWavelengths.size());
48 for (
unsigned iWL(0); iWL != nWL; ++iWL) {
49 int wl(laserWavelengths[iWL]);
50 if (wl <= 0 || wl >= 5)
51 throw cms::Exception(
"InvalidConfiguration") <<
"Laser Wavelength";
52 repl[
"wl"] = std::to_string(wl);
61 unsigned nWL(ledWavelengths.size());
62 for (
unsigned iWL(0); iWL != nWL; ++iWL) {
63 int wl(ledWavelengths[iWL]);
64 if (wl <= 0 || wl >= 5)
66 repl[
"wl"] = std::to_string(wl);
75 unsigned nG(tpMGPAGains.size());
76 for (
unsigned iG(0); iG != nG; ++iG) {
77 int gain(tpMGPAGains[iG]);
78 if (gain != 1 && gain != 6 && gain != 12)
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]);
90 if (gain != 1 && gain != 16)
92 repl[
"pngain"] = std::to_string(gain);
101 unsigned nG(pedMGPAGains.size());
102 for (
unsigned iG(0); iG != nG; ++iG) {
103 int gain(pedMGPAGains[iG]);
104 if (gain != 1 && gain != 6 && gain != 12)
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]);
116 if (gain != 1 && gain != 16)
118 repl[
"pngain"] = std::to_string(gain);
130 MESet& meQualitySummary(
MEs_.at(
"QualitySummary"));
131 MESet& mePNQualitySummary(
MEs_.at(
"PNQualitySummary"));
153 if (status ==
kGood && sLaser) {
155 sLaser->use(wlItr->second);
156 if (sLaser->getBinContent(
id) ==
kBad) {
163 if (status ==
kGood && sLed) {
166 for (map<int, unsigned>::iterator wlItr(
ledWlToME_.begin()); wlItr !=
ledWlToME_.end(); ++wlItr) {
167 sLed->
use(wlItr->second);
176 if (status ==
kGood && sTestPulse) {
177 for (map<int, unsigned>::iterator gainItr(
tpGainToME_.begin()); gainItr !=
tpGainToME_.end(); ++gainItr) {
178 sTestPulse->
use(gainItr->second);
186 if (status ==
kGood && sPedestal) {
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)
216 if (status ==
kGood && sLaserPN) {
218 sLaserPN->
use(wlItr->second);
226 if (status ==
kGood && sLedPN) {
227 for (map<int, unsigned>::iterator wlItr(
ledWlToME_.begin()); wlItr !=
ledWlToME_.end(); ++wlItr) {
228 sLedPN->
use(wlItr->second);
236 if (status ==
kGood && sTestPulsePN) {
238 sTestPulsePN->
use(gainItr->second);
246 if (status ==
kGood && sPedestalPN) {
249 sPedestalPN->
use(gainItr->second);
257 mePNQualitySummary.setBinContent(
id, status);
std::map< int, unsigned > pedGainToME_
unsigned memDCCIndex(unsigned)
T getUntrackedParameter(std::string const &, T const &) const
void producePlots(ProcessType) override
#define DEFINE_ECALDQM_WORKER(TYPE)
std::map< int, unsigned > pedPNGainToME_
double getBinContent(DetId const &_id, int _bin=0) const override
bool using_(std::string const &_name, ProcessType _type=kJob) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const_iterator & toNextChannel()
CalibrationSummaryClient()
std::map< int, unsigned > ledWlToME_
void setParams(edm::ParameterSet const &) override
std::map< int, unsigned > tpGainToME_
std::set< std::string > qualitySummaries_
std::map< int, unsigned > laserWlToME_
std::map< int, unsigned > tpPNGainToME_
std::map< std::string, std::string > PathReplacements
unsigned getIndex(PathReplacements const &) const