GENIEGenerator
|
Simple class to create & update MC job status files and env. vars. This is used to be able to keep track of an MC job status even when all output is suppressed or redirected to /dev/null. More...
#include <GMCJMonitor.h>
Public Member Functions | |
GMCJMonitor (Long_t runnu) | |
~GMCJMonitor () | |
void | SetRefreshRate (int rate) |
void | Update (int iev, const EventRecord *event) |
void | CustomizeFilename (string filename) |
Private Member Functions | |
void | Init (void) |
Private Attributes | |
Long_t | fRunNu |
run number More... | |
string | fStatusFile |
name of output status file More... | |
TStopwatch | fWatch |
double | fCpuTime |
total cpu time so far More... | |
int | fRefreshRate |
update output every so many events More... | |
Simple class to create & update MC job status files and env. vars. This is used to be able to keep track of an MC job status even when all output is suppressed or redirected to /dev/null.
Definition at line 31 of file GMCJMonitor.h.
GMCJMonitor::GMCJMonitor | ( | Long_t | runnu | ) |
GMCJMonitor::~GMCJMonitor | ( | ) |
Definition at line 38 of file GMCJMonitor.cxx.
void GMCJMonitor::CustomizeFilename | ( | string | filename | ) |
Definition at line 97 of file GMCJMonitor.cxx.
References fStatusFile.
Referenced by GenerateEventsAtFixedInitState().
|
private |
Definition at line 76 of file GMCJMonitor.cxx.
References fCpuTime, fRefreshRate, fRunNu, fStatusFile, and fWatch.
Referenced by GMCJMonitor().
void GMCJMonitor::SetRefreshRate | ( | int | rate | ) |
Definition at line 43 of file GMCJMonitor.cxx.
References fRefreshRate.
Referenced by GenerateEventsAtFixedInitState(), and main().
void GMCJMonitor::Update | ( | int | iev, |
const EventRecord * | event | ||
) |
Definition at line 48 of file GMCJMonitor.cxx.
References fCpuTime, fRefreshRate, fStatusFile, and fWatch.
Referenced by GenerateEventsAtFixedInitState(), and main().
|
private |
total cpu time so far
Definition at line 48 of file GMCJMonitor.h.
|
private |
update output every so many events
Definition at line 49 of file GMCJMonitor.h.
Referenced by Init(), SetRefreshRate(), and Update().
|
private |
|
private |
name of output status file
Definition at line 46 of file GMCJMonitor.h.
Referenced by CustomizeFilename(), Init(), and Update().
|
private |
Definition at line 47 of file GMCJMonitor.h.