19 minChannelEntries_(0),
20 amplitudeThreshold_(0),
22 PNAmplitudeThreshold_(0),
28 std::vector<int>
MGPAGains(
_params.getUntrackedParameter<std::vector<int> >(
"MGPAGains"));
29 std::vector<int>
MGPAGainsPN(
_params.getUntrackedParameter<std::vector<int> >(
"MGPAGainsPN"));
35 for (
unsigned iG(0); iG != nG; ++iG) {
47 for (
unsigned iG(0); iG != nGPN; ++iG) {
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(
84 _params.getUntrackedParameter<std::vector<double> >(
"PNAmplitudeThreshold"));
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)
void towerAverage_(MESet &, MESet const &, float)
static const int TESTPULSE_LOW_GAIN_RMS_ERROR
#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
std::vector< float > PNAmplitudeThreshold_
const_iterator beginChannel(EcalElectronicsMapping const *electronicsMap) const override
static const int TESTPULSE_MIDDLE_GAIN_MEAN_ERROR
std::vector< float > tolerancePNRMS_
static std::string to_string(const XMLCh *ch)
std::map< int, unsigned > gainToME_
static const int TESTPULSE_MIDDLE_GAIN_RMS_ERROR
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_
EcalElectronicsMapping const * GetElectronicsMap()
EcalDQMSetupObjects const getEcalDQMSetupObjects()
unsigned getIndex(PathReplacements const &) const
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_
EcalTrigTowerConstituentsMap const * GetTrigTowerMap()
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
void setParams(edm::ParameterSet const &) override