18#include <G4UIcmdWithABool.hh>
19#include <G4UIcmdWithAString.hh>
20#include <G4UIcmdWithAnInteger.hh>
21#include <G4UIdirectory.hh>
27 fPrimaryGeneratorAction(action),
29 fSkipUnknownParticlesCmd(0)
33 fDirectory =
new G4UIdirectory(
"/mcPrimaryGenerator/");
34 fDirectory->SetGuidance(
"TGeant4 primary generator action commands.");
37 new G4UIcmdWithABool(
"/mcPrimaryGenerator/skipUnknownParticles",
this);
39 "Switch on|off applying range cuts for gamma");
Definition of the TG4PrimaryGeneratorAction class.
Definition of the TG4PrimaryGeneratorMessenger class.
Primary generator action defined via TVirtualMCStack and TVirtualMCApplication.
void SetSkipUnknownParticles(G4bool value)
Set the option to skip particles which do not exist in Geant4.
G4UIcmdWithABool * fSkipUnknownParticlesCmd
command: /mcPrimaryGenerator/skipUnknownParticles
virtual ~TG4PrimaryGeneratorMessenger()
TG4PrimaryGeneratorAction * fPrimaryGeneratorAction
associated class
virtual void SetNewValue(G4UIcommand *command, G4String string)
G4UIdirectory * fDirectory
command directory
TG4PrimaryGeneratorMessenger()
Not implemented.