31 #include <boost/python.hpp> 32 #include "G4MagneticField.hh" 33 #include "G4ThreeVector.hh" 46 virtual G4ThreeVector GetFieldValue(
const G4ThreeVector& pos,
47 const G4double time)
const = 0;
50 G4double* Bfield)
const {
52 const G4ThreeVector& bfield=
53 GetFieldValue(G4ThreeVector(Point[0], Point[1], Point[2]), Point[3]);
55 Bfield[0]= bfield.x();
56 Bfield[1]= bfield.y();
57 Bfield[2]= bfield.z();
71 const G4double time)
const {
72 return get_override(
"GetFieldValue")(pos, time);
78 (
const G4ThreeVector&,
const G4double)
const 90 class_<G4MagneticField, boost::noncopyable >
91 (
"__G4MagneticField",
"dummy class of magnetic field", no_init)
95 bases<G4Field, G4MagneticField> >
96 (
"G4MagneticField",
"base class of magnetic field")
98 .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()