LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 89 of file pyG4MagneticField.cc.

References pyG4MagneticField::f1_GetFieldValue.

Referenced by BOOST_PYTHON_MODULE().

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