Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
pymodG4processes.cc File Reference
#include <boost/python.hpp>

Go to the source code of this file.

Functions

void export_G4ProcessManager ()
 
void export_G4ProcessTable ()
 
void export_G4VProcess ()
 
void export_G4ProcVector ()
 
void export_G4ProcessType ()
 
void export_G4EmCalculator ()
 
void export_G4LossTableManager ()
 
void export_G4ProductionCutsTable ()
 
void export_G4VCrossSectionHandler ()
 
void export_G4CrossSectionHandler ()
 
 BOOST_PYTHON_MODULE (G4processes)
 

Function Documentation

BOOST_PYTHON_MODULE ( G4processes  )

Definition at line 50 of file pymodG4processes.cc.

References export_G4CrossSectionHandler(), export_G4EmCalculator(), export_G4LossTableManager(), export_G4ProcessManager(), export_G4ProcessTable(), export_G4ProcessType(), export_G4ProcVector(), export_G4ProductionCutsTable(), export_G4VCrossSectionHandler(), and export_G4VProcess().

51 {
62 }
void export_G4LossTableManager()
void export_G4EmCalculator()
void export_G4ProcessManager()
void export_G4CrossSectionHandler()
void export_G4ProcessType()
void export_G4ProcVector()
void export_G4ProcessTable()
void export_G4ProductionCutsTable()
void export_G4VCrossSectionHandler()
void export_G4VProcess()
Definition: pyG4VProcess.cc:51
void export_G4CrossSectionHandler ( )

Definition at line 40 of file pyG4CrossSectionHandler.cc.

Referenced by BOOST_PYTHON_MODULE().

41 {
42  class_<G4CrossSectionHandler, bases<G4VCrossSectionHandler>,
43  boost::noncopyable>
44  ("G4CrossSectionHandler", "cross section handler")
45  .def(init<>())
46  ;
47 }
void export_G4EmCalculator ( )

Definition at line 214 of file pyG4EmCalculator.cc.

References pyG4EmCalculator::f1_ComputeElectronicDEDX, pyG4EmCalculator::f1_ComputeEnergyCutFromRangeCut, pyG4EmCalculator::f1_ComputeMeanFreePath, pyG4EmCalculator::f1_ComputeNuclearDEDX, pyG4EmCalculator::f1_GetCrossSectionPerVolume, pyG4EmCalculator::f1_GetDEDX, pyG4EmCalculator::f1_GetKinEnergy, pyG4EmCalculator::f1_GetRange, pyG4EmCalculator::f2_ComputeCrossSectionPerAtom, pyG4EmCalculator::f2_ComputeCrossSectionPerVolume, pyG4EmCalculator::f2_ComputeDEDX, pyG4EmCalculator::f2_ComputeElectronicDEDX, pyG4EmCalculator::f2_ComputeEnergyCutFromRangeCut, pyG4EmCalculator::f2_ComputeMeanFreePath, pyG4EmCalculator::f2_ComputeNuclearDEDX, pyG4EmCalculator::f2_ComputeTotalDEDX, pyG4EmCalculator::f2_GetCrossSectionPerVolume, pyG4EmCalculator::f2_GetDEDX, pyG4EmCalculator::f2_GetKinEnergy, pyG4EmCalculator::f2_GetMeanFreePath, G4EmCalculator::FindCouple(), G4EmCalculator::FindMaterial(), G4EmCalculator::FindParticle(), G4EmCalculator::FindRegion(), G4EmCalculator::PrintDEDXTable(), G4EmCalculator::PrintInverseRangeTable(), G4EmCalculator::PrintRangeTable(), and G4EmCalculator::SetVerbose().

Referenced by BOOST_PYTHON_MODULE().

