35 #include "G4RunManager.hh" 36 #include "G4UImanager.hh" 37 #include "Randomize.hh" 44 #include "EventAction.hh" 45 #include "SteppingAction.hh" 47 #include "G4VisExecutive.hh" 48 #include "G4UIExecutive.hh" 52 int main(
int argc,
char** argv) {
55 G4UIExecutive* ui =
nullptr;
57 ui =
new G4UIExecutive(argc, argv);
62 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanluxEngine());
65 G4RunManager * runManager =
new G4RunManager;
74 G4VisManager* visManager =
new G4VisExecutive;
75 visManager->Initialize();
79 runManager->SetUserAction(run =
new RunAction(det,prim));
80 runManager->SetUserAction(
new EventAction(run));
81 runManager->SetUserAction(
new SteppingAction(det,prim,run));
84 G4UImanager* UImanager = G4UImanager::GetUIpointer();
93 G4String command =
"/control/execute ";
95 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)