48 #ifdef G4MULTITHREADED 49 #include "G4MTRunManager.hh" 50 #include "G4Threading.hh" 53 #include "G4RunManager.hh" 57 #include "Randomize.hh" 60 #include "TSDetectorConstruction.hh" 61 #include "TSPhysicsList.hh" 62 #include "TSActionInitialization.hh" 64 #include "G4UImanager.hh" 65 #include "G4VisExecutive.hh" 66 #include "G4UIExecutive.hh" 68 int main(
int argc,
char** argv)
73 G4UIExecutive* ui = 0;
75 ui =
new G4UIExecutive(argc, argv);
80 CLHEP::HepRandom::setTheSeed(1245214);
84 runmanager->SetUserInitialization(
new TSDetectorConstruction);
86 runmanager->SetUserInitialization(
new TSPhysicsList);
88 runmanager->SetUserInitialization(
new TSActionInitialization);
90 runmanager->Initialize();
95 G4VisManager* visManager =
new G4VisExecutive;
98 visManager->Initialize();
101 G4UImanager* UImanager = G4UImanager::GetUIpointer();
108 G4String command =
"/control/execute ";
110 UImanager->ApplyCommand(command+fileName);
114 UImanager->ApplyCommand(
"/control/execute vis.mac");
int main(int argc, char **argv)