22 if(verbose_)
cout <<
"L1TFED: constructor...." << endl;
34 fedentries = ibooker.
book1D(
"FEDEntries",
"Fed ID occupancy", l1feds_.size(), 0.,l1feds_.size() );
35 fedfatal = ibooker.
book1D(
"FEDFatal",
"Fed ID non present ", l1feds_.size(), 0., l1feds_.size());
36 fednonfatal = ibooker.
book1D(
"FEDNonFatal",
"Fed corrupted data ", l1feds_.size(), 0.,l1feds_.size() );
37 hfedprof = ibooker.
bookProfile(
"fedprofile",
"FED Size by ID", l1feds_.size(), 0., l1feds_.size(),0,0.,5000.);
38 for(
unsigned int i=0;
i<l1feds_.size();
i++){
42 fedfatal->setBinLabel(
i+1,
"FED "+ sfed.str());
43 fednonfatal->setBinLabel(
i+1,
"FED "+ sfed.str());
46 hfedsize = ibooker.
book1D(
"fedsize",
"FED Size Distribution",100,0.,10000.);
53 if(verbose_)
cout <<
"L1T FED Integrity: analyze...." << endl;
59 if(verbose_)
cout <<
"can't find FEDRawDataCollection "<< endl;
64 if(verbose_)
cout <<
"fedlist size = " << l1feds_.size() << endl;
66 for (
unsigned int i = 0;
i<l1feds_.size();
i++){
67 int fedId = l1feds_[
i];
68 if(verbose_)
cout <<
"fedId = " << fedId << endl;
75 hfedsize->Fill(
float(
size));
76 hfedprof->Fill(
float(
i),
float(
size));
84 if(verbose_)
cout <<
"empty fed " <<
i << endl;
85 if(stableROConfig_) fedfatal->Fill(
i);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
size_t size() const
Lenght of the data buffer in bytes.
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void analyze(const edm::Event &e, const edm::EventSetup &c) override
MonitorElement * book1D(Args &&...args)
void setCurrentFolder(const std::string &fullpath)
L1TFED(const edm::ParameterSet &ps)
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.