32 #include <boost/python.hpp>
35 using namespace boost::python;
40 namespace pyG4VUserPhysicsList {
46 get_override(
"ConstructParticle")();
50 get_override(
"ConstructProcess")();
54 get_override(
"SetCuts")();
77 StorePhysicsTable, 0, 1)
84 using namespace pyG4VUserPhysicsList;
91 class_<CB_G4VUserPhysicsList, CB_G4VUserPhysicsList*, boost::noncopyable>
92 (
"G4VUserPhysicsList",
"base class of user physics list")
94 .def(
"ConstructParticle",
96 .def(
"ConstructProcess",
105 f_StorePhysicsTable())
106 .def(
"IsPhysicsTableRetrieved",
109 .def(
"GetPhysicsTableDirectory",
111 return_value_policy<return_by_value>())
118 .def(
"DumpCutValuesTableIfRequested",
void SetDefaultCutValue(G4double newCutValue)
void DumpCutValuesTableIfRequested()
void SetCutValue(G4double aCut, const G4String &pname)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
const G4String & GetPhysicsTableDirectory() const
void export_G4VUserPhysicsList()
void(G4VUserPhysicsList::* f2_SetCutValue)(G4double, const G4String &, const G4String &)
typedef void(XMLCALL *XML_ElementDeclHandler)(void *userData
void(G4VUserPhysicsList::* f1_SetParticleCuts)(G4double, G4ParticleDefinition *, G4Region *)
G4bool GetApplyCuts(const G4String &name) const
void SetCutsForRegion(G4double aCut, const G4String &rname)
G4int GetVerboseLevel() const
void SetParticleCuts(G4double cut, G4ParticleDefinition *particle, G4Region *region=0)
void DumpCutValuesTable(G4int flag=1)
G4double GetDefaultCutValue() const
void(G4VUserPhysicsList::* f1_SetCutValue)(G4double, const G4String &)
void SetVerboseLevel(G4int value)
G4bool IsPhysicsTableRetrieved() const
G4bool StorePhysicsTable(const G4String &directory=".")
void SetCutsWithDefault()
G4bool IsStoredInAscii() const
void(G4VUserPhysicsList::* f2_SetParticleCuts)(G4double, G4ParticleDefinition *, G4Region *)
void ResetStoredInAscii()
virtual void ConstructParticle()=0
virtual void ConstructProcess()=0