GGS(GenericGEANT4Simulation)Software  2.6.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.
 

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.


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