9#include "G4VUserPrimaryGeneratorAction.hh"
10#include "G4ParticleGun.hh"
85 G4ParticleGun* gparticleGun;
93 std::vector<GparticlePtr> gparticles;
Generates primary vertices for each event.
void GeneratePrimaries(G4Event *event) override
Generates the primaries for the given event.
~GPrimaryGeneratorAction() override
Destructor. Releases the internally owned particle gun.
GPrimaryGeneratorAction(std::shared_ptr< GOptions > gopts)
Constructs the primary generator action.
constexpr const char * GPRIMARYGENERATORACTION_LOGGER
Namespace collecting helpers for the primary generator action.
GOptions defineOptions()
Returns the options associated with the primary generator action.