Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEveMagField Class Reference

Abstract base-class for interfacing to magnetic field needed by the TEveTrackPropagator.

To implement your own version, redefine the following virtual functions: virtual Double_t GetMaxFieldMagD() const; virtual TEveVectorD GetFieldD(Double_t x, Double_t y, Double_t z) const;

See sub-classes TEveMagFieldConst and TEveMagFieldDuo for two simple implementations.

NOTE: For backward compatibility float versions are the primary sources of field information in this base-class. The float versions are not used in TEve and can be ignored in sub-classes.

NOTE: Magnetic field direction convention is inverted.

Definition at line 30 of file TEveTrackPropagator.h.

Public Member Functions

 TEveMagField ()
 
virtual ~TEveMagField ()
 
virtual TEveVector GetField (Float_t, Float_t, Float_t) const
 
TEveVectorD GetFieldD (const TEveVectorD &v) const
 
virtual TEveVectorD GetFieldD (Double_t x, Double_t y, Double_t z) const
 
virtual Float_t GetMaxFieldMag () const
 
virtual Double_t GetMaxFieldMagD () const
 
virtual Bool_t IsConst () const
 
virtual void PrintField (Double_t x, Double_t y, Double_t z) const
 

Protected Attributes

Bool_t fFieldConstant
 

#include <TEveTrackPropagator.h>

Inheritance diagram for TEveMagField:
[legend]

Constructor & Destructor Documentation

◆ TEveMagField()

TEveMagField::TEveMagField ( )
inline

Definition at line 36 of file TEveTrackPropagator.h.

◆ ~TEveMagField()

virtual TEveMagField::~TEveMagField ( )
inlinevirtual

Definition at line 37 of file TEveTrackPropagator.h.

Member Function Documentation

◆ GetField()

virtual TEveVector TEveMagField::GetField ( Float_t  ,
Float_t  ,
Float_t   
) const
inlinevirtual

Definition at line 60 of file TEveTrackPropagator.h.

◆ GetFieldD() [1/2]

TEveVectorD TEveMagField::GetFieldD ( const TEveVectorD v) const
inline

Definition at line 57 of file TEveTrackPropagator.h.

◆ GetFieldD() [2/2]

virtual TEveVectorD TEveMagField::GetFieldD ( Double_t  x,
Double_t  y,
Double_t  z 
) const
inlinevirtual

Reimplemented in TEveMagFieldDuo, and TEveMagFieldConst.

Definition at line 55 of file TEveTrackPropagator.h.

◆ GetMaxFieldMag()

virtual Float_t TEveMagField::GetMaxFieldMag ( ) const
inlinevirtual

Definition at line 59 of file TEveTrackPropagator.h.

◆ GetMaxFieldMagD()

virtual Double_t TEveMagField::GetMaxFieldMagD ( ) const
inlinevirtual

Reimplemented in TEveMagFieldConst, and TEveMagFieldDuo.

Definition at line 54 of file TEveTrackPropagator.h.

◆ IsConst()

virtual Bool_t TEveMagField::IsConst ( ) const
inlinevirtual

Definition at line 39 of file TEveTrackPropagator.h.

◆ PrintField()

virtual void TEveMagField::PrintField ( Double_t  x,
Double_t  y,
Double_t  z 
) const
inlinevirtual

Definition at line 41 of file TEveTrackPropagator.h.

Member Data Documentation

◆ fFieldConstant

Bool_t TEveMagField::fFieldConstant
protected

Definition at line 33 of file TEveTrackPropagator.h.

Libraries for TEveMagField:

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