47 #include "G4RunManager.hh" 48 #include "G4UImanager.hh" 50 #include "Randomize.hh" 52 #include "G4VisExecutive.hh" 53 #include "G4UIExecutive.hh" 55 #include "G4AdjointSimManager.hh" 56 #include "RMC01DetectorConstruction.hh" 57 #include "RMC01PrimaryGeneratorAction.hh" 58 #include "RMC01EventAction.hh" 59 #include "RMC01RunAction.hh" 60 #include "G4AdjointPhysicsList.hh" 62 #include "G4AdjointSimManager.hh" 63 #include "RMC01AdjointEventAction.hh" 67 int main(
int argc,
char** argv) {
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;
int main(int argc, char **argv)