7 : folderName_(_ps.getUntrackedParameter<std::
string>(
"folderName")),
13 ebGainSwitchErrorsToken_(),
14 eeGainSwitchErrorsToken_(),
17 blockSizeErrorsToken_(
37 setElectronicsMap(_es);
50 MEs_[kEBOccupancy] = _ibooker.
book1D(name, name, 36, 610, 646);
53 MEs_[kEBFatal] = _ibooker.
book1D(name, name, 36, 610, 646);
56 MEs_[kEBNonFatal] = _ibooker.
book1D(name, name, 36, 610, 646);
62 MEs_[kEEOccupancy] = _ibooker.
book1D(name, name, 54, 601, 655);
65 MEs_[kEEFatal] = _ibooker.
book1D(name, name, 54, 601, 655);
68 MEs_[kEENonFatal] = _ibooker.
book1D(name, name, 54, 601, 655);
75 if (_evt.
getByToken(FEDRawDataToken_, fedHndl)) {
82 unsigned occupancy(-1);
84 if (fedId < 610 || fedId > 645) {
85 occupancy = kEEOccupancy;
88 occupancy = kEBOccupancy;
93 unsigned length(fedData.size() /
sizeof(
uint64_t));
96 MEs_[occupancy]->Fill(
fedId + 0.5);
116 if (normalization < 1.)
119 MEs_[kEBNonFatal]->Fill(iDCC + 601.5, 1. / normalization);
128 if (normalization < 1.)
131 MEs_[kEENonFatal]->Fill(iDCC + 601.5, 1. / normalization);
141 if (normalization < 1.)
144 MEs_[kEBNonFatal]->Fill(iDCC + 601.5, 1. / normalization);
153 if (normalization < 1.)
156 MEs_[kEENonFatal]->Fill(iDCC + 601.5, 1. / normalization);
166 if (normalization < 1.)
169 MEs_[kEBNonFatal]->Fill(iDCC + 601.5, 1. / normalization);
178 if (normalization < 1.)
181 MEs_[kEENonFatal]->Fill(iDCC + 601.5, 1. / normalization);
185 if (_evt.
getByToken(towerIdErrorsToken_, eleHndl)) {
188 unsigned iDCC(eleItr->dccId() - 1);
190 unsigned nonfatal(-1);
192 nonfatal = kEBNonFatal;
194 nonfatal = kEENonFatal;
199 if (normalization < 1.)
202 MEs_[nonfatal]->Fill(iDCC + 601.5, 25. / normalization);
206 if (_evt.
getByToken(blockSizeErrorsToken_, eleHndl)) {
209 unsigned iDCC(eleItr->dccId() - 1);
211 unsigned nonfatal(-1);
213 nonfatal = kEBNonFatal;
215 nonfatal = kEENonFatal;
220 if (normalization < 1.)
223 MEs_[nonfatal]->Fill(iDCC + 601.5, 25. / normalization);
228 template <
int SUBDET>
230 electronicsMap = &_es.
getData(elecMapHandle);
233 template <
int SUBDET>
236 throw cms::Exception(
"InvalidCall") <<
"Electronics Mapping not initialized";
237 return electronicsMap;
EcalElectronicsMapping const * GetElectronicsMap()
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
EcalFEDMonitorTemp< EcalBarrel > EBHltTask
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< EBDetIdCollection > ebChIdErrorsToken_
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< EEDetIdCollection > eeGainSwitchErrorsToken_
EcalFEDMonitorTemp< EcalEndcap > EEHltTask
void setElectronicsMap(edm::EventSetup const &)
edm::EDGetTokenT< EBDetIdCollection > ebGainSwitchErrorsToken_
bool getData(T &iHolder) const
unsigned nCrystals(unsigned)
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
edm::EDGetTokenT< EEDetIdCollection > eeGainErrorsToken_
EcalFEDMonitorTemp<-1 > EcalFEDMonitor
unsigned long long uint64_t
T getParameter(std::string const &) const
edm::EDGetTokenT< EEDetIdCollection > eeChIdErrorsToken_
void analyze(edm::Event const &, edm::EventSetup const &) override
EcalFEDMonitorTemp(edm::ParameterSet const &)
edm::EDGetTokenT< EBDetIdCollection > ebGainErrorsToken_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< T >::const_iterator const_iterator