215 {
216  class_<G4EmCalculator, boost::noncopyable>
217  ("G4EmCalculator", "Provide access to dE/dx and cross section")
218  // ---
219  .def("GetDEDX", f1_GetDEDX, f_GetDEDX())
220  .def("GetDEDX", f2_GetDEDX, f_GetDEDX())
221  .def("GetRange", f1_GetRange, f_GetRange())
222  .def("GetRange", f2_GetDEDX, f_GetRange())
223  .def("GetKinEnergy", f1_GetKinEnergy, f_GetKinEnergy())
224  .def("GetKinEnergy", f2_GetKinEnergy, f_GetKinEnergy())
225  .def("GetCrossSectionPerVolume",
226  f1_GetCrossSectionPerVolume, f_GetCrossSectionPerVolume())
227  .def("GetCrossSectionPerVolume",
228  f2_GetCrossSectionPerVolume, f_GetCrossSectionPerVolume())
229  .def("GetMeanFreePath", f1_GetMeanFreePath, f_GetMeanFreePath())
230  .def("GetMeanFreePath", f2_GetMeanFreePath, f_GetMeanFreePath())
231  // ---
232  .def("PrintDEDXTable", &G4EmCalculator::PrintDEDXTable)
233  .def("PrintRangeTable", &G4EmCalculator::PrintRangeTable)
234  .def("PrintInverseRangeTable", &G4EmCalculator::PrintInverseRangeTable)
235  // ---
236  .def("ComputeDEDX", f1_ComputeDEDX, f_ComputeDEDX())
237  .def("ComputeDEDX", f2_ComputeDEDX, f_ComputeDEDX())
238  .def("ComputeNuclearDEDX", f1_ComputeNuclearDEDX)
239  .def("ComputeNuclearDEDX", f2_ComputeNuclearDEDX)
240  .def("ComputeElectronicDEDX", f1_ComputeElectronicDEDX,
241  f_ComputeElectronicDEDX())
242  .def("ComputeDEDX", f2_ComputeElectronicDEDX,
243  f_ComputeElectronicDEDX())
244  .def("ComputeTotalDEDX", f1_ComputeTotalDEDX, f_ComputeTotalDEDX())
245  .def("ComputeTotalDEDX", f2_ComputeTotalDEDX, f_ComputeTotalDEDX())
246  // ---
247  .def("ComputeCrossSectionPerVolume",
248  f1_ComputeCrossSectionPerVolume, f_ComputeCrossSectionPerVolume())
249  .def("ComputeCrossSectionPerVolume",
250  f2_ComputeCrossSectionPerVolume, f_ComputeCrossSectionPerVolume())
251  .def("ComputeCrossSectionPerAtom",
252  f1_ComputeCrossSectionPerAtom, f_ComputeCrossSectionPerAtom())
253  .def("ComputeCrossSectionPerAtom",
254  f2_ComputeCrossSectionPerAtom, g_ComputeCrossSectionPerAtom())
255  .def("ComputeEnergyCutFromRangeCut", f1_ComputeEnergyCutFromRangeCut)
256  .def("ComputeEnergyCutFromRangeCut", f2_ComputeEnergyCutFromRangeCut)
257  // ---
258  .def("ComputeMeanFreePath",
259  f1_ComputeMeanFreePath, f_ComputeMeanFreePath())
260  .def("ComputeMeanFreePath",
261  f2_ComputeMeanFreePath, f_ComputeMeanFreePath())
262  // ---
263  .def("FindParticle", &G4EmCalculator::FindParticle,
264  return_value_policy<reference_existing_object>())
265  .def("FindMaterial", &G4EmCalculator::FindMaterial,
266  return_value_policy<reference_existing_object>())
267  .def("FindRegion", &G4EmCalculator::FindRegion,
268  return_value_policy<reference_existing_object>())
269  .def("FindCouple", &G4EmCalculator::FindCouple,
270  f_FindCouple()[return_value_policy<reference_existing_object>()])
271  // ---
272  .def("SetVerbose", &G4EmCalculator::SetVerbose)
273  ;
274 }
G4double(G4EmCalculator::* f2_GetCrossSectionPerVolume)(G4double, const G4String &, const G4String &, const G4String &, const G4String &)
const G4Material * FindMaterial(const G4String &)
G4double(G4EmCalculator::* f1_ComputeMeanFreePath)(G4double, const G4ParticleDefinition *, const G4String &, const G4Material *, G4double)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetMeanFreePath, GetMeanFreePath, 4, 5) G4double(G4EmCalculator G4double(G4EmCalculator::* f2_ComputeDEDX)(G4double, const G4String &, const G4String &, const G4String &, G4double)
void PrintRangeTable(const G4ParticleDefinition *)
void PrintInverseRangeTable(const G4ParticleDefinition *)
G4double(G4EmCalculator::* f2_ComputeEnergyCutFromRangeCut)(G4double range, const G4String &, const G4String &)
G4double(G4EmCalculator::* f1_GetKinEnergy)(G4double, const G4ParticleDefinition *, const G4Material *, const G4Region *)
G4double(G4EmCalculator::* f1_GetDEDX)(G4double, const G4ParticleDefinition *, const G4Material *, const G4Region *)
G4double(G4EmCalculator::* f2_GetDEDX)(G4double, const G4String &, const G4String &, const G4String &)
const G4MaterialCutsCouple * FindCouple(const G4Material *, const G4Region *r=0)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeElectronicDEDX, ComputeElectronicDEDX, 3, 4) G4double(G4EmCalculator G4double(G4EmCalculator::* f2_ComputeTotalDEDX)(G4double, const G4String &, const G4String &, G4double)
G4double(G4EmCalculator::* f1_GetRange)(G4double, const G4ParticleDefinition *, const G4Material *, const G4Region *)
G4double(G4EmCalculator::* f2_ComputeElectronicDEDX)(G4double, const G4String &, const G4String &, G4double)
G4double(G4EmCalculator::* f2_ComputeMeanFreePath)(G4double, const G4String &, const G4String &, const G4String &, G4double)
G4double(G4EmCalculator::* f2_ComputeNuclearDEDX)(G4double, const G4String &, const G4String &)
G4double(G4EmCalculator::* f1_ComputeElectronicDEDX)(G4double, const G4ParticleDefinition *, const G4Material *, G4double)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeTotalDEDX, ComputeTotalDEDX, 3, 4) G4double(G4EmCalculator G4double(G4EmCalculator::* f2_ComputeCrossSectionPerVolume)(G4double, const G4String &, const G4String &, const G4String &, G4double)
G4double(G4EmCalculator::* f2_GetKinEnergy)(G4double, const G4String &, const G4String &, const G4String &)
const G4ParticleDefinition * FindParticle(const G4String &)
const G4Region * FindRegion(const G4String &)
G4double(G4EmCalculator::* f1_GetCrossSectionPerVolume)(G4double, const G4ParticleDefinition *, const G4String &, const G4Material *, const G4Region *)
G4double(G4EmCalculator::* f1_ComputeEnergyCutFromRangeCut)(G4double, const G4ParticleDefinition *, const G4Material *)
void SetVerbose(G4int val)
void PrintDEDXTable(const G4ParticleDefinition *)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeCrossSectionPerVolume, ComputeCrossSectionPerVolume, 4, 5) G4double(G4EmCalculator G4double(G4EmCalculator::* f2_ComputeCrossSectionPerAtom)(G4double, const G4String &, const G4String &, const G4Element *, G4double)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetCrossSectionPerVolume, GetCrossSectionPerVolume, 4, 5) G4double(G4EmCalculator G4double(G4EmCalculator::* f2_GetMeanFreePath)(G4double, const G4String &, const G4String &, const G4String &, const G4String &)
G4double(G4EmCalculator::* f1_ComputeNuclearDEDX)(G4double, const G4ParticleDefinition *, const G4Material *)
void export_G4LossTableManager ( )

Definition at line 41 of file pyG4LossTableManager.cc.

References G4LossTableManager::BremsstrahlungTh(), G4LossTableManager::BuildCSDARange(), G4LossTableManager::Instance(), G4LossTableManager::LPMFlag(), G4LossTableManager::SetBremsstrahlungTh(), G4LossTableManager::SetBuildCSDARange(), G4LossTableManager::SetIntegral(), G4LossTableManager::SetLinearLossLimit(), G4LossTableManager::SetLossFluctuations(), G4LossTableManager::SetLPMFlag(), G4LossTableManager::SetMaxEnergy(), G4LossTableManager::SetMaxEnergyForCSDARange(), G4LossTableManager::SetMaxEnergyForMuons(), G4LossTableManager::SetMinEnergy(), G4LossTableManager::SetMinSubRange(), G4LossTableManager::SetRandomStep(), G4LossTableManager::SetStepFunction(), G4LossTableManager::SetSubCutoff(), and G4LossTableManager::SetVerbose().

Referenced by BOOST_PYTHON_MODULE().

42 {
43  class_<G4LossTableManager, boost::noncopyable>
44  ("G4LossTableManager", "energy loss table manager", no_init)
45  .def("Instance", &G4LossTableManager::Instance,
46  return_value_policy<reference_existing_object>())
47  .staticmethod("Instance")
48 
49  // internally used methods are limmitted to be exposed...
50 
51  // ----
52  .def("SetLossFluctuations", &G4LossTableManager::SetLossFluctuations)
53  .def("SetSubCutoff", &G4LossTableManager::SetSubCutoff)
54  .def("SetIntegral", &G4LossTableManager::SetIntegral)
55  .def("SetRandomStep", &G4LossTableManager::SetRandomStep)
56  .def("SetMinSubRange", &G4LossTableManager::SetMinSubRange)
57  .def("SetMinEnergy", &G4LossTableManager::SetMinEnergy)
58  .def("SetMaxEnergy", &G4LossTableManager::SetMaxEnergy)
59 
60 #if G4VERSION_NUMBER >= 810
61  .def("SetMaxEnergyForCSDARange",
63 #else
64  .def("SetMaxEnergyForPreciseRange",
65  &G4LossTableManager::SetMaxEnergyForPreciseRange)
66 #endif
67 
68  .def("SetMaxEnergyForMuons", &G4LossTableManager::SetMaxEnergyForMuons)
69 
70 #if G4VERSION_NUMBER >= 810
71  .def("SetStepFunction", &G4LossTableManager::SetStepFunction)
72  .def("SetBuildCSDARange", &G4LossTableManager::SetBuildCSDARange)
73  .def("SetLPMFlag", &G4LossTableManager::SetLPMFlag)
74  .def("SetBremsstrahlungTh", &G4LossTableManager::SetBremsstrahlungTh)
75 #else
76  .def("SetStepLimits", &G4LossTableManager::SetStepLimits)
77  .def("SetBuildPreciseRange", &G4LossTableManager::SetBuildPreciseRange)
78 #endif
79  .def("SetVerbose", &G4LossTableManager::SetVerbose)
80 
81  // ---
82 #if G4VERSION_NUMBER >= 810
83  .def("BuildCSDARange", &G4LossTableManager::BuildCSDARange)
84  .def("LPMFlag", &G4LossTableManager::LPMFlag)
85  .def("BremsstrahlungTh", &G4LossTableManager::BremsstrahlungTh)
86 
87 #if G4VERSION_NUMBER <= 830
88  .def("SetMscStepLimitation", &G4LossTableManager::SetMscStepLimitation)
89  .def("MscFlag", &G4LossTableManager::MscFlag)
90  .def("FacRange", &G4LossTableManager::FacRange)
91 #endif
92 
93 #else
94  .def("BuildPreciseRange", &G4LossTableManager::BuildPreciseRange)
95 #endif
96 
97  // ---
98 #if G4VERSION_NUMBER == 830
99  .def("SetMscLateralDisplacement",
100  &G4LossTableManager::SetMscLateralDisplacement)
101  .def("SetSkin", &G4LossTableManager::SetSkin)
102 #endif
103 
104 #if G4VERSION_NUMBER >= 830
105  .def("SetLinearLossLimit", &G4LossTableManager::SetLinearLossLimit)
106 #endif
107 
108  ;
109 
110 }
void SetRandomStep(G4bool val)
static G4LossTableManager * Instance()
void SetBremsstrahlungTh(G4double val)
G4bool BuildCSDARange() const
void SetBuildCSDARange(G4bool val)
void SetLPMFlag(G4bool val)
void SetMaxEnergyForCSDARange(G4double val)
void SetSubCutoff(G4bool val, const G4Region *r=0)
G4double BremsstrahlungTh() const
void SetMinSubRange(G4double val)
void SetMinEnergy(G4double val)
void SetMaxEnergy(G4double val)
void SetStepFunction(G4double v1, G4double v2)
void SetLinearLossLimit(G4double val)
void SetVerbose(G4int val)
void SetMaxEnergyForMuons(G4double val)
void SetIntegral(G4bool val)
void SetLossFluctuations(G4bool val)
void export_G4ProcessManager ( )

Definition at line 171 of file pyG4ProcessManager.cc.

References G4ProcessManager::AddContinuousProcess(), G4ProcessManager::AddDiscreteProcess(), G4ProcessManager::AddProcess(), G4ProcessManager::AddRestProcess(), G4ProcessManager::DumpInfo(), pyG4ProcessManager::f1_GetProcessActivation, pyG4ProcessManager::f1_SetProcessActivation, pyG4ProcessManager::f2_GetProcessActivation, pyG4ProcessManager::f2_RemoveProcess, pyG4ProcessManager::f2_SetProcessActivation, pyG4ProcessManager::f_GetProcessList(), pyG4ProcessManager::f_GetProcessVector(), G4ProcessManager::GetAlongStepIndex(), G4ProcessManager::GetAtRestIndex(), G4ProcessManager::GetParticleType(), G4ProcessManager::GetPostStepIndex(), G4ProcessManager::GetProcessIndex(), G4ProcessManager::GetProcessListLength(), G4ProcessManager::GetProcessOrdering(), G4ProcessManager::GetProcessVectorIndex(), G4ProcessManager::GetVerboseLevel(), idxAll, idxAlongStep, idxAtRest, idxPostStep, ordDefault, ordInActive, ordLast, G4ProcessManager::SetParticleType(), G4ProcessManager::SetProcessOrdering(), G4ProcessManager::SetProcessOrderingToFirst(), G4ProcessManager::SetProcessOrderingToLast(), G4ProcessManager::SetVerboseLevel(), and typeDoIt.

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",
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)
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
const XML_Char int const XML_Char * value
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)
void export_G4ProcessTable ( )

