Hall C ROOT/C++ Analyzer (hcana)
|
A physics module to generate periodic reports from a template.
This class is a physics module, but does not do analysis. It repeatedly outputs a report file from a template using an event count or time based period. This report file could be displayed or used by a GUI to show a realtime status of an analysis.
The THcAnalyzer::PrintReport method is used to generate the report. By default this report is generated every two seconds.
Definition at line 13 of file THcPeriodicReport.h.
Public Member Functions | |
virtual Int_t | Begin (THaRunBase *r=0) |
virtual Int_t | End (THaRunBase *r=0) |
virtual EStatus | Init (const TDatime &run_time) |
void | PrintReport () |
virtual Int_t | Process (const THaEvData &) |
virtual void | SetEventPeriod (Int_t ev) |
Set report print out periodicity. More... | |
virtual void | SetTimePeriod (UInt_t t) |
Set report print out periodicity. More... | |
THcPeriodicReport (const char *name, const char *description, const char *templatefile, const char *ofile) | |
Construct the period report generator. More... | |
virtual | ~THcPeriodicReport () |
A destructor. More... | |
Protected Attributes | |
THcAnalyzer * | fAnalyzer |
Bool_t | fDoPrint |
Int_t | fEventPeriod |
Int_t | fEventsSincePrint |
UInt_t | fLastPrintTime |
TString | fOutputFilename |
TString | fTemplateFilename |
UInt_t | fTimePeriod |
#include <THcPeriodicReport.h>
THcPeriodicReport::THcPeriodicReport | ( | const char * | name, |
const char * | description = "" , |
||
const char * | templatefile, | ||
const char * | ofile | ||
) |
Construct the period report generator.
[in] | name | Name of the apparatus. Is typically named after spectrometer whose trigger data is collecting; like "HMS". |
[in] | description | Description of the report |
[in] | templatefile | Name of file containing report templte |
[in] | ofile | File to write the report to |
Definition at line 45 of file THcPeriodicReport.cxx.
|
virtual |
A destructor.
Definition at line 55 of file THcPeriodicReport.cxx.
|
virtual |
Definition at line 68 of file THcPeriodicReport.cxx.
|
virtual |
Definition at line 76 of file THcPeriodicReport.cxx.
|
virtual |
Definition at line 59 of file THcPeriodicReport.cxx.
void THcPeriodicReport::PrintReport | ( | ) |
Definition at line 102 of file THcPeriodicReport.cxx.
Definition at line 83 of file THcPeriodicReport.cxx.
Set report print out periodicity.
[in] | ev | Print out report every ev events |
Definition at line 33 of file THcPeriodicReport.h.
Set report print out periodicity.
[in] | t | Print out report ever t seconds |
Definition at line 41 of file THcPeriodicReport.h.
|
protected |
Definition at line 49 of file THcPeriodicReport.h.
|
protected |
Definition at line 48 of file THcPeriodicReport.h.
|
protected |
Definition at line 47 of file THcPeriodicReport.h.
|
protected |
Definition at line 45 of file THcPeriodicReport.h.
|
protected |
Definition at line 44 of file THcPeriodicReport.h.
|
protected |
Definition at line 51 of file THcPeriodicReport.h.
|
protected |
Definition at line 50 of file THcPeriodicReport.h.
|
protected |
Definition at line 46 of file THcPeriodicReport.h.