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()) {
45 std::vector<int> laserWavelengths(_params.
getUntrackedParameter<std::vector<int> >(
"laserWavelengths"));
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"));
154 if (status ==
kGood && sLaser) {
156 sLaser->use(wlItr->second);
164 if (status ==
kGood && sLed) {
167 for (map<int, unsigned>::iterator wlItr(
ledWlToME_.begin()); wlItr !=
ledWlToME_.end(); ++wlItr) {
168 sLed->
use(wlItr->second);
177 if (status ==
kGood && sTestPulse) {
178 for (map<int, unsigned>::iterator gainItr(
tpGainToME_.begin()); gainItr !=
tpGainToME_.end(); ++gainItr) {
179 sTestPulse->
use(gainItr->second);
187 if (status ==
kGood && sPedestal) {
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) {
217 if (status ==
kGood && sLaserPN) {
219 sLaserPN->
use(wlItr->second);
227 if (status ==
kGood && sLedPN) {
228 for (map<int, unsigned>::iterator wlItr(
ledWlToME_.begin()); wlItr !=
ledWlToME_.end(); ++wlItr) {
229 sLedPN->
use(wlItr->second);
237 if (status ==
kGood && sTestPulsePN) {
239 sTestPulsePN->
use(gainItr->second);
247 if (status ==
kGood && sPedestalPN) {
250 sPedestalPN->
use(gainItr->second);
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)
uint16_t *__restrict__ id
MESet & at(const std::string &key)
std::map< int, unsigned > pedPNGainToME_
const_iterator & toNextChannel(EcalElectronicsMapping const *electronicsMap)
double getBinContent(EcalDQMSetupObjects const edso, 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)
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_
EcalDQMSetupObjects const getEcalDQMSetupObjects()
std::map< int, unsigned > tpPNGainToME_
EcalElectronicsMapping const * GetElectronicsMap()
std::map< std::string, std::string > PathReplacements
unsigned getIndex(PathReplacements const &) const
void erase(const std::string &key)