Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
pyG4FieldManager.cc
이 파일의 문서화 페이지로 가기
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: pyG4FieldManager.cc 107590 2017-11-24 11:59:22Z gcosmo $
27 // ====================================================================
28 // pyG4FieldManager.cc
29 //
30 // 2005 Q
31 // ====================================================================
32 #include <boost/python.hpp>
33 #include "G4Version.hh"
34 #include "G4FieldManager.hh"
35 #include "G4Field.hh"
36 #include "G4ChordFinder.hh"
37 #include "G4MagneticField.hh"
38 #include "G4Track.hh"
39 
40 using namespace boost::python;
41 
42 // ====================================================================
43 // thin wrappers
44 // ====================================================================
45 namespace pyG4FieldManager {
46 
49 
52 
54  SetDetectorField, 1, 2);
55 
56 }
57 
58 using namespace pyG4FieldManager;
59 
60 // ====================================================================
61 // module definition
62 // ====================================================================
64 {
65  class_<G4FieldManager, G4FieldManager*, boost::noncopyable>
66  ("G4FieldManager", "field manager class")
67  // constructors
68  .def(init<>())
69  .def(init<G4Field*>())
70  .def(init<G4Field*, G4ChordFinder*>())
71  .def(init<G4Field*, G4ChordFinder*, G4bool>())
72  .def(init<G4MagneticField*>())
73  // ---
74  .def("SetDetectorField", &G4FieldManager::SetDetectorField,
75  f_SetDetectorField())
76  .def("GetDetectorField", &G4FieldManager::GetDetectorField,
77  return_internal_reference<>())
78  .def("DoesFieldExist", &G4FieldManager::DoesFieldExist)
79  .def("CreateChordFinder", &G4FieldManager::CreateChordFinder)
80  .def("SetChordFinder", &G4FieldManager::SetChordFinder)
81  .def("GetChordFinder", f1_GetChordFinder,
82  return_internal_reference<>())
83  .def("GetChordFinder", f2_GetChordFinder,
84  return_internal_reference<>())
85  .def("ConfigureForTrack", &G4FieldManager::ConfigureForTrack)
86  .def("GetDeltaIntersection", &G4FieldManager::GetDeltaIntersection)
87  .def("GetDeltaOneStep", &G4FieldManager::GetDeltaOneStep)
88  .def("SetAccuraciesWithDeltaOneStep",
90  .def("SetDeltaOneStep", &G4FieldManager::SetDeltaOneStep)
91  .def("SetDeltaIntersection", &G4FieldManager::SetDeltaIntersection)
92  .def("GetMinimumEpsilonStep", &G4FieldManager::GetMinimumEpsilonStep)
93  .def("SetMinimumEpsilonStep", &G4FieldManager::SetMinimumEpsilonStep)
94  .def("GetMaximumEpsilonStep", &G4FieldManager::GetMaximumEpsilonStep)
95  .def("SetMaximumEpsilonStep", &G4FieldManager::SetMaximumEpsilonStep)
96  .def("DoesFieldChangeEnergy", &G4FieldManager::DoesFieldChangeEnergy)
97  .def("SetFieldChangesEnergy", &G4FieldManager::SetFieldChangesEnergy)
98  ;
99 }
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
virtual void ConfigureForTrack(const G4Track *)
void SetMinimumEpsilonStep(G4double newEpsMin)
G4bool DoesFieldChangeEnergy() const
G4double GetDeltaOneStep() const
G4bool DoesFieldExist() const
G4double GetDeltaIntersection() const
void SetAccuraciesWithDeltaOneStep(G4double valDeltaOneStep)
G4bool SetDetectorField(G4Field *detectorField, int failMode=0)
void SetFieldChangesEnergy(G4bool value)
void CreateChordFinder(G4MagneticField *detectorMagField)
G4ChordFinder *(G4FieldManager::* f1_GetChordFinder)()
G4double GetMaximumEpsilonStep() const
const G4ChordFinder *(G4FieldManager::* f2_GetChordFinder)() const
const G4Field * GetDetectorField() const
void SetChordFinder(G4ChordFinder *aChordFinder)
void SetDeltaIntersection(G4double valueDintersection)
G4double GetMinimumEpsilonStep() const
void SetMaximumEpsilonStep(G4double newEpsMax)
void SetDeltaOneStep(G4double valueD1step)
void export_G4FieldManager()
G4ChordFinder * GetChordFinder()