Definition at line 144 of file pyG4ProcessTable.cc.

References G4ProcessTable::DumpInfo(), pyG4ProcessTable::f1_FindProcess, pyG4ProcessTable::f1_FindProcesses(), pyG4ProcessTable::f1_SetProcessActivation, pyG4ProcessTable::f2_FindProcess, pyG4ProcessTable::f2_FindProcesses(), pyG4ProcessTable::f2_SetProcessActivation, pyG4ProcessTable::f3_FindProcess, pyG4ProcessTable::f3_FindProcesses(), pyG4ProcessTable::f3_SetProcessActivation, pyG4ProcessTable::f4_FindProcesses(), pyG4ProcessTable::f4_SetProcessActivation, pyG4ProcessTable::f5_SetProcessActivation, pyG4ProcessTable::f6_SetProcessActivation, pyG4ProcessTable::f7_SetProcessActivation, pyG4ProcessTable::f8_SetProcessActivation, G4ProcessTable::GetNameList(), G4ProcessTable::GetProcessTable(), G4ProcessTable::GetVerboseLevel(), G4ProcessTable::Length(), and G4ProcessTable::SetVerboseLevel().

Referenced by BOOST_PYTHON_MODULE().

145 {
146  class_<G4ProcessTable, G4ProcessTable*, boost::noncopyable>
147  ("G4ProcessTable", "process table")
148  // ---
149  .def("GetProcessTable", &G4ProcessTable::GetProcessTable,
150  return_value_policy<reference_existing_object>())
151  .staticmethod("GetProcessTable")
152  .def("Length", &G4ProcessTable::Length)
153  //.def("Insert", &G4ProcessTable::Insert) // protected
154  //.def("Remove", &G4ProcessTable::Remove) // protected
155  // ---
156  .def("FindProcess", f1_FindProcess,
157  return_value_policy<reference_existing_object>())
158  .def("FindProcess", f2_FindProcess,
159  return_value_policy<reference_existing_object>())
160  .def("FindProcess", f3_FindProcess,
161  return_value_policy<reference_existing_object>())
162  .def("FindProcess", f3_FindProcess,
163  return_value_policy<reference_existing_object>())
164  // ---
165  .def("FindProcesses", f1_FindProcesses)
166  .def("FindProcesses", f2_FindProcesses)
167  .def("FindProcesses", f3_FindProcesses)
168  .def("FindProcesses", f4_FindProcesses)
169  // ---
170  .def("SetProcessActivation", f1_SetProcessActivation)
171  .def("SetProcessActivation", f2_SetProcessActivation)
172  .def("SetProcessActivation", f3_SetProcessActivation)
173  .def("SetProcessActivation", f4_SetProcessActivation)
174  .def("SetProcessActivation", f5_SetProcessActivation)
175  .def("SetProcessActivation", f6_SetProcessActivation)
176  .def("SetProcessActivation", f7_SetProcessActivation)
177  .def("SetProcessActivation", f8_SetProcessActivation)
178  // ---
179  .def("GetNameList", &G4ProcessTable::GetNameList,
180  return_internal_reference<>())
181  .def("DumpInfo", &G4ProcessTable::DumpInfo, f_DumpInfo())
182  .def("SetVerboseLevel", &G4ProcessTable::SetVerboseLevel)
183  .def("GetVerboseLevel", &G4ProcessTable::GetVerboseLevel)
184  ;
185 }
G4VProcess *(G4ProcessTable::* f2_FindProcess)(const G4String &, const G4ParticleDefinition *) const
void DumpInfo(G4VProcess *process, G4ParticleDefinition *particle=0)
void(G4ProcessTable::* f7_SetProcessActivation)(G4ProcessType, G4ParticleDefinition *, G4bool)
void(G4ProcessTable::* f8_SetProcessActivation)(G4ProcessType, G4ProcessManager *, G4bool)
list f4_FindProcesses(G4ProcessTable *procTable, G4ProcessType ptype)
void(G4ProcessTable::* f4_SetProcessActivation)(const G4String &, G4ProcessManager *, G4bool)
void(G4ProcessTable::* f5_SetProcessActivation)(G4ProcessType, G4bool)
void(G4ProcessTable::* f2_SetProcessActivation)(const G4String &, const G4String &, G4bool)
void(G4ProcessTable::* f1_SetProcessActivation)(const G4String &, G4bool)
void SetVerboseLevel(G4int value)
list f1_FindProcesses(G4ProcessTable *procTable)
G4int Length() const
list f3_FindProcesses(G4ProcessTable *procTable, const G4String &pname)
G4ProcNameVector * GetNameList()
G4VProcess *(G4ProcessTable::* f1_FindProcess)(const G4String &, const G4String &) const
G4int GetVerboseLevel() const
void(G4ProcessTable::* f6_SetProcessActivation)(G4ProcessType, const G4String &, G4bool)
list f2_FindProcesses(G4ProcessTable *procTable, const G4ProcessManager *procManager)
void(G4ProcessTable::* f3_SetProcessActivation)(const G4String &, G4ParticleDefinition *, G4bool)
static G4ProcessTable * GetProcessTable()
G4VProcess *(G4ProcessTable::* f3_FindProcess)(const G4String &, const G4ProcessManager *) const
void export_G4ProcessType ( )

