Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -23,48 +23,49 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// G4UserRunAction
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
|
||||
#ifndef G4UserRunAction_h
|
||||
#define G4UserRunAction_h 1
|
||||
|
||||
class G4Run;
|
||||
|
||||
// class description:
|
||||
//
|
||||
// This is the base class of a user's action class which defines the
|
||||
// user's action at the begining and the end of each run. The user can
|
||||
// override the following two methods but the user should not change
|
||||
// any of the contents of G4Run object.
|
||||
// This is the base class of a user's action class defining the user's
|
||||
// action at the begining and the end of each run. The user can override
|
||||
// the following two methods but should not change any of the contents of
|
||||
// a G4Run object:
|
||||
// virtual void BeginOfRunAction(const G4Run* aRun);
|
||||
// virtual void EndOfRunAction(const G4Run* aRun);
|
||||
// The user can override the following method to instanciate his/her own
|
||||
// concrete Run class. G4Run has a virtual method RecordEvent, so that
|
||||
// the user can store any information useful to him/her with event statistics.
|
||||
// concrete Run class. G4Run has a virtual method RecordEvent(), so that
|
||||
// one can store any information useful for event statistics:
|
||||
// virtual G4Run* GenerateRun();
|
||||
// The user's concrete class derived from this class must be set to
|
||||
// G4RunManager via G4RunManager::SetUserAction() method.
|
||||
//
|
||||
// The user's concrete class derived from this class must be set to
|
||||
// G4RunManager via the G4RunManager::SetUserAction() method.
|
||||
|
||||
// Original author: M.Asai, 1998
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4UserRunAction_hh
|
||||
#define G4UserRunAction_hh 1
|
||||
|
||||
#include "G4Types.hh"
|
||||
|
||||
class G4Run;
|
||||
|
||||
class G4UserRunAction
|
||||
{
|
||||
public:
|
||||
G4UserRunAction();
|
||||
virtual ~G4UserRunAction();
|
||||
public:
|
||||
|
||||
public:
|
||||
virtual G4Run* GenerateRun();
|
||||
virtual void BeginOfRunAction(const G4Run* aRun);
|
||||
virtual void EndOfRunAction(const G4Run* aRun);
|
||||
G4UserRunAction();
|
||||
virtual ~G4UserRunAction();
|
||||
|
||||
protected:
|
||||
G4bool isMaster;
|
||||
virtual G4Run* GenerateRun();
|
||||
virtual void BeginOfRunAction(const G4Run* aRun);
|
||||
virtual void EndOfRunAction(const G4Run* aRun);
|
||||
|
||||
public:
|
||||
inline virtual void SetMaster(G4bool val = true) { isMaster = val; }
|
||||
inline G4bool IsMaster() const { return isMaster; }
|
||||
inline virtual void SetMaster(G4bool val = true) { isMaster = val; }
|
||||
inline G4bool IsMaster() const { return isMaster; }
|
||||
|
||||
protected:
|
||||
|
||||
G4bool isMaster = true;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user