34 #ifdef G4MULTITHREADED 35 #include "G4MTRunManager.hh" 37 #include "G4RunManager.hh" 40 #include "G4UImanager.hh" 41 #include "Randomize.hh" 46 #include "ActionInitialization.hh" 49 #include "EventAction.hh" 50 #include "TrackingAction.hh" 51 #include "SteppingAction.hh" 52 #include "SteppingVerbose.hh" 53 #include "StackingAction.hh" 56 #include "G4VisExecutive.hh" 60 #include "G4UIExecutive.hh" 65 int main(
int argc,
char** argv) {
68 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
72 #ifdef G4MULTITHREADED 73 G4MTRunManager* runManager =
new G4MTRunManager;
74 G4int nThreads = G4Threading::G4GetNumberOfCores();
75 if (argc==3) nThreads = G4UIcommand::ConvertToInt(argv[2]);
76 runManager->SetNumberOfThreads(nThreads);
78 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
79 G4RunManager* runManager =
new G4RunManager;
87 runManager->SetUserInitialization(phys =
new PhysicsList(det));
90 runManager->SetUserInitialization(
new ActionInitialization(det));
107 G4UImanager* UI = G4UImanager::GetUIpointer();
111 G4String command =
"/control/execute ";
113 UI->ApplyCommand(command+fileName);
119 G4VisManager* visManager =
new G4VisExecutive;
120 visManager->Initialize();
124 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
int main(int argc, char **argv)
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList