7 : folderName_(_ps.getUntrackedParameter<
std::
string>(
"folderName")),
13 ebGainSwitchErrorsToken_(),
14 eeGainSwitchErrorsToken_(),
17 blockSizeErrorsToken_(
37 setElectronicsMap(_es);
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);
185 if (_evt.
getByToken(towerIdErrorsToken_, eleHndl)) {
188 unsigned iDCC(eleItr->dccId() - 1);
190 unsigned nonfatal(-1);
192 nonfatal = kEBNonFatal;
194 nonfatal = kEENonFatal;
206 if (_evt.
getByToken(blockSizeErrorsToken_, eleHndl)) {
209 unsigned iDCC(eleItr->dccId() - 1);
211 unsigned nonfatal(-1);
213 nonfatal = kEBNonFatal;
215 nonfatal = kEENonFatal;
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;
T getParameter(std::string const &) const
EcalFEDMonitorTemp< EcalBarrel > EBHltTask
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
virtual void setCurrentFolder(std::string const &fullpath)
edm::EDGetTokenT< EBDetIdCollection > ebChIdErrorsToken_
edm::EDGetTokenT< EEDetIdCollection > eeGainSwitchErrorsToken_
EcalFEDMonitorTemp< EcalEndcap > EEHltTask
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
void setElectronicsMap(edm::EventSetup const &)
edm::EDGetTokenT< EBDetIdCollection > ebGainSwitchErrorsToken_
unsigned nCrystals(unsigned)
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< EEDetIdCollection > eeGainErrorsToken_
EcalFEDMonitorTemp<-1 > EcalFEDMonitor
const_iterator begin() const
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
unsigned long long uint64_t
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())
const_iterator end() const
EcalElectronicsMapping const * GetElectronicsMap()
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< T >::const_iterator const_iterator