19 if(verbose_)
cout <<
"L1TFED: constructor...." << endl;
30 if ( outputFile_.size() != 0 ) {
31 cout <<
"L1T Monitoring histograms will be saved to " << outputFile_.c_str() << endl;
45 dbe->setCurrentFolder(directory_);
63 dbe->setCurrentFolder(directory_);
64 dbe->rmdir(directory_);
70 dbe->setCurrentFolder(directory_);
72 fedentries = dbe->book1D(
"FEDEntries",
"Fed ID occupancy", l1feds_.size(), 0.,l1feds_.size() );
73 fedfatal = dbe->book1D(
"FEDFatal",
"Fed ID non present ", l1feds_.size(), 0., l1feds_.size());
74 fednonfatal = dbe->book1D(
"FEDNonFatal",
"Fed corrupted data ", l1feds_.size(), 0.,l1feds_.size() );
75 hfedprof = dbe->bookProfile(
"fedprofile",
"FED Size by ID", l1feds_.size(), 0., l1feds_.size(),0,0.,5000.);
76 for(
unsigned int i=0;
i<l1feds_.size();
i++){
79 fedentries->setBinLabel(
i+1,
"FED "+ sfed.str());
80 fedfatal->setBinLabel(
i+1,
"FED "+ sfed.str());
81 fednonfatal->setBinLabel(
i+1,
"FED "+ sfed.str());
86 hfedsize = dbe->book1D(
"fedsize",
"FED Size Distribution",100,0.,10000.);
95 if(verbose_)
std::cout <<
"L1T FED Integrity: end job...." << std::endl;
96 LogInfo(
"EndJob") <<
"analyzed " << nev_ <<
" events";
98 if ( outputFile_.size() != 0 && dbe ) dbe->save(outputFile_);
106 if(verbose_)
cout <<
"L1T FED Integrity: analyze...." << endl;
112 if(verbose_)
cout <<
"can't find FEDRawDataCollection "<< endl;
117 if(verbose_)
cout <<
"fedlist size = " << l1feds_.size() << endl;
119 for (
unsigned int i = 0;
i<l1feds_.size();
i++){
120 int fedId = l1feds_[
i];
121 if(verbose_)
cout <<
"fedId = " << fedId << endl;
128 hfedsize->Fill(
float(
size));
129 hfedprof->Fill(
float(
i),
float(
size));
152 if(verbose_)
cout <<
"empty fed " <<
i << endl;
153 if(stableROConfig_) fedfatal->Fill(
i);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void analyze(const edm::Event &e, const edm::EventSetup &c)
size_t size() const
Lenght of the data buffer in bytes.
void beginRun(edm::Run const &iRun, edm::EventSetup const &iSetup)
bool check(const DataFrame &df, bool capcheck, bool dvercheck)
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.
tuple size
Write out results.