GGS(GenericGEANT4Simulation)Software  2.6.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSGeneratorAction.h
Go to the documentation of this file.
1 /*
2  * GGSGeneratorAction.h
3  *
4  * Created on: 19 Oct 2013
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSGENERATORACTION_H_
11 #define GGSGENERATORACTION_H_
12 
13 #include "G4VUserPrimaryGeneratorAction.hh"
14 
27 class GGSGeneratorAction: public G4VUserPrimaryGeneratorAction {
28 public:
29 
32  G4VUserPrimaryGeneratorAction(), _nDiscarded(0) {
33 
34  }
35 
38 
39  }
40 
51  unsigned int GetNDiscarded() const {
52  return _nDiscarded;
53  }
54 
55 protected:
56  unsigned long int _nDiscarded;
57 
58 };
59 
60 #endif /* GGSGENERATORACTION_H_ */
Base class for GGS generator actions.
GGSGeneratorAction()
Constructor.
unsigned int GetNDiscarded() const
Returns the number of discarded events for the current event generation.
~GGSGeneratorAction()
Destructor.