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,v 1.5 2008/03/13 07:32:18 kmura Exp $ |
---|
27 | // $Name: geant4-09-04-beta-01 $ |
---|
28 | // ==================================================================== |
---|
29 | // pyG4LossTableManager.cc |
---|
30 | // |
---|
31 | // 2005 Q |
---|
32 | // ==================================================================== |
---|
33 | #include <boost/python.hpp> |
---|
34 | #include "G4Version.hh" |
---|
35 | #include "G4LossTableManager.hh" |
---|
36 | |
---|
37 | using namespace boost::python; |
---|
38 | |
---|
39 | // ==================================================================== |
---|
40 | // module definition |
---|
41 | // ==================================================================== |
---|
42 | void export_G4LossTableManager() |
---|
43 | { |
---|
44 | class_<G4LossTableManager, boost::noncopyable> |
---|
45 | ("G4LossTableManager", "energy loss table manager", no_init) |
---|
46 | .def("Instance", &G4LossTableManager::Instance, |
---|
47 | return_value_policy<reference_existing_object>()) |
---|
48 | .staticmethod("Instance") |
---|
49 | |
---|
50 | // internally used methods are limmitted to be exposed... |
---|
51 | |
---|
52 | // ---- |
---|
53 | .def("SetLossFluctuations", &G4LossTableManager::SetLossFluctuations) |
---|
54 | .def("SetSubCutoff", &G4LossTableManager::SetSubCutoff) |
---|
55 | .def("SetIntegral", &G4LossTableManager::SetIntegral) |
---|
56 | .def("SetRandomStep", &G4LossTableManager::SetRandomStep) |
---|
57 | .def("SetMinSubRange", &G4LossTableManager::SetMinSubRange) |
---|
58 | .def("SetMinEnergy", &G4LossTableManager::SetMinEnergy) |
---|
59 | .def("SetMaxEnergy", &G4LossTableManager::SetMaxEnergy) |
---|
60 | |
---|
61 | #if G4VERSION_NUMBER >= 810 |
---|
62 | .def("SetMaxEnergyForCSDARange", |
---|
63 | &G4LossTableManager::SetMaxEnergyForCSDARange) |
---|
64 | #else |
---|
65 | .def("SetMaxEnergyForPreciseRange", |
---|
66 | &G4LossTableManager::SetMaxEnergyForPreciseRange) |
---|
67 | #endif |
---|
68 | |
---|
69 | .def("SetMaxEnergyForMuons", &G4LossTableManager::SetMaxEnergyForMuons) |
---|
70 | |
---|
71 | #if G4VERSION_NUMBER >= 810 |
---|
72 | .def("SetStepFunction", &G4LossTableManager::SetStepFunction) |
---|
73 | .def("SetBuildCSDARange", &G4LossTableManager::SetBuildCSDARange) |
---|
74 | .def("SetLPMFlag", &G4LossTableManager::SetLPMFlag) |
---|
75 | .def("SetBremsstrahlungTh", &G4LossTableManager::SetBremsstrahlungTh) |
---|
76 | #else |
---|
77 | .def("SetStepLimits", &G4LossTableManager::SetStepLimits) |
---|
78 | .def("SetBuildPreciseRange", &G4LossTableManager::SetBuildPreciseRange) |
---|
79 | #endif |
---|
80 | .def("SetVerbose", &G4LossTableManager::SetVerbose) |
---|
81 | |
---|
82 | // --- |
---|
83 | #if G4VERSION_NUMBER >= 810 |
---|
84 | .def("BuildCSDARange", &G4LossTableManager::BuildCSDARange) |
---|
85 | .def("LPMFlag", &G4LossTableManager::LPMFlag) |
---|
86 | .def("BremsstrahlungTh", &G4LossTableManager::BremsstrahlungTh) |
---|
87 | |
---|
88 | #if G4VERSION_NUMBER <= 830 |
---|
89 | .def("SetMscStepLimitation", &G4LossTableManager::SetMscStepLimitation) |
---|
90 | .def("MscFlag", &G4LossTableManager::MscFlag) |
---|
91 | .def("FacRange", &G4LossTableManager::FacRange) |
---|
92 | #endif |
---|
93 | |
---|
94 | #else |
---|
95 | .def("BuildPreciseRange", &G4LossTableManager::BuildPreciseRange) |
---|
96 | #endif |
---|
97 | |
---|
98 | // --- |
---|
99 | #if G4VERSION_NUMBER == 830 |
---|
100 | .def("SetMscLateralDisplacement", |
---|
101 | &G4LossTableManager::SetMscLateralDisplacement) |
---|
102 | .def("SetSkin", &G4LossTableManager::SetSkin) |
---|
103 | #endif |
---|
104 | |
---|
105 | #if G4VERSION_NUMBER >= 830 |
---|
106 | .def("SetLinearLossLimit", &G4LossTableManager::SetLinearLossLimit) |
---|
107 | #endif |
---|
108 | |
---|
109 | ; |
---|
110 | |
---|
111 | } |
---|
112 | |
---|