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