20 minChannelEntries_(0),
46 unsigned nG(MGPAGains.size());
47 for(
unsigned iG(0); iG != nG; ++iG){
48 int gain(MGPAGains[iG]);
49 if(gain != 1 && gain != 6 && gain != 12)
throw cms::Exception(
"InvalidConfiguration") <<
"MGPA gain";
50 repl[
"gain"] = std::to_string(gain);
56 MESetMulti const& pnPedestal(static_cast<MESetMulti const&>(
sources_.at(
"PNPedestal")));
57 unsigned nGPN(MGPAGainsPN.size());
58 for(
unsigned iG(0); iG != nGPN; ++iG){
59 int gain(MGPAGainsPN[iG]);
60 if(gain != 1 && gain != 16)
throw cms::Exception(
"InvalidConfiguration") <<
"PN MGPA gain";
61 repl[
"pngain"] = std::to_string(gain);
68 std::vector<double> inToleranceRMSEB(_params.
getUntrackedParameter<std::vector<double> >(
"toleranceRMSEB"));
69 std::vector<double> inToleranceRMSEE(_params.
getUntrackedParameter<std::vector<double> >(
"toleranceRMSEE"));
71 for(std::map<int, unsigned>::iterator gainItr(
gainToME_.begin()); gainItr !=
gainToME_.end(); ++gainItr){
72 unsigned iME(gainItr->second);
74 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){
114 MESetMulti& meQuality(static_cast<MESetMulti&>(
MEs_.at(
"Quality")));
115 MESetMulti& meQualitySummary(static_cast<MESetMulti&>(
MEs_.at(
"QualitySummary")));
118 MESetMulti& mePNQualitySummary(static_cast<MESetMulti&>(
MEs_.at(
"PNQualitySummary")));
122 MESetMulti const& sPNPedestal(static_cast<MESetMulti const&>(
sources_.at(
"PNPedestal")));
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));
176 qItr->setBinContent(doMask ?
kMBad :
kBad);
185 mePNQualitySummary.
use(gainItr->second);
186 mePNRMS.
use(gainItr->second);
188 sPNPedestal.
use(gainItr->second);
191 switch(gainItr->first){
204 for(
unsigned iDCC(0); iDCC <
nDCC; ++iDCC){
206 if(
memDCCIndex(iDCC + 1) == unsigned(-1))
continue;
208 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)
static const int PEDESTAL_HIGH_GAIN_MEAN_ERROR
double getBinContent(DetId const &_id, int _bin=0) const override
void setBinContent(DetId const &_id, double _content) override
double getBinError(DetId const &_id, int _bin=0) const override
static const int PEDESTAL_LOW_GAIN_RMS_ERROR
const_iterator & toNextChannel()
void fill(DetId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
static const int PEDESTAL_HIGH_GAIN_RMS_ERROR
const_iterator beginChannel() const override
std::set< std::string > qualitySummaries_
StatusManager const * statusManager_
std::map< int, unsigned > pnGainToME_
Abs< T >::type abs(const T &t)
bool maskMatches(DetId const &_id, uint32_t _mask, StatusManager const *_statusManager) const override
const_iterator end() const override
static const int PEDESTAL_LOW_GAIN_MEAN_ERROR
std::vector< float > toleranceRMSEB_
std::vector< float > tolerancePNRMS_
void producePlots(ProcessType) override
double getBinEntries(DetId const &_id, int _bin=0) const override
std::map< int, unsigned > gainToME_
static const int PEDESTAL_MIDDLE_GAIN_MEAN_ERROR
std::map< std::string, std::string > PathReplacements
unsigned getIndex(PathReplacements const &) const
std::vector< float > toleranceRMSEE_