19 minChannelEntries_(0),
35 std::vector<int>
MGPAGains(
_params.getUntrackedParameter<std::vector<int> >(
"MGPAGains"));
36 std::vector<int>
MGPAGainsPN(
_params.getUntrackedParameter<std::vector<int> >(
"MGPAGainsPN"));
42 for (
unsigned iG(0); iG != nG; ++iG) {
54 for (
unsigned iG(0); iG != nGPN; ++iG) {
65 std::vector<double> inToleranceRMSEB(
_params.getUntrackedParameter<std::vector<double> >(
"toleranceRMSEB"));
66 std::vector<double> inToleranceRMSEE(
_params.getUntrackedParameter<std::vector<double> >(
"toleranceRMSEE"));
68 for (std::map<int, unsigned>::iterator gainItr(
gainToME_.begin()); gainItr !=
gainToME_.end(); ++gainItr) {
69 unsigned iME(gainItr->second);
71 switch (gainItr->first) {
89 std::vector<double> inTolerancePNRMS(
_params.getUntrackedParameter<std::vector<double> >(
"tolerancePNRMS"));
91 for (std::map<int, unsigned>::iterator gainItr(
pnGainToME_.begin()); gainItr !=
pnGainToME_.end(); ++gainItr) {
92 unsigned iME(gainItr->second);
94 switch (gainItr->first) {
115 MESetMulti& meQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"QualitySummary")));
118 MESetMulti& mePNQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"PNQualitySummary")));
124 for (map<int, unsigned>::iterator gainItr(
gainToME_.begin()); gainItr !=
gainToME_.end(); ++gainItr) {
125 meQuality.
use(gainItr->second);
126 meQualitySummary.
use(gainItr->second);
127 meMean.
use(gainItr->second);
128 meRMS.
use(gainItr->second);
130 sPedestal.
use(gainItr->second);
133 switch (gainItr->first) {
160 float entries(pItr->getBinEntries());
167 float mean(pItr->getBinContent());
168 float rms(pItr->getBinError() *
sqrt(entries));
173 float toleranceRMS_ =
177 qItr->setBinContent(doMask ?
kMBad :
kBad);
185 for (map<int, unsigned>::iterator gainItr(
pnGainToME_.begin()); gainItr !=
pnGainToME_.end(); ++gainItr) {
186 mePNQualitySummary.
use(gainItr->second);
187 mePNRMS.
use(gainItr->second);
189 sPNPedestal.
use(gainItr->second);
192 switch (gainItr->first) {
205 for (
unsigned iDCC(0); iDCC <
nDCC; ++iDCC) {
209 for (
unsigned iPN(0); iPN < 10; ++iPN) {
unsigned memDCCIndex(unsigned)
static const int PEDESTAL_MIDDLE_GAIN_RMS_ERROR
void setParams(edm::ParameterSet const &) override
void towerAverage_(MESet &, MESet const &, float)
#define DEFINE_ECALDQM_WORKER(TYPE)
MESet & at(const std::string &key)
const_iterator & toNextChannel(EcalElectronicsMapping const *electronicsMap)
double getBinContent(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
static const int PEDESTAL_HIGH_GAIN_MEAN_ERROR
const_iterator beginChannel(EcalElectronicsMapping const *electronicsMap) const override
static const int PEDESTAL_LOW_GAIN_RMS_ERROR
static const int PEDESTAL_HIGH_GAIN_RMS_ERROR
static std::string to_string(const XMLCh *ch)
void fill(EcalDQMSetupObjects const edso, DetId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
std::set< std::string > qualitySummaries_
StatusManager const * statusManager_
void setBinContent(EcalDQMSetupObjects const edso, DetId const &_id, double _content) override
std::map< int, unsigned > pnGainToME_
Abs< T >::type abs(const T &t)
double getBinError(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
EcalElectronicsMapping const * GetElectronicsMap()
static const int PEDESTAL_LOW_GAIN_MEAN_ERROR
EcalDQMSetupObjects const getEcalDQMSetupObjects()
unsigned getIndex(PathReplacements const &) const
std::vector< float > toleranceRMSEB_
std::vector< float > tolerancePNRMS_
double getBinEntries(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
void producePlots(ProcessType) override
std::map< int, unsigned > gainToME_
EcalTrigTowerConstituentsMap const * GetTrigTowerMap()
static const int PEDESTAL_MIDDLE_GAIN_MEAN_ERROR
bool maskMatches(DetId const &_id, uint32_t _mask, StatusManager const *_statusManager, EcalTrigTowerConstituentsMap const *trigTowerMap) const override
std::map< std::string, std::string > PathReplacements
const_iterator end(EcalElectronicsMapping const *electronicsMap) const override
std::vector< float > toleranceRMSEE_