Definition at line 40 of file pyG4ProcessType.cc.

References fDecay, fElectromagnetic, fGeneral, fHadronic, fNotDefined, fOptical, fParameterisation, fPhotolepton_hadron, fTransportation, and fUserDefined.

Referenced by BOOST_PYTHON_MODULE().

41 {
42  enum_<G4ProcessType>("G4ProcessType")
43  .value("fNotDefined", fNotDefined)
44  .value("fTransportation", fTransportation)
45  .value("fElectromagnetic", fElectromagnetic)
46  .value("fOptical", fOptical)
47  .value("fHadronic", fHadronic)
48  .value("fPhotolepton_hadron", fPhotolepton_hadron)
49  .value("fDecay", fDecay)
50  .value("fGeneral", fGeneral)
51  .value("fParameterisation", fParameterisation)
52  .value("fUserDefined", fUserDefined)
53  ;
54 }
const XML_Char int const XML_Char * value
void export_G4ProcVector ( )

Definition at line 49 of file pyG4ProcVector.cc.

Referenced by BOOST_PYTHON_MODULE().

50 {
51  class_<G4ProcVector> ("G4ProcVector", "process vector")
53  ;
54 }
void export_G4ProductionCutsTable ( )

Definition at line 42 of file pyG4ProductionCutsTable.cc.

