59 std::cout << std::endl<<
" *** ZDC Monitor Client ***" << std::endl<<std::endl;
61 if(
debug_>1)
std::cout <<
"ZDCMonitorClient: constructor...." << std::endl;
71 if ( enableMonitorDaemon_ )
std::cout <<
"-->enableMonitorDaemon switch is ON" << std::endl;
72 else std::cout <<
"-->enableMonitorDaemon switch is OFF" << std::endl;
83 if( ! enableMonitorDaemon_ ) {
102 else std::cout <<
"-->HTML output is disabled" << std::endl;
109 else std::cout <<
"-->standAlone switch is OFF" << std::endl;
122 if (
debug_>0)
std::cout <<
"===>ZDCMonitor name = " << subsystemname << std::endl;
131 if (
debug_>0)
std::cout <<
"<ZDCMonitorClient>removeAllME()"<<std::endl;
149 if (
debug_>0)
std::cout <<
"<ZDCMonitorClient> resetAllME()"<<std::endl;
167 std::cout << std::endl<<
"ZDCMonitorClient: Standard beginRun() for run " << r.
id().
run() << std::endl<<std::endl;
191 me =
dbe_->
book2D(
"reportSummaryMap",
"ZDC Report Summary Map",4,0,4,1,0,1);
193 myhist->GetXaxis()->SetBinLabel(1,
"HAD-");
194 myhist->GetXaxis()->SetBinLabel(2,
"EM-");
195 myhist->GetXaxis()->SetBinLabel(3,
"EM+");
196 myhist->GetXaxis()->SetBinLabel(4,
"HAD+");
198 myhist->SetBinContent(1,1,-1);
199 myhist->SetBinContent(2,1,-1);
200 myhist->SetBinContent(3,1,-1);
201 myhist->SetBinContent(4,1,-1);
205 me=
dbe_->
get(
rootFolder_+eventinfo.c_str()+
"/reportSummary/reportSummaryContents/ZDC_HADMinus");
210 me=
dbe_->
get(
rootFolder_+eventinfo.c_str()+
"/reportSummary/reportSummaryContents/ZDC_EMMinus");
215 me=
dbe_->
get(
rootFolder_+eventinfo.c_str()+
"/reportSummary/reportSummaryContents/ZDC_EMPlus");
220 me=
dbe_->
get(
rootFolder_+eventinfo.c_str()+
"/reportSummary/reportSummaryContents/ZDC_HADPlus");
299 std::cout <<
"ZDCMonitorClient: endJob, ievt = " <<
ievt_ << std::endl;
308 std::cout << std::endl<<
"<ZDCMonitorClient> Standard endRun() for run " << r.
id().
run() << std::endl<<std::endl;
315 if (
debug_>0)
std::cout <<
"==>Creating report after run end condition"<<std::endl;
343 if(
debug_>0 )
std::cout <<
"ZDCMonitorClient: beginLuminosityBlock" << std::endl;
351 if(
debug_>0 )
std::cout <<
"ZDCMonitorClient: std::endluminosityBlock" << std::endl;
365 std::cout <<
"Entered ZDCMonitorClient::analyze(const Evt...)"<<std::endl;
401 std::cout <<
"<ZDCMonitorClient> Entered ZDCMonitorClient::analyze()"<<std::endl;
402 if(
debug_>1)
std::cout<<
"\nZDC Monitor Client heartbeat...."<<std::endl;
416 if(
debug_>0 )
std::cout <<
"ZDCMonitorClient: creating all tests" << std::endl;
424 std::cout <<
"ZDCMonitorClient: creating report, ievt = " <<
ievt_ << std::endl;
444 sprintf(meTitle,
"%sEventInfo/errorSummary",
rootFolder_.c_str() );
446 if(me) me->
Fill(errorSummary);
467 "ZDCMonitorClient: this histogram file is bad! " <<std::endl;
493 bool keepEvent=
false;
500 if (keepEvent)
return false;
bool enableMonitorDaemon_
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
bool prescale()
Boolean prescale test for this event.
void rmdir(const std::string &fullpath)
void cd(void)
go to top directory (ie. root)
#define DEFINE_FWK_MODULE(type)
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
edm::LuminosityBlockNumber_t luminosityBlock() const
int prescaleLS_
units of events
void beginLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
BeginLumiBlock.
int debug_
Verbosity switch used for debugging or informational output.
MonitorElement * bookFloat(const char *name)
Book float.
void errorSummary()
Generate error summary.
LuminosityBlockNumber_t luminosityBlock() const
void dumpHistograms(int &runNum, std::vector< TH1F * > &hist1d, std::vector< TH2F * > &hist2d)
void initialize(const edm::ParameterSet &ps)
void removeContents(void)
erase all monitoring elements in current directory (not including subfolders);
const T & max(const T &a, const T &b)
DQMStore * dbe_
Connection to the DQM backend.
void removeElement(const std::string &name)
void analyze(void)
Analyze.
void report(bool update)
Create reports.
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void resetAllME(void)
reset all monitor elements
~ZDCMonitorClient()
Destructor.
bool dirExists(const std::string &path) const
true if directory exists
void createTests(void)
Create tests.
void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
EndLumiBlock.
ZDCMonitorClient()
Constructors.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
bool open(const std::string &filename, bool overwrite=false, const std::string &path="", const std::string &prepend="", OpenRunDirs stripdirs=KeepRunDirs, bool fileMustExist=true)
void showDirStructure(void) const
TH2F * getTH2F(void) const
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void htmlOutput(void)
HtmlOutput.
TimeValue_t value() const
edm::Timestamp time() const
void setCurrentFolder(const std::string &fullpath)
void loadHistograms(TFile *infile, const char *fname)