LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4ProcessManager Namespace Reference

Functions

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

Variables

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

Function Documentation

pyG4ProcessManager::BOOST_PYTHON_FUNCTION_OVERLOADS ( g_GetProcessVector  ,
f_GetProcessVector  ,
,
 
) const
list pyG4ProcessManager::f_GetProcessList ( const G4ProcessManager *  procMgr)

Definition at line 43 of file pyG4ProcessManager.cc.

References util::size().

Referenced by export_G4ProcessManager().

44 {
45  list procList;
46  G4ProcessVector* procVec= procMgr-> GetProcessList();
47  G4int nproc= procVec-> size();
48  for(G4int i=0; i< nproc; i++) {
49  procList.append(&(*procVec)[i]);
50  }
51  return procList;
52 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:101
list pyG4ProcessManager::f_GetProcessVector ( const G4ProcessManager *  procMgr,
G4ProcessVectorDoItIndex  idx,
G4ProcessVectorTypeIndex  typ = typeGPIL 
)

Definition at line 55 of file pyG4ProcessManager.cc.

References BOOST_PYTHON_FUNCTION_OVERLOADS(), util::size(), and typ.

Referenced by export_G4ProcessManager().

58 {
59  list procList;
60  G4ProcessVector* procVec= procMgr-> GetProcessVector(idx, typ);
61  G4int nproc= procVec-> size();
62  for(G4int i=0; i< nproc; i++) {
63  procList.append(&(*procVec)[i]);
64  }
65  return procList;
66 }
G4ProcessVectorTypeIndex typ
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:101

Variable Documentation

G4bool(G4ProcessManager::* pyG4ProcessManager::f1_GetProcessActivation) (G4VProcess *) const = &G4ProcessManager::GetProcessActivation

Definition at line 157 of file pyG4ProcessManager.cc.

Referenced by export_G4ProcessManager().

G4VProcess*(G4ProcessManager::* pyG4ProcessManager::f1_SetProcessActivation) (G4VProcess *, G4bool) = &G4ProcessManager::SetProcessActivation

Definition at line 151 of file pyG4ProcessManager.cc.

Referenced by export_G4ProcessManager().

G4bool(G4ProcessManager::* pyG4ProcessManager::f2_GetProcessActivation) (G4int) const = &G4ProcessManager::GetProcessActivation

Definition at line 160 of file pyG4ProcessManager.cc.

Referenced by export_G4ProcessManager().

G4VProcess*(G4ProcessManager::* pyG4ProcessManager::f2_RemoveProcess) (G4int) = &G4ProcessManager::RemoveProcess

Definition at line 147 of file pyG4ProcessManager.cc.

Referenced by export_G4ProcessManager().

G4VProcess*(G4ProcessManager::* pyG4ProcessManager::f2_SetProcessActivation) (G4int, G4bool) = &G4ProcessManager::SetProcessActivation

Definition at line 154 of file pyG4ProcessManager.cc.

Referenced by export_G4ProcessManager().

G4ProcessVectorTypeIndex pyG4ProcessManager::typ

Definition at line 73 of file pyG4ProcessManager.cc.

Referenced by f_GetProcessVector().