Main program of the medical/electronScattering example.
More...
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
#include "DetectorConstruction.hh"
#include "PhysicsList.hh"
#include "ActionInitialization.hh"
#include "RunAction.hh"
#include "SteppingVerbose.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the medical/electronScattering example.
Definition in file electronScattering.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 61 of file electronScattering.cc.
64 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
66 #ifdef G4MULTITHREADED 67 G4MTRunManager* runManager =
new G4MTRunManager;
68 runManager->SetNumberOfThreads(G4Threading::G4GetNumberOfCores());
70 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
71 G4RunManager* runManager =
new G4RunManager;
77 runManager->SetUserInitialization(detector);
79 runManager->SetUserInitialization(
new PhysicsList());
82 runManager->SetUserInitialization(
new ActionInitialization(detector));
85 G4UImanager* UI = G4UImanager::GetUIpointer();
89 G4String command =
"/control/execute ";
91 UI->ApplyCommand(command+fileName);
97 G4VisManager* visManager =
new G4VisExecutive;
98 visManager->Initialize();
102 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList