33 #include <boost/python.hpp>
48 using namespace boost::python;
53 namespace pyG4RunManager {
76 #if G4VERSION_NUMBER >= 932
96 DefineWorldVolume, 1, 2);
100 using namespace pyG4RunManager;
107 class_<G4RunManager>(
"G4RunManager",
"run manager class")
110 "Get an instance of G4RunManager",
111 return_value_policy<reference_existing_object>())
112 .staticmethod(
"GetRunManager")
119 f_BeamOn((arg(
"n_event"), arg(
"macroFile")=0,
121 "Starts event loop."))
132 .def(
"GetUserDetectorConstruction",
134 return_internal_reference<>())
135 .def(
"GetUserPhysicsList",
137 return_internal_reference<>())
138 .def(
"GetUserPrimaryGeneratorAction",
140 return_internal_reference<>())
142 return_internal_reference<>())
144 return_internal_reference<>())
146 return_internal_reference<>())
148 return_internal_reference<>())
150 return_internal_reference<>())
153 f_AbortRun((arg(
"soft_abort")=
false),
154 "Abort run (event loop)."))
157 f_DefineWorldVolume())
162 .def(
"RestoreRandomNumberStatus",
171 return_value_policy<reference_existing_object>())
173 return_value_policy<reference_existing_object>())
176 #if G4VERSION_NUMBER >= 932
178 return_value_policy<reference_existing_object>())
180 return_internal_reference<>())