Belle II Software  release-08-01-10
GFGeant4Field Class Reference

Interface of the Belle II B-field with GenFit. More...

#include <GFGeant4Field.h>

Inheritance diagram for GFGeant4Field:
Collaboration diagram for GFGeant4Field:

Public Member Functions

 GFGeant4Field ()
 Constructor. More...
 
TVector3 get (const TVector3 &position) const override
 Getter for the magnetic field. More...
 
virtual void get (const double &posX, const double &posY, const double &posZ, double &Bx, double &By, double &Bz) const
 Get the magneticField [kGauss] at position. More...
 

Detailed Description

Interface of the Belle II B-field with GenFit.

Definition at line 16 of file GFGeant4Field.h.

Constructor & Destructor Documentation

◆ GFGeant4Field()

GFGeant4Field ( )
inline

Constructor.

The same B field as in the simulation is used. If you want to use a different field in reconstruction, please run two jobs and change the used B field in the geometry data (Belle2.xml file).

Definition at line 24 of file GFGeant4Field.h.

24 : genfit::AbsBField() {}
Abstract Interface to magnetic fields in GENFIT.
Definition: AbsBField.h:36

Member Function Documentation

◆ get() [1/2]

virtual void get ( const double &  posX,
const double &  posY,
const double &  posZ,
double &  Bx,
double &  By,
double &  Bz 
) const
inlinevirtualinherited

Get the magneticField [kGauss] at position.

Override this in your concrete implementation.

Reimplemented in ConstField.

Definition at line 56 of file AbsBField.h.

56 { const TVector3& B(this->get(TVector3(posX, posY, posZ))); Bx = B.X(); By = B.Y(); Bz = B.Z(); }
virtual TVector3 get(const TVector3 &position) const =0
Get the magneticField [kGauss] at position.

◆ get() [2/2]

TVector3 get ( const TVector3 &  position) const
inlineoverridevirtual

Getter for the magnetic field.

As Genfit uses kGauss, but we use T in basf2, we need to apply a factor 10 in the calculation.

Parameters
positionPosition at which the magnetic field should be evaluated.

Implements AbsBField.

Definition at line 31 of file GFGeant4Field.h.


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