Main program of the medical/fanoCavity example.
More...
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
#include "DetectorConstruction.hh"
#include "PhysicsList.hh"
#include "PrimaryGeneratorAction.hh"
#include "ActionInitialization.hh"
#include "RunAction.hh"
#include "EventAction.hh"
#include "TrackingAction.hh"
#include "SteppingAction.hh"
#include "SteppingVerbose.hh"
#include "StackingAction.hh"
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
Main program of the medical/fanoCavity example.
Definition in file fanoCavity.cc.
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 65 of file fanoCavity.cc.
68 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
72 #ifdef G4MULTITHREADED 73 G4MTRunManager* runManager =
new G4MTRunManager;
74 G4int nThreads = G4Threading::G4GetNumberOfCores();
75 if (argc==3) nThreads = G4UIcommand::ConvertToInt(argv[2]);
76 runManager->SetNumberOfThreads(nThreads);
78 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
79 G4RunManager* runManager =
new G4RunManager;
87 runManager->SetUserInitialization(phys =
new PhysicsList(det));
90 runManager->SetUserInitialization(
new ActionInitialization(det));
107 G4UImanager* UI = G4UImanager::GetUIpointer();
111 G4String command =
"/control/execute ";
113 UI->ApplyCommand(command+fileName);
119 G4VisManager* visManager =
new G4VisExecutive;
120 visManager->Initialize();
124 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList