LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 171 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 fhicl::detail::atom::value().

Referenced by BOOST_PYTHON_MODULE().

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",
188  &G4ProcessManager::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",
210  &G4ProcessManager::SetProcessOrderingToFirst)
211  .def("SetProcessOrderingToLast",
212  &G4ProcessManager::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 }
G4VProcess *(G4ProcessManager::* f2_RemoveProcess)(G4int)
list f_GetProcessList(const G4ProcessManager *procMgr)
G4bool(G4ProcessManager::* f2_GetProcessActivation)(G4int) const
G4bool(G4ProcessManager::* f1_GetProcessActivation)(G4VProcess *) const
list f_GetProcessVector(const G4ProcessManager *procMgr, G4ProcessVectorDoItIndex idx, G4ProcessVectorTypeIndex typ=typeGPIL)
std::string value(boost::any const &)
G4VProcess *(G4ProcessManager::* f2_SetProcessActivation)(G4int, G4bool)
G4VProcess *(G4ProcessManager::* f1_SetProcessActivation)(G4VProcess *, G4bool)