32 #include <boost/python.hpp> 33 #include "G4VUserPhysicsList.hh" 43 G4VUserPhysicsList, wrapper<G4VUserPhysicsList> {
46 get_override(
"ConstructParticle")();
50 get_override(
"ConstructProcess")();
54 get_override(
"SetCuts")();
60 = &G4VUserPhysicsList::SetCutValue;
63 = &G4VUserPhysicsList::SetCutValue;
67 G4ParticleDefinition*,
71 G4ParticleDefinition*,
77 StorePhysicsTable, 0, 1)
91 class_<CB_G4VUserPhysicsList, CB_G4VUserPhysicsList*, boost::noncopyable>
92 (
"G4VUserPhysicsList",
"base class of user physics list")
94 .def(
"ConstructParticle",
95 pure_virtual(&G4VUserPhysicsList::ConstructParticle))
96 .def(
"ConstructProcess",
97 pure_virtual(&G4VUserPhysicsList::ConstructProcess))
99 pure_virtual(&G4VUserPhysicsList::SetCuts))
101 .def(
"SetDefaultCutValue", &G4VUserPhysicsList::SetDefaultCutValue)
102 .def(
"GetDefaultCutValue", &G4VUserPhysicsList::GetDefaultCutValue)
104 .def(
"StorePhysicsTable", &G4VUserPhysicsList::StorePhysicsTable,
105 f_StorePhysicsTable())
106 .def(
"IsPhysicsTableRetrieved",
107 &G4VUserPhysicsList::IsPhysicsTableRetrieved)
108 .def(
"IsStoredInAscii", &G4VUserPhysicsList::IsStoredInAscii)
109 .def(
"GetPhysicsTableDirectory",
110 &G4VUserPhysicsList::GetPhysicsTableDirectory,
111 return_value_policy<return_by_value>())
112 .def(
"SetStoredInAscii", &G4VUserPhysicsList::SetStoredInAscii)
113 .def(
"ResetStoredInAscii", &G4VUserPhysicsList::ResetStoredInAscii)
115 .def(
"DumpList", &G4VUserPhysicsList::DumpList)
117 .def(
"DumpCutValuesTable", &G4VUserPhysicsList::DumpCutValuesTable)
118 .def(
"DumpCutValuesTableIfRequested",
119 &G4VUserPhysicsList::DumpCutValuesTableIfRequested)
125 .def(
"SetVerboseLevel", &G4VUserPhysicsList::SetVerboseLevel)
126 .def(
"GetVerboseLevel", &G4VUserPhysicsList::GetVerboseLevel)
127 .def(
"SetCutsWithDefault", &G4VUserPhysicsList::SetCutsWithDefault)
128 .def(
"SetCutsForRegion", &G4VUserPhysicsList::SetCutsForRegion)
129 .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()