Belle II Software  release-05-02-19
MagneticField Class Reference

The Class for the Belle2 magnetic field implementation for Geant4. More...

#include <MagneticField.h>

Inheritance diagram for MagneticField:
Collaboration diagram for MagneticField:

Public Member Functions

 MagneticField ()
 Constructor.
 
 ~MagneticField ()
 Destructor.
 
void GetFieldValue (const G4double Point[3], G4double *Bfield) const
 Sets the magnetic field vector for a specified space point. More...
 

Detailed Description

The Class for the Belle2 magnetic field implementation for Geant4.

The Geant4 simulation uses the central magnetic field map implementation of the basf2 framework to return the magnetic field vector for a space point.

Definition at line 38 of file MagneticField.h.

Member Function Documentation

◆ GetFieldValue()

void GetFieldValue ( const G4double  Point[3],
G4double *  Bfield 
) const

Sets the magnetic field vector for a specified space point.

Parameters
PointAn array specifying the space point (x,y,z) in [mm].
BfieldReturns the magnetic field vector in tesla.

Definition at line 43 of file MagneticField.cc.


The documentation for this class was generated from the following files: