39 #ifdef G4MULTITHREADED 40 #include "G4MTRunManager.hh" 42 #include "G4RunManager.hh" 44 #include "G4UImanager.hh" 46 #include "Randomize.hh" 49 #include "G4VisExecutive.hh" 53 #include "G4UIExecutive.hh" 56 #include "FCALTestbeamSetup.hh" 58 #include "FCALActionInitialization.hh" 61 int main(
int argc,
char** argv) {
64 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
67 #ifdef G4MULTITHREADED 68 G4MTRunManager* runManager =
new G4MTRunManager;
70 G4RunManager* runManager =
new G4RunManager;
74 FCALTestbeamSetup* detector =
new FCALTestbeamSetup;
75 runManager->SetUserInitialization(detector);
77 G4PhysListFactory factory;
78 runManager->SetUserInitialization(factory.ReferencePhysList());
80 runManager->SetUserInitialization(
new FCALActionInitialization);
83 G4UImanager* UImanager = G4UImanager::GetUIpointer();
87 G4VisManager* visManager =
new G4VisExecutive;
88 visManager->Initialize();
94 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
96 UImanager->ApplyCommand(
"/control/execute prerunlArcal.mac");
99 UImanager->ApplyCommand(
"/control/execute gui.mac");
106 G4String command =
"/control/execute ";
108 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)