1 #include "../interface/EcalFEDMonitor.h"
7 folderName_(_ps.getUntrackedParameter<std::
string>(
"folderName")),
13 ebGainSwitchErrorsToken_(),
14 eeGainSwitchErrorsToken_(),
57 MEs_[kEBOccupancy] = _ibooker.
book1D(name, name, 36, 610, 646);
60 MEs_[kEBFatal] = _ibooker.
book1D(name, name, 36, 610, 646);
63 MEs_[kEBNonFatal] = _ibooker.
book1D(name, name, 36, 610, 646);
69 MEs_[kEEOccupancy] = _ibooker.
book1D(name, name, 54, 601, 655);
72 MEs_[kEEFatal] = _ibooker.
book1D(name, name, 54, 601, 655);
75 MEs_[kEENonFatal] = _ibooker.
book1D(name, name, 54, 601, 655);
84 if(_evt.
getByToken(FEDRawDataToken_, fedHndl)){
86 if(SUBDET ==
EcalBarrel && (fedId < 610 || fedId > 645))
continue;
89 unsigned occupancy(-1);
91 if(fedId < 610 || fedId > 645){
92 occupancy = kEEOccupancy;
96 occupancy = kEBOccupancy;
101 unsigned length(fedData.size() /
sizeof(
uint64_t));
104 MEs_[occupancy]->Fill(
fedId + 0.5);
124 if(normalization < 1.)
continue;
126 MEs_[kEBNonFatal]->Fill(iDCC + 601.5, 1. / normalization);
135 if(normalization < 1.)
continue;
137 MEs_[kEENonFatal]->Fill(iDCC + 601.5, 1. / normalization);
147 if(normalization < 1.)
continue;
149 MEs_[kEBNonFatal]->Fill(iDCC + 601.5, 1. / normalization);
158 if(normalization < 1.)
continue;
160 MEs_[kEENonFatal]->Fill(iDCC + 601.5, 1. / normalization);
170 if(normalization < 1.)
continue;
172 MEs_[kEBNonFatal]->Fill(iDCC + 601.5, 1. / normalization);
181 if(normalization < 1.)
continue;
183 MEs_[kEENonFatal]->Fill(iDCC + 601.5, 1. / normalization);
187 if(_evt.
getByToken(towerIdErrorsToken_, eleHndl)){
190 unsigned iDCC(eleItr->dccId() - 1);
192 unsigned nonfatal(-1);
194 nonfatal = kEBNonFatal;
196 nonfatal = kEENonFatal;
201 if(normalization < 1.)
continue;
203 MEs_[nonfatal]->Fill(iDCC + 601.5, 25. / normalization);
207 if(_evt.
getByToken(blockSizeErrorsToken_, eleHndl)){
210 unsigned iDCC(eleItr->dccId() - 1);
212 unsigned nonfatal(-1);
214 nonfatal = kEBNonFatal;
216 nonfatal = kEENonFatal;
221 if(normalization < 1.)
continue;
223 MEs_[nonfatal]->Fill(iDCC + 601.5, 25. / normalization);
T getParameter(std::string const &) const
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
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< EBDetIdCollection > ebChIdErrorsToken_
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< EEDetIdCollection > eeGainSwitchErrorsToken_
EcalFEDMonitorTemp< EcalEndcap > EEHltTask
edm::EDGetTokenT< EBDetIdCollection > ebGainSwitchErrorsToken_
unsigned nCrystals(unsigned)
bool checkElectronicsMap(bool=true)
MonitorElement * book1D(Args &&...args)
edm::EDGetTokenT< EEDetIdCollection > eeGainErrorsToken_
EcalFEDMonitorTemp<-1 > EcalFEDMonitor
void setCurrentFolder(const std::string &fullpath)
unsigned long long uint64_t
T const * product() const
edm::EDGetTokenT< EEDetIdCollection > eeChIdErrorsToken_
void analyze(edm::Event const &, edm::EventSetup const &) override
EcalFEDMonitorTemp(edm::ParameterSet const &)
void setElectronicsMap(EcalElectronicsMapping const *)
edm::EDGetTokenT< EBDetIdCollection > ebGainErrorsToken_
unsigned dccId(DetId const &)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< EBDetId >::const_iterator const_iterator