31 #include <boost/python.hpp> 32 #include "G4VUserPhysicsList.hh" 42 G4VUserPhysicsList, wrapper<G4VUserPhysicsList> {
45 get_override(
"ConstructParticle")();
49 get_override(
"ConstructProcess")();
53 get_override(
"SetCuts")();
59 = &G4VUserPhysicsList::SetCutValue;
62 = &G4VUserPhysicsList::SetCutValue;
66 G4ParticleDefinition*,
70 G4ParticleDefinition*,
76 StorePhysicsTable, 0, 1)
90 class_<CB_G4VUserPhysicsList, CB_G4VUserPhysicsList*, boost::noncopyable>
91 (
"G4VUserPhysicsList",
"base class of user physics list")
93 .def(
"ConstructParticle",
94 pure_virtual(&G4VUserPhysicsList::ConstructParticle))
95 .def(
"ConstructProcess",
96 pure_virtual(&G4VUserPhysicsList::ConstructProcess))
98 pure_virtual(&G4VUserPhysicsList::SetCuts))
100 .def(
"SetDefaultCutValue", &G4VUserPhysicsList::SetDefaultCutValue)
101 .def(
"GetDefaultCutValue", &G4VUserPhysicsList::GetDefaultCutValue)
103 .def(
"StorePhysicsTable", &G4VUserPhysicsList::StorePhysicsTable,
104 f_StorePhysicsTable())
105 .def(
"IsPhysicsTableRetrieved",
106 &G4VUserPhysicsList::IsPhysicsTableRetrieved)
107 .def(
"IsStoredInAscii", &G4VUserPhysicsList::IsStoredInAscii)
108 .def(
"GetPhysicsTableDirectory",
109 &G4VUserPhysicsList::GetPhysicsTableDirectory,
110 return_value_policy<return_by_value>())
111 .def(
"SetStoredInAscii", &G4VUserPhysicsList::SetStoredInAscii)
112 .def(
"ResetStoredInAscii", &G4VUserPhysicsList::ResetStoredInAscii)
114 .def(
"DumpList", &G4VUserPhysicsList::DumpList)
116 .def(
"DumpCutValuesTable", &G4VUserPhysicsList::DumpCutValuesTable)
117 .def(
"DumpCutValuesTableIfRequested",
118 &G4VUserPhysicsList::DumpCutValuesTableIfRequested)
124 .def(
"SetVerboseLevel", &G4VUserPhysicsList::SetVerboseLevel)
125 .def(
"GetVerboseLevel", &G4VUserPhysicsList::GetVerboseLevel)
126 .def(
"SetCutsWithDefault", &G4VUserPhysicsList::SetCutsWithDefault)
127 .def(
"SetCutsForRegion", &G4VUserPhysicsList::SetCutsForRegion)
128 .def(
"GetApplyCuts", &G4VUserPhysicsList::GetApplyCuts)
void(G4VUserPhysicsList::* f2_SetCutValue)(G4double, const G4String &, const G4String &)
void(G4VUserPhysicsList::* f1_SetCutValue)(G4double, const G4String &)
void(G4VUserPhysicsList::* f1_SetParticleCuts)(G4double, G4ParticleDefinition *, G4Region *)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_StorePhysicsTable, StorePhysicsTable, 0, 1) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetParticleCuts
void(G4VUserPhysicsList::* f2_SetParticleCuts)(G4double, G4ParticleDefinition *, G4Region *)
void export_G4VUserPhysicsList()