19 minChannelEntries_(0),
41 unsigned nG(MGPAGains.size());
42 for (
unsigned iG(0); iG != nG; ++iG) {
43 int gain(MGPAGains[iG]);
44 if (gain != 1 && gain != 6 && gain != 12)
53 unsigned nGPN(MGPAGainsPN.size());
54 for (
unsigned iG(0); iG != nGPN; ++iG) {
55 int gain(MGPAGainsPN[iG]);
56 if (gain != 1 && gain != 16)
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)
T getUntrackedParameter(std::string const &, T const &) const
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)
uint16_t *__restrict__ id
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
std::string to_string(const V &value)
const_iterator beginChannel(EcalElectronicsMapping const *electronicsMap) const override
static const int PEDESTAL_LOW_GAIN_RMS_ERROR
static const int PEDESTAL_HIGH_GAIN_RMS_ERROR
void fill(EcalDQMSetupObjects const edso, DetId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
EcalTrigTowerConstituentsMap const * GetTrigTowerMap()
std::set< std::string > qualitySummaries_
if(conf_.getParameter< bool >("UseStripCablingDB"))
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
static const int PEDESTAL_LOW_GAIN_MEAN_ERROR
EcalDQMSetupObjects const getEcalDQMSetupObjects()
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
EcalElectronicsMapping const * GetElectronicsMap()
std::map< int, unsigned > gainToME_
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
unsigned getIndex(PathReplacements const &) const
std::vector< float > toleranceRMSEE_