31 #include <boost/python.hpp> 32 #include "G4Version.hh" 33 #include "G4RunManager.hh" 34 #include "G4VUserDetectorConstruction.hh" 35 #include "G4VUserPhysicsList.hh" 36 #include "G4UserRunAction.hh" 37 #include "G4VUserPrimaryGeneratorAction.hh" 38 #include "G4UserEventAction.hh" 39 #include "G4UserStackingAction.hh" 40 #include "G4UserTrackingAction.hh" 41 #include "G4UserSteppingAction.hh" 42 #include "G4Region.hh" 55 = &G4RunManager::SetUserInitialization;
57 = &G4RunManager::SetUserInitialization;
61 = &G4RunManager::SetUserAction;
63 = &G4RunManager::SetUserAction;
65 = &G4RunManager::SetUserAction;
67 = &G4RunManager::SetUserAction;
69 = &G4RunManager::SetUserAction;
71 = &G4RunManager::SetUserAction;
75 = &G4RunManager::DumpRegion;
77 = &G4RunManager::DumpRegion;
89 DefineWorldVolume, 1, 2)
104 class_<G4RunManager, boost::noncopyable>
105 (
"G4RunManager",
"run manager class")
107 .def(
"GetRunManager", &G4RunManager::GetRunManager,
108 "Get an instance of G4RunManager",
109 return_value_policy<reference_existing_object>())
110 .staticmethod(
"GetRunManager")
112 .def(
"SetVerboseLevel", &G4RunManager::SetVerboseLevel)
113 .def(
"GetVerboseLevel", &G4RunManager::GetVerboseLevel)
116 .def(
"BeamOn", &G4RunManager::BeamOn,
117 f_BeamOn((arg(
"n_event"), arg(
"macroFile")=0,
119 "Starts event loop."))
130 .def(
"GetUserDetectorConstruction",
131 &G4RunManager::GetUserDetectorConstruction,
132 return_internal_reference<>())
133 .def(
"GetUserPhysicsList",
134 &G4RunManager::GetUserPhysicsList,
135 return_internal_reference<>())
136 .def(
"GetUserPrimaryGeneratorAction",
137 &G4RunManager::GetUserPrimaryGeneratorAction,
138 return_internal_reference<>())
139 .def(
"GetUserRunAction", &G4RunManager::GetUserRunAction,
140 return_internal_reference<>())
141 .def(
"GetUserEventAction", &G4RunManager::GetUserEventAction,
142 return_internal_reference<>())
143 .def(
"GetUserStackingAction", &G4RunManager::GetUserStackingAction,
144 return_internal_reference<>())
145 .def(
"GetUserTrackingAction", &G4RunManager::GetUserTrackingAction,
146 return_internal_reference<>())
147 .def(
"GetUserSteppingAction", &G4RunManager::GetUserSteppingAction,
148 return_internal_reference<>())
150 .def(
"AbortRun", &G4RunManager::AbortRun,
151 f_AbortRun((arg(
"soft_abort")=
false),
152 "Abort run (event loop)."))
153 .def(
"AbortEvent", &G4RunManager::AbortEvent)
154 .def(
"DefineWorldVolume", &G4RunManager::DefineWorldVolume,
155 f_DefineWorldVolume())
158 .def(
"rndmSaveThisRun", &G4RunManager::rndmSaveThisRun)
159 .def(
"rndmSaveThisEvent", &G4RunManager::rndmSaveThisEvent)
160 .def(
"RestoreRandomNumberStatus",
161 &G4RunManager::RestoreRandomNumberStatus)
162 .def(
"SetRandomNumberStore", &G4RunManager::SetRandomNumberStore)
163 .def(
"GetRandomNumberStore", &G4RunManager::GetRandomNumberStore)
164 .def(
"SetRandomNumberStoreDir", &G4RunManager::SetRandomNumberStoreDir)
166 f_GeometryHasBeenModified())
167 .def(
"PhysicsHasBeenModified", &G4RunManager::PhysicsHasBeenModified)
168 .def(
"GetGeometryToBeOptimized",&G4RunManager::GetGeometryToBeOptimized)
169 .def(
"GetCurrentRun", &G4RunManager::GetCurrentRun,
170 return_value_policy<reference_existing_object>())
171 .def(
"GetCurrentEvent", &G4RunManager::GetCurrentEvent,
172 return_value_policy<reference_existing_object>())
173 .def(
"SetRunIDCounter", &G4RunManager::SetRunIDCounter)
174 .def(
"GetVersionString", &G4RunManager::GetVersionString,
175 return_value_policy<reference_existing_object>())
176 .def(
"GetRandomNumberStoreDir", &G4RunManager::GetRandomNumberStoreDir,
177 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 *)