46 #include "G4RunManager.hh" 47 #include "G4UImanager.hh" 49 #include "Randomize.hh" 52 #include "G4VisExecutive.hh" 56 #include "G4UIExecutive.hh" 59 #include "G4AdjointSimManager.hh" 60 #include "RMC01DetectorConstruction.hh" 61 #include "RMC01PrimaryGeneratorAction.hh" 62 #include "RMC01EventAction.hh" 63 #include "RMC01RunAction.hh" 64 #include "G4AdjointPhysicsList.hh" 66 #include "G4AdjointSimManager.hh" 67 #include "RMC01AdjointEventAction.hh" 71 int main(
int argc,
char** 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);
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;
int main(int argc, char **argv)