GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSStatusDumpAction.h
Go to the documentation of this file.
1 /*
2  * GGSStatusDumpAction.h
3  *
4  * Created on: 29 Dec 2011
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSSTATUSDUMPACTION_H_
11 #define GGSSTATUSDUMPACTION_H_
12 
13 // Geant4 headers
14 #include "CLHEP/Random/Random.h"
15 #include "G4Event.hh"
16 #include "G4Run.hh"
17 #include "globals.hh"
18 class G4GenericMessenger;
19 
20 // GGS headers
22 
29 
30 public:
33 
35  virtual ~GGSStatusDumpAction();
36 
41  void BeginOfEventAction(const G4Event *event);
42 
47  void BeginOfRunAction(const G4Run *run);
48 
49 private:
50  G4int _printModulo;
51  G4int _lastPrinted;
52  G4GenericMessenger *_messenger;
53 };
54 
55 #endif /* GGSSTATUSDUMPACTION_H_ */
void BeginOfRunAction(const G4Run *run)
Dumps the run number.
virtual ~GGSStatusDumpAction()
Destructor.
void BeginOfEventAction(const G4Event *event)
Dumps the simulation status every N events.
GGSStatusDumpAction()
Constructor.
Action which dumps the simulation status on standard output.
Mother class for user actions in GGS.
Definition: GGSUserAction.h:27