25 if(verbose_)
cout <<
"L1TFED: constructor...." << endl;
36 if ( outputFile_.size() != 0 ) {
37 cout <<
"L1T Monitoring histograms will be saved to " << outputFile_.c_str() << endl;
51 dbe->setCurrentFolder(directory_);
72 dbe->
rmdir(directory_);
80 fedentries = dbe->
book1D(
"FEDEntries",
"Fed ID occupancy", l1feds_.size(), 0.,l1feds_.size() );
81 fedfatal = dbe->
book1D(
"FEDFatal",
"Fed ID non present ", l1feds_.size(), 0., l1feds_.size());
82 fednonfatal = dbe->
book1D(
"FEDNonFatal",
"Fed corrupted data ", l1feds_.size(), 0.,l1feds_.size() );
83 hfedprof = dbe->
bookProfile(
"fedprofile",
"FED Size by ID", l1feds_.size(), 0., l1feds_.size(),0,0.,5000.);
84 for(
unsigned int i=0;
i<l1feds_.size();
i++){
88 fedfatal->setBinLabel(
i+1,
"FED "+ sfed.str());
89 fednonfatal->setBinLabel(
i+1,
"FED "+ sfed.str());
94 hfedsize = dbe->
book1D(
"fedsize",
"FED Size Distribution",100,0.,10000.);
103 if(verbose_)
std::cout <<
"L1T FED Integrity: end job...." << std::endl;
104 LogInfo(
"EndJob") <<
"analyzed " << nev_ <<
" events";
106 if ( outputFile_.size() != 0 && dbe ) dbe->save(outputFile_);
114 if(verbose_)
cout <<
"L1T FED Integrity: analyze...." << endl;
120 if(verbose_)
cout <<
"can't find FEDRawDataCollection "<< endl;
125 if(verbose_)
cout <<
"fedlist size = " << l1feds_.size() << endl;
127 for (
unsigned int i = 0;
i<l1feds_.size();
i++){
128 int fedId = l1feds_[
i];
129 if(verbose_)
cout <<
"fedId = " << fedId << endl;
136 hfedsize->Fill(
float(
size));
137 hfedprof->Fill(
float(
i),
float(
size));
160 if(verbose_)
cout <<
"empty fed " <<
i << endl;
161 if(stableROConfig_) fedfatal->Fill(
i);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
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)
void analyze(const edm::Event &e, const edm::EventSetup &c)
size_t size() const
Lenght of the data buffer in bytes.
bool check(const DataFrame &df, bool capcheck, bool dvercheck)
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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.
void setCurrentFolder(const std::string &fullpath)