GGS(GenericGEANT4Simulation)Software  2.6.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSGPSGeneratorAction.h
Go to the documentation of this file.
1 /*
2  * GGSGPSGeneratorAction.h
3  *
4  * Created on: 10 Oct 2013
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSGPSGENERATORACTION_H_
11 #define GGSGPSGENERATORACTION_H_
12 
13 #include "G4VUserPrimaryGeneratorAction.hh"
14 class G4GeneralParticleSource;
15 
17 class GGSGPSGeneratorAction: public G4VUserPrimaryGeneratorAction {
18 public:
19 
22 
25 
30  void GeneratePrimaries(G4Event *anEvent);
31 
32 private:
33 
34  G4GeneralParticleSource *_gpsGenerator;
35 
36 };
37 
38 #endif /* GGSGPSGENERATORACTION_H_ */
A generator action to produce particles using the GPS generator.
GGSGPSGeneratorAction()
Constructor.
void GeneratePrimaries(G4Event *anEvent)
Generate primaries with GPS generator.