LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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

 pyG4FieldManager::BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS (f_SetDetectorField, SetDetectorField, 1, 2)
 
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 62 of file pyG4FieldManager.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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