GGS(GenericGEANT4Simulation)Software  2.7.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 
14 
15 void GGSGPSGeneratorAction::GeneratePrimaries(G4Event *anEvent) { _gpsGenerator.GeneratePrimaryVertex(anEvent); }
16 
18  GGSParameters params;
19  params.SetParam("generator", std::string("gun"));
20  return params;
21 }
A generator action to produce particles using the GPS generator.
void SetParam(const std::string &name, T value)
Sets a parameter.
Class for storing parameters.
Definition: GGSParameters.h:29
void GeneratePrimaries(G4Event *anEvent)
Generate primaries with GPS generator.
#define RegisterGA(gaClassName, gaName)
Macro for registration of user generator actions.
GGSParameters GetParameters() const
Gets the generation parameters.