Main program of the medical/fanoCavity2 example.
More...
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
#include "ActionInitialization.hh"
#include "DetectorConstruction.hh"
#include "PhysicsList.hh"
#include "PrimaryGeneratorAction.hh"
#include "RunAction.hh"
#include "EventAction.hh"
#include "TrackingAction.hh"
#include "SteppingAction.hh"
#include "SteppingVerbose.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the medical/fanoCavity2 example.
Definition in file fanoCavity2.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 64 of file fanoCavity2.cc.
67 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
70 #ifdef G4MULTITHREADED 71 G4MTRunManager* runManager =
new G4MTRunManager;
72 G4int nThreads = G4Threading::G4GetNumberOfCores();
73 if (argc==3) nThreads = G4UIcommand::ConvertToInt(argv[2]);
74 runManager->SetNumberOfThreads(nThreads);
76 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
77 G4RunManager* runManager =
new G4RunManager;
93 runManager->SetUserInitialization(phys =
new PhysicsList());
96 runManager->SetUserInitialization(
new ActionInitialization(det));
100 G4UImanager* UImanager = G4UImanager::GetUIpointer();
103 G4VisManager* visManager =
new G4VisExecutive;
104 visManager->Initialize();
109 G4String command =
"/control/execute ";
111 UImanager->ApplyCommand(command+fileName);
117 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
119 UImanager->ApplyCommand(
"/control/execute vis.mac");
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList