40 #ifdef G4MULTITHREADED 41 #include "G4MTRunManager.hh" 43 #include "G4RunManager.hh" 45 #include "G4UImanager.hh" 47 #include "Randomize.hh" 49 #include "G4VisExecutive.hh" 51 #include "G4UIExecutive.hh" 53 #include "FCALTestbeamSetup.hh" 54 #include "G4PhysListFactory.hh" 55 #include "FCALActionInitialization.hh" 58 int main(
int argc,
char** argv) {
61 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
64 #ifdef G4MULTITHREADED 65 G4MTRunManager* runManager =
new G4MTRunManager;
67 G4RunManager* runManager =
new G4RunManager;
71 FCALTestbeamSetup* detector =
new FCALTestbeamSetup;
72 runManager->SetUserInitialization(detector);
74 G4PhysListFactory factory;
75 runManager->SetUserInitialization(factory.ReferencePhysList());
77 runManager->SetUserInitialization(
new FCALActionInitialization);
80 G4UImanager* UImanager = G4UImanager::GetUIpointer();
83 G4VisManager* visManager =
new G4VisExecutive;
84 visManager->Initialize();
88 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
89 UImanager->ApplyCommand(
"/control/execute prerunlArcal.mac");
91 UImanager->ApplyCommand(
"/control/execute gui.mac");
97 G4String command =
"/control/execute ";
99 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)