32 #include "HepMCG4AsciiReader.hh"
33 #include "HepMCG4PythiaInterface.hh"
42 currentGeneratorName=
"particleGun";
44 #ifdef G4LIB_USE_PYTHIA
50 gentypeMap[
"particleGun"]= particleGun;
51 gentypeMap[
"hepmcAscii"]= hepmcAscii;
52 gentypeMap[
"pythia"]= pythiaGen;
67 currentGenerator-> GeneratePrimaryVertex(anEvent);
69 G4Exception(
"H02PrimaryGeneratorAction::GeneratePrimaries",
71 "Generator is not instanciated.");
Definition of the H02PrimaryGeneratorAction class.
H02PrimaryGeneratorAction()
A generic interface class with Pythia event generator via HepMC.
Definition of the H02PrimaryGeneratorMessenger class.
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
~H02PrimaryGeneratorAction()
virtual void GeneratePrimaries(G4Event *anEvent)