32 #include <boost/python.hpp> 33 #include "G4Version.hh" 34 #include "G4RunManager.hh" 35 #include "G4VUserDetectorConstruction.hh" 36 #include "G4VUserPhysicsList.hh" 37 #include "G4UserRunAction.hh" 38 #include "G4VUserPrimaryGeneratorAction.hh" 39 #include "G4UserEventAction.hh" 40 #include "G4UserStackingAction.hh" 41 #include "G4UserTrackingAction.hh" 42 #include "G4UserSteppingAction.hh" 43 #include "G4Region.hh" 56 = &G4RunManager::SetUserInitialization;
58 = &G4RunManager::SetUserInitialization;
62 = &G4RunManager::SetUserAction;
64 = &G4RunManager::SetUserAction;
66 = &G4RunManager::SetUserAction;
68 = &G4RunManager::SetUserAction;
70 = &G4RunManager::SetUserAction;
72 = &G4RunManager::SetUserAction;
76 = &G4RunManager::DumpRegion;
78 = &G4RunManager::DumpRegion;
90 DefineWorldVolume, 1, 2)
105 class_<G4RunManager, boost::noncopyable>
106 (
"G4RunManager",
"run manager class")
108 .def(
"GetRunManager", &G4RunManager::GetRunManager,
109 "Get an instance of G4RunManager",
110 return_value_policy<reference_existing_object>())
111 .staticmethod(
"GetRunManager")
113 .def(
"SetVerboseLevel", &G4RunManager::SetVerboseLevel)
114 .def(
"GetVerboseLevel", &G4RunManager::GetVerboseLevel)
117 .def(
"BeamOn", &G4RunManager::BeamOn,
118 f_BeamOn((arg(
"n_event"), arg(
"macroFile")=0,
120 "Starts event loop."))
131 .def(
"GetUserDetectorConstruction",
132 &G4RunManager::GetUserDetectorConstruction,
133 return_internal_reference<>())
134 .def(
"GetUserPhysicsList",
135 &G4RunManager::GetUserPhysicsList,
136 return_internal_reference<>())
137 .def(
"GetUserPrimaryGeneratorAction",
138 &G4RunManager::GetUserPrimaryGeneratorAction,
139 return_internal_reference<>())
140 .def(
"GetUserRunAction", &G4RunManager::GetUserRunAction,
141 return_internal_reference<>())
142 .def(
"GetUserEventAction", &G4RunManager::GetUserEventAction,
143 return_internal_reference<>())
144 .def(
"GetUserStackingAction", &G4RunManager::GetUserStackingAction,
145 return_internal_reference<>())
146 .def(
"GetUserTrackingAction", &G4RunManager::GetUserTrackingAction,
147 return_internal_reference<>())
148 .def(
"GetUserSteppingAction", &G4RunManager::GetUserSteppingAction,
149 return_internal_reference<>())
151 .def(
"AbortRun", &G4RunManager::AbortRun,
152 f_AbortRun((arg(
"soft_abort")=
false),
153 "Abort run (event loop)."))
154 .def(
"AbortEvent", &G4RunManager::AbortEvent)
155 .def(
"DefineWorldVolume", &G4RunManager::DefineWorldVolume,
156 f_DefineWorldVolume())
159 .def(
"rndmSaveThisRun", &G4RunManager::rndmSaveThisRun)
160 .def(
"rndmSaveThisEvent", &G4RunManager::rndmSaveThisEvent)
161 .def(
"RestoreRandomNumberStatus",
162 &G4RunManager::RestoreRandomNumberStatus)
163 .def(
"SetRandomNumberStore", &G4RunManager::SetRandomNumberStore)
164 .def(
"GetRandomNumberStore", &G4RunManager::GetRandomNumberStore)
165 .def(
"SetRandomNumberStoreDir", &G4RunManager::SetRandomNumberStoreDir)
167 f_GeometryHasBeenModified())
168 .def(
"PhysicsHasBeenModified", &G4RunManager::PhysicsHasBeenModified)
169 .def(
"GetGeometryToBeOptimized",&G4RunManager::GetGeometryToBeOptimized)
170 .def(
"GetCurrentRun", &G4RunManager::GetCurrentRun,
171 return_value_policy<reference_existing_object>())
172 .def(
"GetCurrentEvent", &G4RunManager::GetCurrentEvent,
173 return_value_policy<reference_existing_object>())
174 .def(
"SetRunIDCounter", &G4RunManager::SetRunIDCounter)
175 .def(
"GetVersionString", &G4RunManager::GetVersionString,
176 return_value_policy<reference_existing_object>())
177 .def(
"GetRandomNumberStoreDir", &G4RunManager::GetRandomNumberStoreDir,
178 return_internal_reference<>())
void(G4RunManager::* f5_SetUserAction)(G4UserTrackingAction *)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_DefineWorldVolume, DefineWorldVolume, 1, 2) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GeometryHasBeenModified
void(G4RunManager::* f4_SetUserAction)(G4UserStackingAction *)
void(G4RunManager::* f1_SetUserAction)(G4UserRunAction *)
void(G4RunManager::* f6_SetUserAction)(G4UserSteppingAction *)
void(G4RunManager::* f2_DumpRegion)(G4Region *) const
void(G4RunManager::* f2_SetUserInitialization)(G4VUserPhysicsList *)
void(G4RunManager::* f1_DumpRegion)(const G4String &) const
void export_G4RunManager()
void(G4RunManager::* f2_SetUserAction)(G4VUserPrimaryGeneratorAction *)
void(G4RunManager::* f1_SetUserInitialization)(G4VUserDetectorConstruction *)
void(G4RunManager::* f3_SetUserAction)(G4UserEventAction *)