GGS(GenericGEANT4Simulation)Software  2.7.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 "utils/GGSParameters.h"
14 
15 #include "G4VUserPrimaryGeneratorAction.hh"
16 
17 #include <memory>
18 
31 class GGSGeneratorAction : public G4VUserPrimaryGeneratorAction {
32 public:
34  GGSGeneratorAction() : G4VUserPrimaryGeneratorAction(), _nDiscarded(0) {}
35 
38 
49  unsigned int GetNDiscarded() const { return _nDiscarded; }
50 
60  virtual GGSParameters GetParameters() const { return GGSParameters(); }
61 
62 protected:
63  unsigned long int _nDiscarded;
64 };
65 
66 #endif /* GGSGENERATORACTION_H_ */
Base class for GGS generator actions.
GGSGeneratorAction()
Constructor.
Class for storing parameters.
Definition: GGSParameters.h:29
virtual GGSParameters GetParameters() const
Returns the generator parameters.
unsigned int GetNDiscarded() const
Returns the number of discarded events for the current event generation.
~GGSGeneratorAction()
Destructor.