20 #include "CLHEP/Units/SystemOfUnits.h" 21 #include "CLHEP/Vector/ThreeVector.h" 23 using CLHEP::Hep3Vector;
28 GlobalMagneticField::GlobalMagneticField()
31 _bFieldHandle = &*bField;
35 void GlobalMagneticField::GetFieldValue(
const G4double
Point[4], G4double *Bfield)
const {
38 const auto *pProvider = _bFieldHandle->
provider();
40 G4ThreeVector point(Point[0], Point[1], Point[2]);
41 const G4ThreeVector field = pProvider->FieldAtPoint(point);
43 Bfield[0] = field.x();
44 Bfield[1] = field.y();
45 Bfield[2] = field.z();
virtual const mag::MagneticField * provider() const =0
std::tuple< double, double, const reco::ClusterHit3D * > Point
Definitions used by the VoronoiDiagram algorithm.