Main program of the biasing/ReverseMC01 example.
More...
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.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 71 of file exampleRMC01.cc.
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);
106 G4VisManager* visManager =
new G4VisExecutive;
107 visManager->Initialize();
112 G4UImanager* UImanager = G4UImanager::GetUIpointer();
116 G4String command =
"/control/execute ";
118 UImanager->ApplyCommand(command+fileName);
123 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
133 delete theRunManager;