Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4LossTableManager.cc
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // $Id: pyG4LossTableManager.cc 66892 2013-01-17 10:57:59Z gunter $
27 // ====================================================================
28 // pyG4LossTableManager.cc
29 //
30 // 2005 Q
31 // ====================================================================
32 #include <boost/python.hpp>
33 #include "G4Version.hh"
34 #include "G4LossTableManager.hh"
35 
36 using namespace boost::python;
37 
38 // ====================================================================
39 // module definition
40 // ====================================================================
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 }
111 
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 export_G4LossTableManager()
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)