19 minChannelEntries_(0),
20 amplitudeThreshold_(0),
22 PNAmplitudeThreshold_(0),
34 unsigned nG(MGPAGains.size());
35 for (
unsigned iG(0); iG != nG; ++iG) {
36 int gain(MGPAGains[iG]);
37 if (gain != 1 && gain != 6 && gain != 12)
39 repl[
"gain"] = std::to_string(gain);
46 unsigned nGPN(MGPAGainsPN.size());
47 for (
unsigned iG(0); iG != nGPN; ++iG) {
48 int gain(MGPAGainsPN[iG]);
49 if (gain != 1 && gain != 16)
51 repl[
"pngain"] = std::to_string(gain);
58 std::vector<double> inAmplitudeThreshold(_params.
getUntrackedParameter<std::vector<double> >(
"amplitudeThreshold"));
59 std::vector<double> inToleranceRMS(_params.
getUntrackedParameter<std::vector<double> >(
"toleranceRMS"));
61 for (std::map<int, unsigned>::iterator gainItr(
gainToME_.begin()); gainItr !=
gainToME_.end(); ++gainItr) {
62 unsigned iME(gainItr->second);
64 switch (gainItr->first) {
83 std::vector<double> inPNAmplitudeThreshold(
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) {
112 MESetMulti& meAmplitudeRMS(static_cast<MESetMulti&>(
MEs_.
at(
"AmplitudeRMS")));
113 MESetMulti& meQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"QualitySummary")));
114 MESetMulti& mePNQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"PNQualitySummary")));
119 for (map<int, unsigned>::iterator gainItr(
gainToME_.begin()); gainItr !=
gainToME_.end(); ++gainItr) {
120 meQuality.
use(gainItr->second);
121 meQualitySummary.
use(gainItr->second);
122 meAmplitudeRMS.
use(gainItr->second);
124 sAmplitude.
use(gainItr->second);
127 switch (gainItr->first) {
156 float entries(aItr->getBinEntries());
163 float amp(aItr->getBinContent());
164 float rms(aItr->getBinError() *
sqrt(entries));
166 rItr->setBinContent(
rms);
169 qItr->setBinContent(doMask ?
kMBad :
kBad);
177 for (map<int, unsigned>::iterator gainItr(
pnGainToME_.begin()); gainItr !=
pnGainToME_.end(); ++gainItr) {
178 mePNQualitySummary.
use(gainItr->second);
180 sPNAmplitude.
use(gainItr->second);
183 switch (gainItr->first) {
196 for (
unsigned iDCC(0); iDCC <
nDCC; ++iDCC) {
200 for (
unsigned iPN(0); iPN < 10; ++iPN) {
unsigned memDCCIndex(unsigned)
T getUntrackedParameter(std::string const &, T const &) const
void towerAverage_(MESet &, MESet const &, float)
static const int TESTPULSE_LOW_GAIN_RMS_ERROR
#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
std::vector< float > PNAmplitudeThreshold_
const_iterator beginChannel(EcalElectronicsMapping const *electronicsMap) const override
static const int TESTPULSE_MIDDLE_GAIN_MEAN_ERROR
std::vector< float > tolerancePNRMS_
std::map< int, unsigned > gainToME_
static const int TESTPULSE_MIDDLE_GAIN_RMS_ERROR
EcalTrigTowerConstituentsMap const * GetTrigTowerMap()
std::set< std::string > qualitySummaries_
StatusManager const * statusManager_
void setBinContent(EcalDQMSetupObjects const edso, DetId const &_id, double _content) override
static const int TESTPULSE_HIGH_GAIN_RMS_ERROR
double getBinError(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
void producePlots(ProcessType) override
std::map< int, unsigned > pnGainToME_
EcalDQMSetupObjects const getEcalDQMSetupObjects()
static const int TESTPULSE_LOW_GAIN_MEAN_ERROR
double getBinEntries(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
std::vector< float > toleranceRMS_
std::vector< float > amplitudeThreshold_
EcalElectronicsMapping const * GetElectronicsMap()
static const int TESTPULSE_HIGH_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
void setParams(edm::ParameterSet const &) override