GGS(GenericGEANT4Simulation)Software
2.7.0
|
A multi-particle generator action. More...
#include <GGSMultiParticleGeneratorAction.h>
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... | |
![]() | |
GGSGeneratorAction () | |
Constructor. | |
~GGSGeneratorAction () | |
Destructor. | |
unsigned int | GetNDiscarded () const |
Returns the number of discarded events for the current event generation. More... | |
Additional Inherited Members | |
![]() | |
unsigned long int | _nDiscarded |
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.
|
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
Reimplemented from GGSGeneratorAction.
Definition at line 126 of file GGSMultiParticleGeneratorAction.cpp.