35 #include "PrimaryGeneratorAction.hh"
36 #include "DetectorConstruction.hh"
75 int numberOfEvent = 1;
76 runManager->
BeamOn(numberOfEvent);
The primary generator action class with particle gun.
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
static MCTruthManager * GetInstance()
void SetConfig(MCTruthConfig *c)
Definition of the MCTruthManager class.
virtual void BeamOn(G4int n_event, const char *macroFile=0, G4int n_select=-1)
int main(int argc, char **argv)
static G4UImanager * GetUIpointer()
Definition of the MCTruthEventAction class.
void AddParticleType(G4int type)
virtual void Initialize()
Definition of the MCTruthTrackingAction class.
Detector construction class to define materials and geometry.
G4int ApplyCommand(const char *aCommand)
virtual void SetUserAction(G4UserRunAction *userAction)