References G4ProductionCutsTable::ConvertRangeToEnergy(), G4ProductionCutsTable::DumpCouples(), G4ProductionCutsTable::GetHighEdgeEnergy(), G4ProductionCutsTable::GetLowEdgeEnergy(), G4ProductionCutsTable::GetProductionCutsTable(), G4ProductionCutsTable::GetVerboseLevel(), G4ProductionCutsTable::IsModified(), G4ProductionCutsTable::SetEnergyRange(), and G4ProductionCutsTable::SetVerboseLevel().

Referenced by BOOST_PYTHON_MODULE().

43 {
44  class_<G4ProductionCutsTable, boost::noncopyable>
45  ("G4ProductionCutsTable", "production cuts table", no_init)
46  .def("GetProductionCutsTable",
48  return_value_policy<reference_existing_object>())
49  .staticmethod("GetProductionCutsTable")
50 
51  // internally used methods are limmitted to be exposed...
52 
53  // ---
54  .def("GetLowEdgeEnergy", &G4ProductionCutsTable::GetLowEdgeEnergy)
55  .def("GetHighEdgeEnergy", &G4ProductionCutsTable::GetHighEdgeEnergy)
56  .def("SetEnergyRange", &G4ProductionCutsTable::SetEnergyRange)
57  .def("DumpCouples", &G4ProductionCutsTable::DumpCouples)
58  .def("IsModified", &G4ProductionCutsTable::IsModified)
59  // ---
60 #if G4VERSION_NUMBER >= 830
61  .def("ConvertRangeToEnergy", &G4ProductionCutsTable::ConvertRangeToEnergy)
62 #endif
63  // ---
64  .def("SetVerboseLevel", &G4ProductionCutsTable::SetVerboseLevel)
65  .def("GetVerboseLevel", &G4ProductionCutsTable::GetVerboseLevel)
66  ;
67 }
G4double GetHighEdgeEnergy() const
void SetEnergyRange(G4double lowedge, G4double highedge)
void SetVerboseLevel(G4int value)
G4double GetLowEdgeEnergy() const
static G4ProductionCutsTable * GetProductionCutsTable()
G4double ConvertRangeToEnergy(const G4ParticleDefinition *particle, const G4Material *material, G4double range)
void export_G4VCrossSectionHandler ( )

