GGS(GenericGEANT4Simulation)Software
2.6.0
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Macros
src
montecarlo
generators
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
10
#include "
montecarlo/generators/GGSGPSGeneratorAction.h
"
11
#include "
montecarlo/pluginmanagers/GGSMCPluginMacros.h
"
12
13
#include "G4GeneralParticleSource.hh"
14
15
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
16
17
RegisterGA
(
GGSGPSGeneratorAction
, gps);
18
19
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
20
21
GGSGPSGeneratorAction::GGSGPSGeneratorAction
() {
22
_gpsGenerator =
new
G4GeneralParticleSource;
23
}
24
25
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
26
27
GGSGPSGeneratorAction::~GGSGPSGeneratorAction
() {
28
delete
_gpsGenerator;
29
}
30
31
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32
33
void
GGSGPSGeneratorAction::GeneratePrimaries
(G4Event *anEvent) {
34
_gpsGenerator->GeneratePrimaryVertex(anEvent);
35
}
GGSGPSGeneratorAction.h
GGSGPSGeneratorAction
A generator action to produce particles using the GPS generator.
Definition:
GGSGPSGeneratorAction.h:17
GGSMCPluginMacros.h
GGSGPSGeneratorAction::GGSGPSGeneratorAction
GGSGPSGeneratorAction()
Constructor.
Definition:
GGSGPSGeneratorAction.cpp:21
GGSGPSGeneratorAction::~GGSGPSGeneratorAction
~GGSGPSGeneratorAction()
Destructor.
Definition:
GGSGPSGeneratorAction.cpp:27
GGSGPSGeneratorAction::GeneratePrimaries
void GeneratePrimaries(G4Event *anEvent)
Generate primaries with GPS generator.
Definition:
GGSGPSGeneratorAction.cpp:33
RegisterGA
#define RegisterGA(gaClassName, gaName)
Macro for registration of user generator actions.
Definition:
GGSMCPluginMacros.h:71
Generated on Thu May 30 2019 11:52:22 for GGS(GenericGEANT4Simulation)Software by
1.8.5