32 #include <boost/python.hpp> 33 #include "G4MagneticField.hh" 34 #include "G4ThreeVector.hh" 47 virtual G4ThreeVector GetFieldValue(
const G4ThreeVector& pos,
48 const G4double time)
const = 0;
51 G4double* Bfield)
const {
53 const G4ThreeVector& bfield=
54 GetFieldValue(G4ThreeVector(Point[0], Point[1], Point[2]), Point[3]);
56 Bfield[0]= bfield.x();
57 Bfield[1]= bfield.y();
58 Bfield[2]= bfield.z();
72 const G4double time)
const {
73 return get_override(
"GetFieldValue")(pos, time);
79 (
const G4ThreeVector&,
const G4double)
const 91 class_<G4MagneticField, boost::noncopyable >
92 (
"__G4MagneticField",
"dummy class of magnetic field", no_init)
96 bases<G4Field, G4MagneticField> >
97 (
"G4MagneticField",
"base class of magnetic field")
99 .def(
"DoesFieldChangeEnergy", &G4MagneticField::DoesFieldChangeEnergy)
virtual void GetFieldValue(const G4double Point[4], G4double *Bfield) const
G4ThreeVector GetFieldValue(const G4ThreeVector &pos, const G4double time) const
virtual G4ThreeVector GetFieldValue(const G4ThreeVector &pos, const G4double time) const =0
G4ThreeVector(PyG4MagneticField::* f1_GetFieldValue)(const G4ThreeVector &, const G4double) const
std::tuple< double, double, const reco::ClusterHit3D * > Point
Definitions used by the VoronoiDiagram algorithm.
void export_G4MagneticField()