Definition at line 61 of file pyG4VCrossSectionHandler.cc.

References G4VCrossSectionHandler::Clear(), pyG4VCrossSectionHandler::f1_FindValue, pyG4VCrossSectionHandler::f2_FindValue, G4VCrossSectionHandler::Initialise(), G4VCrossSectionHandler::LoadData(), G4VCrossSectionHandler::LoadShellData(), G4VCrossSectionHandler::PrintData(), G4VCrossSectionHandler::SelectRandomElement(), G4VCrossSectionHandler::SelectRandomShell(), and G4VCrossSectionHandler::ValueForMaterial().

Referenced by BOOST_PYTHON_MODULE().

62 {
63  class_<G4VCrossSectionHandler, boost::noncopyable>
64  ("G4VCrossSectionHandler", "cross section handler", no_init)
65  // ---
66  .def("Initialise", &G4VCrossSectionHandler::Initialise,
67  f_Initialise())
68  .def("SelectRandomElement", &G4VCrossSectionHandler::SelectRandomElement,
69  return_value_policy<reference_existing_object>())
70  .def("SelectRandomShell", &G4VCrossSectionHandler::SelectRandomShell)
71  .def("FindValue", f1_FindValue)
72  .def("FindValue", f2_FindValue)
73  .def("ValueForMaterial", &G4VCrossSectionHandler::ValueForMaterial)
74  .def("LoadData", &G4VCrossSectionHandler::LoadData)
75  .def("LoadShellData", &G4VCrossSectionHandler::LoadShellData)
76  .def("PrintData", &G4VCrossSectionHandler::PrintData)
77  .def("Clear", &G4VCrossSectionHandler::Clear)
78  ;
79 }
G4int SelectRandomShell(G4int Z, G4double e) const
G4double ValueForMaterial(const G4Material *material, G4double e) const
G4double(G4VCrossSectionHandler::* f2_FindValue)(G4int, G4double, G4int) const
void LoadShellData(const G4String &dataFile)
void Initialise(G4VDataSetAlgorithm *interpolation=0, G4double minE=250 *CLHEP::eV, G4double maxE=100 *CLHEP::GeV, G4int numberOfBins=200, G4double unitE=CLHEP::MeV, G4double unitData=CLHEP::barn, G4int minZ=1, G4int maxZ=99)
void LoadData(const G4String &dataFile)
const G4Element * SelectRandomElement(const G4MaterialCutsCouple *material, G4double e) const
G4double(G4VCrossSectionHandler::* f1_FindValue)(G4int, G4double) const
void export_G4VProcess ( )

