EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Constant Magnetic field. More...
#include <fun4all_GenFit/blob/master/fields/include/ConstField.h>
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_ |
Constant Magnetic field.
Definition at line 37 of file ConstField.h.
View newest version in sPHENIX GitHub at line 37 of file ConstField.h
|
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
|
inline |
Definition at line 44 of file ConstField.h.
View newest version in sPHENIX GitHub at line 44 of file ConstField.h
|
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_.
|
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_.
|
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().