35 #include "G4RunManager.hh" 36 #include "G4UImanager.hh" 37 #include "Randomize.hh" 44 #include "EventAction.hh" 45 #include "SteppingAction.hh" 46 #include "TrackingAction.hh" 49 #include "G4VisExecutive.hh" 53 #include "G4UIExecutive.hh" 58 int main(
int argc,
char** argv) {
61 CLHEP::HepRandom::setTheEngine(
new CLHEP::Ranlux64Engine);
65 G4RunManager * runManager =
new G4RunManager;
71 runManager->SetUserInitialization(det);
72 runManager->SetUserInitialization(phys =
new PhysicsList);
76 runManager->SetUserAction(
new RunAction());
77 runManager->SetUserAction(
new EventAction());
78 runManager->SetUserAction(
new TrackingAction());
79 runManager->SetUserAction(
new SteppingAction());
82 G4UImanager* UI = G4UImanager::GetUIpointer();
86 G4String command =
"/control/execute ";
88 UI->ApplyCommand(command+fileName);
94 G4VisManager* visManager =
new G4VisExecutive;
95 visManager->Initialize();
99 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
int main(int argc, char **argv)