31 #include <boost/python.hpp>
46 using namespace boost::python;
51 namespace pyG4RunManager {
89 DefineWorldVolume, 1, 2)
97 using namespace pyG4RunManager;
104 class_<G4RunManager, boost::noncopyable>
105 (
"G4RunManager",
"run manager class")
108 "Get an instance of G4RunManager",
109 return_value_policy<reference_existing_object>())
110 .staticmethod(
"GetRunManager")
117 f_BeamOn((arg(
"n_event"), arg(
"macroFile")=0,
119 "Starts event loop."))
130 .def(
"GetUserDetectorConstruction",
132 return_internal_reference<>())
133 .def(
"GetUserPhysicsList",
135 return_internal_reference<>())
136 .def(
"GetUserPrimaryGeneratorAction",
138 return_internal_reference<>())
140 return_internal_reference<>())
142 return_internal_reference<>())
144 return_internal_reference<>())
146 return_internal_reference<>())
148 return_internal_reference<>())
151 f_AbortRun((arg(
"soft_abort")=
false),
152 "Abort run (event loop)."))
155 f_DefineWorldVolume())
160 .def(
"RestoreRandomNumberStatus",
166 f_GeometryHasBeenModified())
170 return_value_policy<reference_existing_object>())
172 return_value_policy<reference_existing_object>())
175 return_value_policy<reference_existing_object>())
177 return_internal_reference<>())