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";
62 for (
unsigned iWL(0); iWL != nWL; ++iWL) {
64 if (wl <= 0 || wl >= 5)
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]);
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]);
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]);
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]);
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);
std::map< int, unsigned > pedGainToME_
unsigned memDCCIndex(unsigned)
void producePlots(ProcessType) override
#define DEFINE_ECALDQM_WORKER(TYPE)
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
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
CalibrationSummaryClient()
static std::string to_string(const XMLCh *ch)
std::map< int, unsigned > ledWlToME_
void setParams(edm::ParameterSet const &) override
std::map< int, unsigned > tpGainToME_
std::set< std::string > qualitySummaries_
bool using_(std::string const &_name, ProcessType _type=kJob) const
std::map< int, unsigned > laserWlToME_
EcalElectronicsMapping const * GetElectronicsMap()
EcalDQMSetupObjects const getEcalDQMSetupObjects()
unsigned getIndex(PathReplacements const &) const
std::map< int, unsigned > tpPNGainToME_
std::map< std::string, std::string > PathReplacements
void erase(const std::string &key)