LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4MagneticField.cc File Reference
#include <boost/python.hpp>
#include "G4MagneticField.hh"
#include "G4ThreeVector.hh"

Go to the source code of this file.

Classes

class  PyG4MagneticField
 
struct  pyG4MagneticField::CB_PyG4MagneticField
 

Namespaces

 pyG4MagneticField
 

Functions

void export_G4MagneticField ()
 

Variables

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

Function Documentation

void export_G4MagneticField ( )

Definition at line 88 of file pyG4MagneticField.cc.

References pyG4MagneticField::f1_GetFieldValue.

Referenced by BOOST_PYTHON_MODULE().

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