31 #include <boost/python.hpp> 33 #include "G4ProcessTable.hh" 47 (
const G4String&,
const G4ParticleDefinition*)
const 48 = &G4ProcessTable::FindProcess;
51 (
const G4String&,
const G4ProcessManager*)
const 52 = &G4ProcessTable::FindProcess;
59 G4ProcessVector* procVec= procTable-> FindProcesses();
60 G4int nproc= procVec->
size();
61 for(G4int i=0; i< nproc; i++) {
62 procList.append(&(*procVec)[i]);
68 const G4ProcessManager* procManager)
71 G4ProcessVector* procVec= procTable-> FindProcesses(procManager);
72 G4int nproc= procVec->
size();
73 for(G4int i=0; i< nproc; i++) {
74 procList.append(&(*procVec)[i]);
83 G4ProcessVector* procVec= procTable-> FindProcesses(pname);
84 G4int nproc= procVec->
size();
85 for(G4int i=0; i< nproc; i++) {
86 procList.append(&(*procVec)[i]);
95 G4ProcessVector* procVec= procTable-> FindProcesses(ptype);
96 G4int nproc= procVec->
size();
97 for(G4int i=0; i< nproc; i++) {
98 procList.append(&(*procVec)[i]);
105 (
const G4String&, G4bool)= &G4ProcessTable::SetProcessActivation;
109 = &G4ProcessTable::SetProcessActivation;
112 (
const G4String&, G4ParticleDefinition*, G4bool)
113 = &G4ProcessTable::SetProcessActivation;
116 (
const G4String&, G4ProcessManager*, G4bool)
117 = &G4ProcessTable::SetProcessActivation;
120 (G4ProcessType, G4bool)= &G4ProcessTable::SetProcessActivation;
123 (G4ProcessType,
const G4String&, G4bool)
124 = &G4ProcessTable::SetProcessActivation;
127 (G4ProcessType, G4ParticleDefinition*, G4bool)
128 = &G4ProcessTable::SetProcessActivation;
131 (G4ProcessType, G4ProcessManager*, G4bool)
132 = &G4ProcessTable::SetProcessActivation;
145 class_<G4ProcessTable, G4ProcessTable*, boost::noncopyable>
146 (
"G4ProcessTable",
"process table")
148 .def(
"GetProcessTable", &G4ProcessTable::GetProcessTable,
149 return_value_policy<reference_existing_object>())
150 .staticmethod(
"GetProcessTable")
156 return_value_policy<reference_existing_object>())
158 return_value_policy<reference_existing_object>())
160 return_value_policy<reference_existing_object>())
162 return_value_policy<reference_existing_object>())
178 .def(
"GetNameList", &G4ProcessTable::GetNameList,
179 return_internal_reference<>())
180 .def(
"DumpInfo", &G4ProcessTable::DumpInfo, f_DumpInfo())
181 .def(
"SetVerboseLevel", &G4ProcessTable::SetVerboseLevel)
182 .def(
"GetVerboseLevel", &G4ProcessTable::GetVerboseLevel)
list f2_FindProcesses(G4ProcessTable *procTable, const G4ProcessManager *procManager)
G4VProcess *(G4ProcessTable::* f2_FindProcess)(const G4String &, const G4ParticleDefinition *) const
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
float Length(const PFPStruct &pfp)
void(G4ProcessTable::* f7_SetProcessActivation)(G4ProcessType, G4ParticleDefinition *, G4bool)
void(G4ProcessTable::* f3_SetProcessActivation)(const G4String &, G4ParticleDefinition *, G4bool)
void(G4ProcessTable::* f4_SetProcessActivation)(const G4String &, G4ProcessManager *, G4bool)
void(G4ProcessTable::* f6_SetProcessActivation)(G4ProcessType, const G4String &, G4bool)
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
G4VProcess *(G4ProcessTable::* f3_FindProcess)(const G4String &, const G4ProcessManager *) const
list f4_FindProcesses(G4ProcessTable *procTable, G4ProcessType ptype)
void(G4ProcessTable::* f2_SetProcessActivation)(const G4String &, const G4String &, G4bool)
G4VProcess *(G4ProcessTable::* f1_FindProcess)(const G4String &, const G4String &) const
void(G4ProcessTable::* f5_SetProcessActivation)(G4ProcessType, G4bool)
list f3_FindProcesses(G4ProcessTable *procTable, const G4String &pname)
void export_G4ProcessTable()
void(G4ProcessTable::* f1_SetProcessActivation)(const G4String &, G4bool)
list f1_FindProcesses(G4ProcessTable *procTable)
void(G4ProcessTable::* f8_SetProcessActivation)(G4ProcessType, G4ProcessManager *, G4bool)