22 cout <<
"L1TFED: constructor...." << endl;
31 fedentries = ibooker.
book1D(
"FEDEntries",
"Fed ID occupancy", l1feds_.size(), 0., l1feds_.size());
32 fedfatal = ibooker.
book1D(
"FEDFatal",
"Fed ID non present ", l1feds_.size(), 0., l1feds_.size());
33 fednonfatal = ibooker.
book1D(
"FEDNonFatal",
"Fed corrupted data ", l1feds_.size(), 0., l1feds_.size());
34 hfedprof = ibooker.
bookProfile(
"fedprofile",
"FED Size by ID", l1feds_.size(), 0., l1feds_.size(), 0, 0., 10000.);
35 for (
unsigned int i = 0;
i < l1feds_.size();
i++) {
39 fedfatal->setBinLabel(
i + 1,
"FED " + sfed.str());
40 fednonfatal->setBinLabel(
i + 1,
"FED " + sfed.str());
41 hfedprof->setBinLabel(
i + 1,
"FED " + sfed.str());
44 hfedsize = ibooker.
book1D(
"fedsize",
"FED Size Distribution", 100, 0., 10000.);
50 cout <<
"L1T FED Integrity: analyze...." << endl;
53 bool t =
e.getByToken(rawl_, rawdata);
57 cout <<
"can't find FEDRawDataCollection " << endl;
62 cout <<
"fedlist size = " << l1feds_.size() << endl;
64 for (
unsigned int i = 0;
i < l1feds_.size();
i++) {
71 if (
size_t size =
data.size()) {
73 hfedsize->Fill(
float(size));
74 hfedprof->Fill(
float(
i),
float(size));
85 cout <<
"empty fed " <<
i << endl;
T getParameter(std::string const &) const
virtual void setCurrentFolder(std::string const &fullpath)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
void analyze(const edm::Event &e, const edm::EventSetup &c) override
virtual 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)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
L1TFED(const edm::ParameterSet &ps)
char data[epos_bytes_allocation]
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())