Main program of the biasing/ReverseMC01 example.
More...
#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "G4AdjointSimManager.hh"
#include "RMC01DetectorConstruction.hh"
#include "RMC01PrimaryGeneratorAction.hh"
#include "RMC01EventAction.hh"
#include "RMC01RunAction.hh"
#include "G4AdjointPhysicsList.hh"
#include "RMC01AdjointEventAction.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the biasing/ReverseMC01 example.
Definition in file exampleRMC01.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 67 of file exampleRMC01.cc.
70 G4UIExecutive* ui =
nullptr;
72 ui =
new G4UIExecutive(argc, argv);
76 G4RunManager * theRunManager =
new G4RunManager;
79 RMC01DetectorConstruction* detector =
new RMC01DetectorConstruction();
83 theRunManager->SetUserInitialization(detector);
84 theRunManager->SetUserInitialization(
new G4AdjointPhysicsList);
86 theRunManager->SetUserAction(
new RMC01PrimaryGeneratorAction);
87 theRunManager->SetUserAction(
new RMC01EventAction);
88 RMC01RunAction* theRunAction =
new RMC01RunAction;
89 theRunManager->SetUserAction(theRunAction);
94 G4AdjointSimManager* theAdjointSimManager
95 = G4AdjointSimManager::GetInstance();
100 theAdjointSimManager->SetAdjointRunAction(theRunAction);
102 theAdjointSimManager->SetAdjointEventAction(
new RMC01EventAction);
105 G4VisManager* visManager =
new G4VisExecutive;
106 visManager->Initialize();
109 G4UImanager* UImanager = G4UImanager::GetUIpointer();
113 G4String command =
"/control/execute ";
115 UImanager->ApplyCommand(command+fileName);
125 delete theRunManager;