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 TClassIsA () const
 
virtual Bool_t IsConst () const
 
virtual void PrintField (Double_t x, Double_t y, Double_t z) const
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

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

◆ Class()

static TClass * TEveMagField::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TEveMagField::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TEveMagField::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 62 of file TEveTrackPropagator.h.

◆ DeclFileName()

static const char * TEveMagField::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 62 of file TEveTrackPropagator.h.

◆ 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.

◆ IsA()

virtual TClass * TEveMagField::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented in TEveMagFieldConst, and TEveMagFieldDuo.

Definition at line 62 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.

◆ Streamer()

virtual void TEveMagField::Streamer ( TBuffer )
virtual

Reimplemented in TEveMagFieldConst, and TEveMagFieldDuo.

◆ StreamerNVirtual()

void TEveMagField::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 62 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: