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

A multi-particle generator action. More...

#include <GGSMultiParticleGeneratorAction.h>

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

Public Member Functions

 GGSMultiParticleGeneratorAction ()
 Constructor.
 
 ~GGSMultiParticleGeneratorAction ()
 Destructor.
 
void SetEventsFile (const G4String &evFile)
 
void GeneratePrimaries (G4Event *anEvent)
 Override of GeneratePrimaries method.
 
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 multi-particle generator action.

This generator reads multiple primary particles from a text file for each event. The text file format is the same used by the G4HEPEvtInterface generator, with some adjustments: for each particle (ie., in each line), after the particle's mass there must be three floating point numbers indicating the generation point ( (x,y,z), in cm), and then another floating point number representing the generation time (in ns). For other details about file format, see the G4HEPEvtInterface documentation.

Definition at line 31 of file GGSMultiParticleGeneratorAction.h.

Member Function Documentation

GGSParameters GGSMultiParticleGeneratorAction::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 "multiParticle" | Always

Returns
The generation parameters object;

Reimplemented from GGSGeneratorAction.

Definition at line 126 of file GGSMultiParticleGeneratorAction.cpp.

126  {
127  GGSParameters params;
128  params.SetParam("generator", std::string("multiParticle"));
129  return params;
130 }
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: