2 #ifndef THEPEG_ProgressLog_H
3 #define THEPEG_ProgressLog_H
8 #include "ThePEG/Handlers/AnalysisHandler.h"
191 #include "ThePEG/Utilities/ClassTraits.h"
200 struct BaseClassTrait<ProgressLog,1> {
202 typedef AnalysisHandler
NthBase;
208 struct ClassTraits<ProgressLog>
209 :
public ClassTraitsBase<ProgressLog> {
211 static string className() {
return "ThePEG::ProgressLog"; }
219 static string library() {
return "ProgressLog.so"; }
PersistentIStream is used to read persistent objects from a stream where they were previously written...
ProgressLog()
The default constructor.
time_t time1
The clock the last time a status line was written out.
static double fclock()
Return the cpu clock in seconds.
string host
The host on which we are running.
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data...
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
The ProgressLog class will not perform an actual analysis.
static ClassDescription< ProgressLog > initProgressLog
The static object used to initialize the description of this class.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
This is the main namespace within which all identifiers in ThePEG are declared.
The AnalysisHandler is the base class of all analysis objects which may be handled by the FullEventGe...
time_t time0
The clock when the run was started.
virtual ~ProgressLog()
The destructor.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual IBPtr clone() const
Make a simple clone of this object.
static string library()
The name of a file containing the dynamic library where the class T is implemented.
ProgressLog & operator=(const ProgressLog &)
The assignment operator is private and must never be called.
bool statusTime(long i, long n) const
Check if it is time to write out a status line.
RCPtr is a reference counted (smart) pointer.
pid_t pid
The pid of the current process.
double fcpu0
The cpu clock when the run was started.
InitState state() const
Return the state of initialization of this object.
double fcpu1
The cpu clock the last time a status line was written out.
static string className()
Return the name of class T.
static void Init()
The standard Init function used to initialize the interfaces.
int NthBase
The type of the BaseN'th base class (int means there are no further base classes).
int secstep
If larger than 0, a status line will be written every secstep second.
virtual void doinitrun()
Initialize this object.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
virtual void analyze(tEventPtr event, long ieve, int loop, int state)
Analyze a given Event.