LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
pyG4FieldManager.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4FieldManager.hh"
#include "G4Field.hh"
#include "G4ChordFinder.hh"
#include "G4MagneticField.hh"
#include "G4Track.hh"

Go to the source code of this file.

Namespaces

 pyG4FieldManager
 

Functions

void export_G4FieldManager ()
 

Variables

G4ChordFinder *(G4FieldManager::* pyG4FieldManager::f1_GetChordFinder )() = &G4FieldManager::GetChordFinder
 
const G4ChordFinder *(G4FieldManager::* pyG4FieldManager::f2_GetChordFinder )() const = &G4FieldManager::GetChordFinder
 

Function Documentation

void export_G4FieldManager ( )

Definition at line 70 of file pyG4FieldManager.cc.

References pyG4FieldManager::f1_GetChordFinder, and pyG4FieldManager::f2_GetChordFinder.

Referenced by BOOST_PYTHON_MODULE().

71 {
72  class_<G4FieldManager, G4FieldManager*, boost::noncopyable>
73  ("G4FieldManager", "field manager class")
74  // constructors
75  .def(init<>())
76  .def(init<G4Field*>())
77  .def(init<G4Field*, G4ChordFinder*>())
78  .def(init<G4Field*, G4ChordFinder*, G4bool>())
79  .def(init<G4MagneticField*>())
80  // ---
81  .def("SetDetectorField", &G4FieldManager::SetDetectorField)
82  .def("GetDetectorField", &G4FieldManager::GetDetectorField,
83  return_internal_reference<>())
84  .def("DoesFieldExist", &G4FieldManager::DoesFieldExist)
85  .def("CreateChordFinder", &G4FieldManager::CreateChordFinder)
86  .def("SetChordFinder", &G4FieldManager::SetChordFinder)
87  .def("GetChordFinder", f1_GetChordFinder,
88  return_internal_reference<>())
89  .def("GetChordFinder", f2_GetChordFinder,
90  return_internal_reference<>())
91  .def("ConfigureForTrack", &G4FieldManager::ConfigureForTrack)
92  .def("GetDeltaIntersection", &G4FieldManager::GetDeltaIntersection)
93  .def("GetDeltaOneStep", &G4FieldManager::GetDeltaOneStep)
94  .def("SetAccuraciesWithDeltaOneStep",
95  &G4FieldManager::SetAccuraciesWithDeltaOneStep)
96  .def("SetDeltaOneStep", &G4FieldManager::SetDeltaOneStep)
97  .def("SetDeltaIntersection", &G4FieldManager::SetDeltaIntersection)
98  .def("GetMinimumEpsilonStep", &G4FieldManager::GetMinimumEpsilonStep)
99  .def("SetMinimumEpsilonStep", &G4FieldManager::SetMinimumEpsilonStep)
100  .def("GetMaximumEpsilonStep", &G4FieldManager::GetMaximumEpsilonStep)
101  .def("SetMaximumEpsilonStep", &G4FieldManager::SetMaximumEpsilonStep)
102  .def("DoesFieldChangeEnergy", &G4FieldManager::DoesFieldChangeEnergy)
103  .def("SetFieldChangesEnergy", &G4FieldManager::SetFieldChangesEnergy)
104  ;
105 }
const G4ChordFinder *(G4FieldManager::* f2_GetChordFinder)() const
G4ChordFinder *(G4FieldManager::* f1_GetChordFinder)()