Geant4-11
Data Structures | Namespaces | Functions | Variables
pyG4MagneticField.cc File Reference
#include <boost/python.hpp>
#include "G4MagneticField.hh"
#include "G4ThreeVector.hh"

Go to the source code of this file.

Data Structures

struct  pyG4MagneticField::CB_PyG4MagneticField
 
class  PyG4MagneticField
 

Namespaces

namespace  pyG4MagneticField
 

Functions

void export_G4MagneticField ()
 

Variables

G4ThreeVector(PyG4MagneticField::* pyG4MagneticField::f1_GetFieldValue )(const G4ThreeVector &, const G4double) const = &PyG4MagneticField::GetFieldValue
 

Function Documentation

◆ export_G4MagneticField()

void export_G4MagneticField ( )

Definition at line 90 of file pyG4MagneticField.cc.

91{
92 class_<G4MagneticField, boost::noncopyable >
93 ("__G4MagneticField", "dummy class of magnetic field", no_init)
94 ;
95
96 class_<CB_PyG4MagneticField, boost::noncopyable,
97 bases<G4Field, G4MagneticField> >
98 ("G4MagneticField", "base class of magnetic field")
99 // ---
100 .def("DoesFieldChangeEnergy", &G4MagneticField::DoesFieldChangeEnergy)
101 .def("GetFieldValue", pure_virtual(f1_GetFieldValue))
102 ;
103}
G4bool DoesFieldChangeEnergy() const
G4ThreeVector(PyG4MagneticField::* f1_GetFieldValue)(const G4ThreeVector &, const G4double) const

References G4MagneticField::DoesFieldChangeEnergy(), and pyG4MagneticField::f1_GetFieldValue.

Referenced by BOOST_PYTHON_MODULE().