32 #include <boost/python.hpp>
48 G4int nproc= procVec-> size();
49 for(
G4int i=0; i< nproc; i++) {
50 procList.append(&(*procVec)[i]);
62 G4int nproc= procVec-> size();
63 for(
G4int i=0; i< nproc; i++) {
64 procList.append(&(*procVec)[i]);
78 G4int nproc= procVec-> size();
79 for(
G4int i=0; i< nproc; i++) {
80 procList.append(&(*procVec)[i]);
86 f_GetAtRestProcessVector, 1, 2)
94 G4int nproc= procVec-> size();
95 for(
G4int i=0; i< nproc; i++) {
96 procList.append(&(*procVec)[i]);
102 f_GetAlongStepProcessVector, 1, 2)
110 G4int nproc= procVec-> size();
111 for(
G4int i=0; i< nproc; i++) {
112 procList.append(&(*procVec)[i]);
118 f_GetPostStepProcessVector, 1, 2)
122 GetProcessVectorIndex, 2, 3)
125 GetAtRestIndex, 1, 2)
128 GetAlongStepIndex, 1, 2)
131 GetPostStepIndex, 1, 2)
135 AddRestProcess, 1, 2)
137 AddDiscreteProcess, 1, 2)
139 AddContinuousProcess, 1, 2)
142 SetProcessOrdering, 2, 3)
173 class_<G4ProcessManager, G4ProcessManager*, boost::noncopyable>
174 (
"G4ProcessManager",
"process manager class", no_init)
180 g_GetProcessVector())
181 .def(
"GetAtRestProcessVector", f_GetAtRestProcessVector,
182 g_GetAtRestProcessVector())
183 .def(
"GetAlongStepProcessVector", f_GetAlongStepProcessVector,
184 g_GetAlongStepProcessVector())
185 .def(
"GetPostStepProcessVector", f_GetPostStepProcessVector,
186 g_GetPostStepProcessVector())
187 .def(
"GetProcessVectorIndex",
189 f_GetProcessVectorIndex())
193 f_GetAlongStepIndex())
195 f_GetPostStepIndex())
202 f_AddDiscreteProcess())
204 f_AddContinuousProcess())
208 f_SetProcessOrdering())
209 .def(
"SetProcessOrderingToFirst",
211 .def(
"SetProcessOrderingToLast",
214 .def(
"RemoveProcess", f1_RemoveProcess,
215 return_value_policy<reference_existing_object>())
217 return_value_policy<reference_existing_object>())
220 return_value_policy<reference_existing_object>())
222 return_value_policy<reference_existing_object>())
227 return_internal_reference<>())
235 enum_<G4ProcessVectorTypeIndex>(
"G4ProcessVectorTypeIndex")
236 .value(
"typeGPIL", typeGPIL)
240 enum_<G4ProcessVectorDoItIndex>(
"G4ProcessVectorDoItIndex")
247 enum_<G4ProcessVectorOrdering>(
"G4ProcessVectorOrdering")
G4int GetProcessVectorIndex(G4VProcess *aProcess, G4ProcessVectorDoItIndex idx, G4ProcessVectorTypeIndex typ=typeGPIL) const
void export_G4ProcessManager()
G4int GetAlongStepIndex(G4VProcess *aProcess, G4ProcessVectorTypeIndex typ=typeGPIL) const
G4ProcessVectorTypeIndex typ
void SetProcessOrderingToFirst(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
BOOST_PYTHON_FUNCTION_OVERLOADS(f_func2, func2, 1, 2)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4int GetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
void SetVerboseLevel(G4int value)
G4int GetVerboseLevel() const
void SetParticleType(const G4ParticleDefinition *)
G4int GetAtRestIndex(G4VProcess *aProcess, G4ProcessVectorTypeIndex typ=typeGPIL) const
G4VProcess *(G4ProcessManager::* f1_SetProcessActivation)(G4VProcess *, G4bool)
G4bool(G4ProcessManager::* f1_GetProcessActivation)(G4VProcess *) const
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
list f_GetProcessVector(const G4ProcessManager *procMgr, G4ProcessVectorDoItIndex idx, G4ProcessVectorTypeIndex typ=typeGPIL)
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)
G4ParticleDefinition * GetParticleType() const
G4VProcess *(G4ProcessManager::* f2_RemoveProcess)(G4int)
void SetProcessOrderingToLast(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4int GetPostStepIndex(G4VProcess *aProcess, G4ProcessVectorTypeIndex typ=typeGPIL) const
list f_GetProcessList(const G4ProcessManager *procMgr)
G4int GetProcessIndex(G4VProcess *) const
G4int AddRestProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4VProcess *(G4ProcessManager::* f2_SetProcessActivation)(G4int, G4bool)
G4int GetProcessListLength() const
G4bool(G4ProcessManager::* f2_GetProcessActivation)(G4int) const
G4int AddContinuousProcess(G4VProcess *aProcess, G4int ord=ordDefault)