#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.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 61 of file lArCal.cc.
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);