LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4ProcessManager.cc File Reference
#include <boost/python.hpp>
#include "G4ProcessManager.hh"

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 170 of file pyG4ProcessManager.cc.

References pyG4ProcessManager::f1_GetProcessActivation, pyG4ProcessManager::f1_SetProcessActivation, pyG4ProcessManager::f2_GetProcessActivation, pyG4ProcessManager::f2_RemoveProcess, pyG4ProcessManager::f2_SetProcessActivation, pyG4ProcessManager::f_GetProcessList(), pyG4ProcessManager::f_GetProcessVector(), and value.

Referenced by BOOST_PYTHON_MODULE().

171 {
172  class_<G4ProcessManager, G4ProcessManager*, boost::noncopyable>
173  ("G4ProcessManager", "process manager class", no_init)
174  // ---
175  .def("GetProcessList", f_GetProcessList)
176  .def("GetProcessListLength", &G4ProcessManager::GetProcessListLength)
177  .def("GetProcessIndex", &G4ProcessManager::GetProcessIndex)
178  .def("GetProcessVector", f_GetProcessVector,
179  g_GetProcessVector())
180  .def("GetAtRestProcessVector", f_GetAtRestProcessVector,
181  g_GetAtRestProcessVector())
182  .def("GetAlongStepProcessVector", f_GetAlongStepProcessVector,
183  g_GetAlongStepProcessVector())
184  .def("GetPostStepProcessVector", f_GetPostStepProcessVector,
185  g_GetPostStepProcessVector())
186  .def("GetProcessVectorIndex",
187  &G4ProcessManager::GetProcessVectorIndex,
188  f_GetProcessVectorIndex())
189  .def("GetAtRestIndex", &G4ProcessManager::GetAtRestIndex,
190  f_GetAtRestIndex())
191  .def("GetAlongStepIndex", &G4ProcessManager::GetAlongStepIndex,
192  f_GetAlongStepIndex())
193  .def("GetPostStepIndex", &G4ProcessManager::GetPostStepIndex,
194  f_GetPostStepIndex())
195  // ----
196  .def("AddProcess", &G4ProcessManager::AddProcess,
197  f_AddProcess())
198  .def("AddRestProcess", &G4ProcessManager::AddRestProcess,
199  f_AddRestProcess())
200  .def("AddDiscreteProcess", &G4ProcessManager::AddDiscreteProcess,
201  f_AddDiscreteProcess())
202  .def("AddContinuousProcess", &G4ProcessManager::AddContinuousProcess,
203  f_AddContinuousProcess())
204  // ---
205  .def("GetProcessOrdering", &G4ProcessManager::GetProcessOrdering)
206  .def("SetProcessOrdering", &G4ProcessManager::SetProcessOrdering,
207  f_SetProcessOrdering())
208  .def("SetProcessOrderingToFirst",
209  &G4ProcessManager::SetProcessOrderingToFirst)
210  .def("SetProcessOrderingToLast",
211  &G4ProcessManager::SetProcessOrderingToLast)
212  // ---
213  .def("RemoveProcess", f1_RemoveProcess,
214  return_value_policy<reference_existing_object>())
215  .def("RemoveProcess", f2_RemoveProcess,
216  return_value_policy<reference_existing_object>())
217  // ---
218  .def("SetProcessActivation", f1_SetProcessActivation,
219  return_value_policy<reference_existing_object>())
220  .def("SetProcessActivation", f2_SetProcessActivation,
221  return_value_policy<reference_existing_object>())
222  .def("GetProcessActivation", f1_GetProcessActivation)
223  .def("GetProcessActivation", f2_GetProcessActivation)
224  // ---
225  .def("GetParticleType", &G4ProcessManager::GetParticleType,
226  return_internal_reference<>())
227  .def("SetParticleType", &G4ProcessManager::SetParticleType)
228  .def("DumpInfo", &G4ProcessManager::DumpInfo)
229  .def("SetVerboseLevel", &G4ProcessManager::SetVerboseLevel)
230  .def("GetVerboseLevel", &G4ProcessManager::GetVerboseLevel)
231  ;
232 
233  // enums...
234  enum_<G4ProcessVectorTypeIndex>("G4ProcessVectorTypeIndex")
235  .value("typeGPIL", typeGPIL)
236  .value("typeGPIL", typeDoIt)
237  ;
238 
239  enum_<G4ProcessVectorDoItIndex>("G4ProcessVectorDoItIndex")
240  .value("idxAll", idxAll)
241  .value("idxAtRest", idxAtRest)
242  .value("idxAlongStep", idxAlongStep)
243  .value("idxPostStep", idxPostStep)
244  ;
245 
246  enum_<G4ProcessVectorOrdering>("G4ProcessVectorOrdering")
247  .value("ordInActive", ordInActive)
248  .value("ordDefault", ordDefault)
249  .value("ordLast", ordLast)
250  ;
251 }
G4VProcess *(G4ProcessManager::* f2_RemoveProcess)(G4int)
list f_GetProcessList(const G4ProcessManager *procMgr)
G4bool(G4ProcessManager::* f2_GetProcessActivation)(G4int) const
G4bool(G4ProcessManager::* f1_GetProcessActivation)(G4VProcess *) const
double value
Definition: spectrum.C:18
list f_GetProcessVector(const G4ProcessManager *procMgr, G4ProcessVectorDoItIndex idx, G4ProcessVectorTypeIndex typ=typeGPIL)
G4VProcess *(G4ProcessManager::* f2_SetProcessActivation)(G4int, G4bool)
G4VProcess *(G4ProcessManager::* f1_SetProcessActivation)(G4VProcess *, G4bool)