GGS(GenericGEANT4Simulation)Software  2.6.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSGPSGeneratorAction.cpp
Go to the documentation of this file.
1 /*
2  * GGSGPSGeneratorAction.cpp
3  *
4  * Created on: 10 Oct 2013
5  * Author: Nicola Mori
6  */
7 
12 
13 #include "G4GeneralParticleSource.hh"
14 
15 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
16 
18 
19 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
20 
22  _gpsGenerator = new G4GeneralParticleSource;
23 }
24 
25 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
26 
28  delete _gpsGenerator;
29 }
30 
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32 
34  _gpsGenerator->GeneratePrimaryVertex(anEvent);
35 }
A generator action to produce particles using the GPS generator.
GGSGPSGeneratorAction()
Constructor.
void GeneratePrimaries(G4Event *anEvent)
Generate primaries with GPS generator.
#define RegisterGA(gaClassName, gaName)
Macro for registration of user generator actions.