Definition at line 51 of file pyG4VProcess.cc.

References G4VProcess::BuildPhysicsTable(), G4VProcess::DumpInfo(), G4VProcess::GetPhysicsTableFileName(), G4VProcess::GetPILfactor(), G4VProcess::GetProcessName(), G4VProcess::GetProcessType(), G4VProcess::GetVerboseLevel(), G4VProcess::IsApplicable(), G4VProcess::PreparePhysicsTable(), G4VProcess::RetrievePhysicsTable(), G4VProcess::SetPILfactor(), G4VProcess::SetVerboseLevel(), and G4VProcess::StorePhysicsTable().

Referenced by BOOST_PYTHON_MODULE().

52 {
53  class_<G4VProcess, G4VProcess*, boost::noncopyable>
54  ("G4VProcess", "base class for process", no_init)
55  // ---
56  // Note that only limited methods are exposed.
57  .def("SetPILfactor", &G4VProcess::SetPILfactor)
58  .def("GetPILfactor", &G4VProcess::GetPILfactor)
59  .def("IsApplicable", &G4VProcess::IsApplicable)
60  .def("BuildPhysicsTable", &G4VProcess::BuildPhysicsTable)
61  .def("PreparePhysicsTable", &G4VProcess::PreparePhysicsTable)
62  .def("StorePhysicsTable", &G4VProcess::StorePhysicsTable)
63  .def("RetrievePhysicsTable", &G4VProcess::RetrievePhysicsTable)
64  .def("GetPhysicsTableFileName", &G4VProcess::GetPhysicsTableFileName,
65  f_GetPhysicsTableFileName()
66  [return_value_policy<return_by_value>()])
67  .def("GetProcessName", &G4VProcess::GetProcessName,
68  return_value_policy<return_by_value>())
69  .def("GetProcessType", &G4VProcess::GetProcessType)
70  .def("DumpInfo", &G4VProcess::DumpInfo)
71  .def("SetVerboseLevel", &G4VProcess::SetVerboseLevel)
72  .def("GetVerboseLevel", &G4VProcess::GetVerboseLevel)
73  ;
74 }
G4ProcessType GetProcessType() const
Definition: G4VProcess.hh:414
const G4String & GetPhysicsTableFileName(const G4ParticleDefinition *, const G4String &directory, const G4String &tableName, G4bool ascii=false)
Definition: G4VProcess.cc:186
G4int GetVerboseLevel() const
Definition: G4VProcess.hh:442
virtual void PreparePhysicsTable(const G4ParticleDefinition &)
Definition: G4VProcess.hh:217
G4double GetPILfactor() const
Definition: G4VProcess.hh:474
virtual G4bool RetrievePhysicsTable(const G4ParticleDefinition *, const G4String &, G4bool)
Definition: G4VProcess.hh:236
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
Definition: G4VProcess.hh:210
virtual void DumpInfo() const
Definition: G4VProcess.cc:178
virtual G4bool StorePhysicsTable(const G4ParticleDefinition *, const G4String &, G4bool)
Definition: G4VProcess.hh:231
void SetPILfactor(G4double value)
Definition: G4VProcess.hh:467
virtual G4bool IsApplicable(const G4ParticleDefinition &)
Definition: G4VProcess.hh:205
void SetVerboseLevel(G4int value)
Definition: G4VProcess.hh:437