Belle II Software development
EveVisBField Class Reference

Provide magnetic field values for TEveTrackPropagator. More...

#include <EveVisBField.h>

Inheritance diagram for EveVisBField:

Public Member Functions

virtual TEveVector GetField (Float_t x, Float_t y, Float_t z) const override
 return field strength at given coordinates, using Eve conventions.
 
virtual Float_t GetMaxFieldMag () const override
 maximal field strength (is this correct?)
 

Detailed Description

Provide magnetic field values for TEveTrackPropagator.

Definition at line 19 of file EveVisBField.h.

Constructor & Destructor Documentation

◆ EveVisBField()

EveVisBField ( )
inline

Definition at line 21 of file EveVisBField.h.

21: TEveMagField() { }

◆ ~EveVisBField()

virtual ~EveVisBField ( )
inlinevirtual

Definition at line 22 of file EveVisBField.h.

22{ }

Member Function Documentation

◆ GetField()

virtual TEveVector GetField ( Float_t  x,
Float_t  y,
Float_t  z 
) const
inlineoverridevirtual

return field strength at given coordinates, using Eve conventions.

Definition at line 25 of file EveVisBField.h.

26 {
27 TEveVector v;
28 ROOT::Math::XYZVector bfield = BFieldManager::getField(x, y, z) / Unit::T;
29 v.Set(bfield.X(), bfield.Y(), bfield.Z());
30 v.fZ *= -1; //Eve has inverted B field convention
31 v.fZ -= 1e-6; //field must not be zero!
32
33 return v;
34 }
static const double T
[tesla]
Definition: Unit.h:120
static void getField(const double *pos, double *field)
return the magnetic field at a given position.
Definition: BFieldManager.h:91

◆ GetMaxFieldMag()

virtual Float_t GetMaxFieldMag ( ) const
inlineoverridevirtual

maximal field strength (is this correct?)

Definition at line 36 of file EveVisBField.h.

36{ return 1.5; }

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