#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "FCALTestbeamSetup.hh"
#include "G4PhysListFactory.hh"
#include "FCALActionInitialization.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 58 of file lArCal.cc.
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);