EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
genfit::ConstField Class Reference

Constant Magnetic field. More...

#include <fun4all_GenFit/blob/master/fields/include/ConstField.h>

+ Inheritance diagram for genfit::ConstField:
+ Collaboration diagram for genfit::ConstField:

Public Member Functions

 ConstField (double b1, double b2, double b3)
 define the constant field in this ctor
 
 ConstField (const TVector3 &field)
 
TVector3 get (const TVector3 &pos) const
 return value at position
 
void get (const double &posX, const double &posY, const double &posZ, double &Bx, double &By, double &Bz) const
 Get the magneticField [kGauss] at position.
 
- Public Member Functions inherited from genfit::AbsBField
 AbsBField ()
 
virtual ~AbsBField ()
 

Private Attributes

TVector3 field_
 

Detailed Description

Constant Magnetic field.

Author
Christian Höppner (Technische Universität München, original author)
Sebastian Neubert (Technische Universität München, original author)

Definition at line 37 of file ConstField.h.

View newest version in sPHENIX GitHub at line 37 of file ConstField.h

Constructor & Destructor Documentation

genfit::ConstField::ConstField ( double  b1,
double  b2,
double  b3 
)
inline

define the constant field in this ctor

Definition at line 40 of file ConstField.h.

View newest version in sPHENIX GitHub at line 40 of file ConstField.h

genfit::ConstField::ConstField ( const TVector3 &  field)
inline

Definition at line 44 of file ConstField.h.

View newest version in sPHENIX GitHub at line 44 of file ConstField.h

Member Function Documentation

TVector3 genfit::ConstField::get ( const TVector3 &  pos) const
virtual

return value at position

Implements genfit::AbsBField.

Definition at line 23 of file ConstField.cc.

View newest version in sPHENIX GitHub at line 23 of file ConstField.cc

References field_.

void genfit::ConstField::get ( const double &  posX,
const double &  posY,
const double &  posZ,
double &  Bx,
double &  By,
double &  Bz 
) const
virtual

Get the magneticField [kGauss] at position.

Override this in your concrete implementation.

Reimplemented from genfit::AbsBField.

Definition at line 27 of file ConstField.cc.

View newest version in sPHENIX GitHub at line 27 of file ConstField.cc

References field_.

Member Data Documentation

TVector3 genfit::ConstField::field_
private

Definition at line 53 of file ConstField.h.

View newest version in sPHENIX GitHub at line 53 of file ConstField.h

Referenced by get().


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