Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4ProcessManager.cc File Reference
#include <boost/python.hpp>
#include "G4ProcessManager.hh"
Include dependency graph for pyG4ProcessManager.cc:

Go to the source code of this file.

Namespaces

 pyG4ProcessManager
 

Functions

list pyG4ProcessManager::f_GetProcessList (const G4ProcessManager *procMgr)
 
list pyG4ProcessManager::f_GetProcessVector (const G4ProcessManager *procMgr, G4ProcessVectorDoItIndex idx, G4ProcessVectorTypeIndex typ=typeGPIL)
 
 pyG4ProcessManager::BOOST_PYTHON_FUNCTION_OVERLOADS (g_GetProcessVector, f_GetProcessVector, 2, 3) list f_GetAtRestProcessVector(const G4ProcessManager *procMgr
 
void export_G4ProcessManager ()
 

Variables

G4ProcessVectorTypeIndex pyG4ProcessManager::typ
 
G4VProcess *(G4ProcessManager::* pyG4ProcessManager::f2_RemoveProcess )(G4int) = &G4ProcessManager::RemoveProcess
 
G4VProcess *(G4ProcessManager::* pyG4ProcessManager::f1_SetProcessActivation )(G4VProcess *, G4bool) = &G4ProcessManager::SetProcessActivation
 
G4VProcess *(G4ProcessManager::* pyG4ProcessManager::f2_SetProcessActivation )(G4int, G4bool) = &G4ProcessManager::SetProcessActivation
 
G4bool(G4ProcessManager::* pyG4ProcessManager::f1_GetProcessActivation )(G4VProcess *) const = &G4ProcessManager::GetProcessActivation
 
G4bool(G4ProcessManager::* pyG4ProcessManager::f2_GetProcessActivation )(G4int) const = &G4ProcessManager::GetProcessActivation
 

Function Documentation

void export_G4ProcessManager ( )

Definition at line 171 of file pyG4ProcessManager.cc.

172 {
173  class_<G4ProcessManager, G4ProcessManager*, boost::noncopyable>
174  ("G4ProcessManager", "process manager class", no_init)
175  // ---
176  .def("GetProcessList", f_GetProcessList)
177  .def("GetProcessListLength", &G4ProcessManager::GetProcessListLength)
178  .def("GetProcessIndex", &G4ProcessManager::GetProcessIndex)
179  .def("GetProcessVector", f_GetProcessVector,
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())
190  .def("GetAtRestIndex", &G4ProcessManager::GetAtRestIndex,
191  f_GetAtRestIndex())
192  .def("GetAlongStepIndex", &G4ProcessManager::GetAlongStepIndex,
193  f_GetAlongStepIndex())
194  .def("GetPostStepIndex", &G4ProcessManager::GetPostStepIndex,
195  f_GetPostStepIndex())
196  // ----
197  .def("AddProcess", &G4ProcessManager::AddProcess,
198  f_AddProcess())
199  .def("AddRestProcess", &G4ProcessManager::AddRestProcess,
200  f_AddRestProcess())
201  .def("AddDiscreteProcess", &G4ProcessManager::AddDiscreteProcess,
202  f_AddDiscreteProcess())
203  .def("AddContinuousProcess", &G4ProcessManager::AddContinuousProcess,
204  f_AddContinuousProcess())
205  // ---
206  .def("GetProcessOrdering", &G4ProcessManager::GetProcessOrdering)
207  .def("SetProcessOrdering", &G4ProcessManager::SetProcessOrdering,
208  f_SetProcessOrdering())
209  .def("SetProcessOrderingToFirst",
211  .def("SetProcessOrderingToLast",
213  // ---
214  .def("RemoveProcess", f1_RemoveProcess,
215  return_value_policy<reference_existing_object>())
216  .def("RemoveProcess", f2_RemoveProcess,
217  return_value_policy<reference_existing_object>())
218  // ---
219  .def("SetProcessActivation", f1_SetProcessActivation,
220  return_value_policy<reference_existing_object>())
221  .def("SetProcessActivation", f2_SetProcessActivation,
222  return_value_policy<reference_existing_object>())
223  .def("GetProcessActivation", f1_GetProcessActivation)
224  .def("GetProcessActivation", f2_GetProcessActivation)
225  // ---
226  .def("GetParticleType", &G4ProcessManager::GetParticleType,
227  return_internal_reference<>())
228  .def("SetParticleType", &G4ProcessManager::SetParticleType)
229  .def("DumpInfo", &G4ProcessManager::DumpInfo)
230  .def("SetVerboseLevel", &G4ProcessManager::SetVerboseLevel)
231  .def("GetVerboseLevel", &G4ProcessManager::GetVerboseLevel)
232  ;
233 
234  // enums...
235  enum_<G4ProcessVectorTypeIndex>("G4ProcessVectorTypeIndex")
236  .value("typeGPIL", typeGPIL)
237  .value("typeGPIL", typeDoIt)
238  ;
239 
240  enum_<G4ProcessVectorDoItIndex>("G4ProcessVectorDoItIndex")
241  .value("idxAll", idxAll)
242  .value("idxAtRest", idxAtRest)
243  .value("idxAlongStep", idxAlongStep)
244  .value("idxPostStep", idxPostStep)
245  ;
246 
247  enum_<G4ProcessVectorOrdering>("G4ProcessVectorOrdering")
248  .value("ordInActive", ordInActive)
249  .value("ordDefault", ordDefault)
250  .value("ordLast", ordLast)
251  ;
252 }
G4int GetProcessVectorIndex(G4VProcess *aProcess, G4ProcessVectorDoItIndex idx, G4ProcessVectorTypeIndex typ=typeGPIL) const
G4int GetAlongStepIndex(G4VProcess *aProcess, G4ProcessVectorTypeIndex typ=typeGPIL) const
void SetProcessOrderingToFirst(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
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)
const XML_Char int const XML_Char * value
Definition: expat.h:331
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)

Here is the call graph for this function:

Here is the caller graph for this function: