GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
Public Member Functions
GGSGPSGeneratorAction Class Reference

A generator action to produce particles using the GPS generator. More...

#include <GGSGPSGeneratorAction.h>

Inheritance diagram for GGSGPSGeneratorAction:
Inheritance graph
[legend]
Collaboration diagram for GGSGPSGeneratorAction:
Collaboration graph
[legend]

Public Member Functions

void GeneratePrimaries (G4Event *anEvent)
 Generate primaries with GPS generator. More...
 
GGSParameters GetParameters () const
 Gets the generation parameters. More...
 
- Public Member Functions inherited from GGSGeneratorAction
 GGSGeneratorAction ()
 Constructor.
 
 ~GGSGeneratorAction ()
 Destructor.
 
unsigned int GetNDiscarded () const
 Returns the number of discarded events for the current event generation. More...
 

Additional Inherited Members

- Protected Attributes inherited from GGSGeneratorAction
unsigned long int _nDiscarded
 

Detailed Description

A generator action to produce particles using the GPS generator.

Definition at line 18 of file GGSGPSGeneratorAction.h.

Member Function Documentation

void GGSGPSGeneratorAction::GeneratePrimaries ( G4Event *  anEvent)

Generate primaries with GPS generator.

Parameters
anEventthe current event.

Definition at line 15 of file GGSGPSGeneratorAction.cpp.

15 { _gpsGenerator.GeneratePrimaryVertex(anEvent); }
GGSParameters GGSGPSGeneratorAction::GetParameters ( ) const
virtual

Gets the generation parameters.

The parameters exported by the GGSGunGeneratorAction are:

General

Name | Type | Description | Exported -------------—| ------------—|-----------------------------------------------------—|-----------------------------------— generator | string | The name of the generator "gps" | Always

Returns
The generation parameters object;

Reimplemented from GGSGeneratorAction.

Definition at line 17 of file GGSGPSGeneratorAction.cpp.

17  {
18  GGSParameters params;
19  params.SetParam("generator", std::string("gun"));
20  return params;
21 }
void SetParam(const std::string &name, T value)
Sets a parameter.
Class for storing parameters.
Definition: GGSParameters.h:29

The documentation for this class was generated from the following files: