32 #include <boost/python.hpp>
47 using namespace boost::python;
52 namespace pyG4RunManager {
90 DefineWorldVolume, 1, 2)
98 using namespace pyG4RunManager;
105 class_<G4RunManager, boost::noncopyable>
106 (
"G4RunManager",
"run manager class")
109 "Get an instance of G4RunManager",
110 return_value_policy<reference_existing_object>())
111 .staticmethod(
"GetRunManager")
118 f_BeamOn((arg(
"n_event"), arg(
"macroFile")=0,
120 "Starts event loop."))
131 .def(
"GetUserDetectorConstruction",
133 return_internal_reference<>())
134 .def(
"GetUserPhysicsList",
136 return_internal_reference<>())
137 .def(
"GetUserPrimaryGeneratorAction",
139 return_internal_reference<>())
141 return_internal_reference<>())
143 return_internal_reference<>())
145 return_internal_reference<>())
147 return_internal_reference<>())
149 return_internal_reference<>())
152 f_AbortRun((arg(
"soft_abort")=
false),
153 "Abort run (event loop)."))
156 f_DefineWorldVolume())
161 .def(
"RestoreRandomNumberStatus",
167 f_GeometryHasBeenModified())
171 return_value_policy<reference_existing_object>())
173 return_value_policy<reference_existing_object>())
176 return_value_policy<reference_existing_object>())
178 return_internal_reference<>())
virtual void AbortRun(G4bool softAbort=false)
static G4RunManager * GetRunManager()
const G4Run * GetCurrentRun() const
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
void(G4RunManager::* f1_SetUserAction)(G4UserRunAction *)
const G4UserRunAction * GetUserRunAction() const
const G4String & GetRandomNumberStoreDir() const
const G4UserEventAction * GetUserEventAction() const
const G4VUserPhysicsList * GetUserPhysicsList() const
const G4UserStackingAction * GetUserStackingAction() const
void(G4RunManager::* f2_DumpRegion)(G4Region *) const
void(G4RunManager::* f1_DumpRegion)(const G4String &) const
void SetRandomNumberStoreDir(const G4String &dir)
const G4UserTrackingAction * GetUserTrackingAction() const
void SetVerboseLevel(G4int vl)
virtual void SetUserAction(G4UserRunAction *userAction)
virtual void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
void(G4RunManager::* f3_SetUserAction)(G4UserEventAction *)
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
virtual void BeamOn(G4int n_event, const char *macroFile=0, G4int n_select=-1)
virtual void rndmSaveThisRun()
G4bool GetRandomNumberStore() const
const G4UserSteppingAction * GetUserSteppingAction() const
void(G4RunManager::* f4_SetUserAction)(G4UserStackingAction *)
void GeometryHasBeenModified(G4bool prop=true)
G4bool GetGeometryToBeOptimized()
void export_G4RunManager()
const G4Event * GetCurrentEvent() const
void(G4RunManager::* f5_SetUserAction)(G4UserTrackingAction *)
void(G4RunManager::* f2_SetUserInitialization)(G4VUserPhysicsList *)
void SetRandomNumberStore(G4bool flag)
G4int GetVerboseLevel() const
void(G4RunManager::* f1_SetUserInitialization)(G4VUserDetectorConstruction *)
void DumpRegion(const G4String &rname) const
virtual void RestoreRandomNumberStatus(const G4String &fileN)
void PhysicsHasBeenModified()
virtual void rndmSaveThisEvent()
virtual void AbortEvent()
void(G4RunManager::* f2_SetUserAction)(G4VUserPrimaryGeneratorAction *)
typedef void(XMLCALL *XML_ElementDeclHandler)(void *userData
virtual void Initialize()
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
const G4String & GetVersionString() const
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const
void SetRunIDCounter(G4int i)
void(G4RunManager::* f6_SetUserAction)(G4UserSteppingAction *)