1 #include "../interface/PedestalClient.h"
20 minChannelEntries_(0),
45 unsigned nG(MGPAGains.size());
46 for(
unsigned iG(0); iG != nG; ++iG){
47 int gain(MGPAGains[iG]);
48 if(gain != 1 && gain != 6 && gain != 12)
throw cms::Exception(
"InvalidConfiguration") <<
"MGPA gain";
55 MESetMulti const& pnPedestal(static_cast<MESetMulti const&>(
sources_.at(
"PNPedestal")));
56 unsigned nGPN(MGPAGainsPN.size());
57 for(
unsigned iG(0); iG != nGPN; ++iG){
58 int gain(MGPAGainsPN[iG]);
59 if(gain != 1 && gain != 16)
throw cms::Exception(
"InvalidConfiguration") <<
"PN MGPA gain";
66 std::vector<double> inToleranceRMS(_params.
getUntrackedParameter<std::vector<double> >(
"toleranceRMS"));
68 for(std::map<int, unsigned>::iterator gainItr(
gainToME_.begin()); gainItr !=
gainToME_.end(); ++gainItr){
69 unsigned iME(gainItr->second);
71 switch(gainItr->first){
85 std::vector<double> inTolerancePNRMS(_params.
getUntrackedParameter<std::vector<double> >(
"tolerancePNRMS"));
87 for(std::map<int, unsigned>::iterator gainItr(
pnGainToME_.begin()); gainItr !=
pnGainToME_.end(); ++gainItr){
88 unsigned iME(gainItr->second);
90 switch(gainItr->first){
110 MESetMulti& meQuality(static_cast<MESetMulti&>(
MEs_.at(
"Quality")));
111 MESetMulti& meQualitySummary(static_cast<MESetMulti&>(
MEs_.at(
"QualitySummary")));
114 MESetMulti& mePNQualitySummary(static_cast<MESetMulti&>(
MEs_.at(
"PNQualitySummary")));
118 MESetMulti const& sPNPedestal(static_cast<MESetMulti const&>(
sources_.at(
"PNPedestal")));
120 for(map<int, unsigned>::iterator gainItr(
gainToME_.begin()); gainItr !=
gainToME_.end(); ++gainItr){
121 meQuality.
use(gainItr->second);
122 meQualitySummary.
use(gainItr->second);
123 meMean.
use(gainItr->second);
124 meRMS.
use(gainItr->second);
126 sPedestal.
use(gainItr->second);
129 switch(gainItr->first){
150 DetId id(qItr->getId());
156 float entries(pItr->getBinEntries());
163 float mean(pItr->getBinContent());
170 qItr->setBinContent(doMask ?
kMBad :
kBad);
179 mePNQualitySummary.
use(gainItr->second);
180 mePNRMS.
use(gainItr->second);
182 sPNPedestal.
use(gainItr->second);
185 switch(gainItr->first){
198 for(
unsigned iDCC(0); iDCC <
nDCC; ++iDCC){
200 if(
memDCCIndex(iDCC + 1) == unsigned(-1))
continue;
202 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
void setBinContent(DetId const &_id, double _content) override
std::vector< float > toleranceRMS_
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
std::string to_string(const T &t)
std::set< std::string > qualitySummaries_
bool maskMatches(DetId const &_id, uint32_t _mask, StatusManager const *_statusManager) const override
StatusManager const * statusManager_
double getBinEntries(DetId const &_id, int _bin=0) const override
std::map< int, unsigned > pnGainToME_
Abs< T >::type abs(const T &t)
const_iterator beginChannel() const override
double getBinContent(DetId const &_id, int _bin=0) const override
static const int PEDESTAL_LOW_GAIN_MEAN_ERROR
std::vector< float > tolerancePNRMS_
const_iterator end() const override
void producePlots(ProcessType) 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