EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicRoot/blob/master/eic/field/EicMagneticFieldFromGradients.h>
Public Types | |
enum | XYZ { eX, eY, eZ } |
Public Member Functions | |
EicMagneticFieldFromGradients (const char *fileName=0) | |
~EicMagneticFieldFromGradients () | |
void | AddFieldGradient (EicMagneticFieldGrad *grad) |
int | AddBeamLineElementGrads (const char *directory, float fieldScaler=1., int color=_DEFAULT_YOKE_COLOR_) |
void | Init () |
Double_t | GetBx (Double_t x, Double_t y, Double_t z) |
Double_t | GetBy (Double_t x, Double_t y, Double_t z) |
Double_t | GetBz (Double_t x, Double_t y, Double_t z) |
void | GetBxyz (const Double_t point[3], Double_t *bField) |
int | CreateYokeVolumes (Bool_t Active=kFALSE) |
int | Export (const char *fileName) const |
Private Member Functions | |
int | InitializeFieldGradients () |
int | GetFieldSumValue (const double xx[], double B[]) |
Double_t | GetBxyzCore (Double_t x, Double_t y, Double_t z, XYZ coord) |
Private Attributes | |
Bool_t | mInitialized |
std::vector < EicMagneticFieldGrad * > | mMaps |
indicates whether Initialize() call was made or not | |
Definition at line 25 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 25 of file EicMagneticFieldFromGradients.h
Definition at line 36 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 36 of file EicMagneticFieldFromGradients.h
EicMagneticFieldFromGradients::EicMagneticFieldFromGradients | ( | const char * | fileName = 0 | ) |
Definition at line 24 of file EicMagneticFieldFromGradients.cxx.
View newest version in sPHENIX GitHub at line 24 of file EicMagneticFieldFromGradients.cxx
References _EIC_MAGNETIC_FIELD_FROM_GRADIENTS_, ExpandedFileName(), MESSAGE_ORIGIN, and mInitialized.
|
inline |
Definition at line 29 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 29 of file EicMagneticFieldFromGradients.h
int EicMagneticFieldFromGradients::AddBeamLineElementGrads | ( | const char * | directory, |
float | fieldScaler = 1. , |
||
int | color = _DEFAULT_YOKE_COLOR_ |
||
) |
Definition at line 54 of file EicMagneticFieldFromGradients.cxx.
View newest version in sPHENIX GitHub at line 54 of file EicMagneticFieldFromGradients.cxx
References AddFieldGradient(), ExpandedFileName(), MESSAGE_ORIGIN, printf(), EicBeamLineElementGrad::SetFieldScale(), and EicMagneticFieldMap::SetYokeColor().
|
inline |
Definition at line 31 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 31 of file EicMagneticFieldFromGradients.h
References mMaps.
Referenced by AddBeamLineElementGrads().
int EicMagneticFieldFromGradients::CreateYokeVolumes | ( | Bool_t | Active = kFALSE | ) |
Definition at line 141 of file EicMagneticFieldFromGradients.cxx.
View newest version in sPHENIX GitHub at line 141 of file EicMagneticFieldFromGradients.cxx
References FairRunSim::AddModule(), EicMagneticFieldGrad::CapableToBuildYoke(), FairRunSim::Instance(), Acts::UnitConstants::mm, and mMaps.
|
inline |
Definition at line 56 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 56 of file EicMagneticFieldFromGradients.h
|
inline |
Definition at line 45 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 45 of file EicMagneticFieldFromGradients.h
References eX, and GetBxyzCore().
|
inline |
Definition at line 49 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 49 of file EicMagneticFieldFromGradients.h
References GetFieldSumValue().
|
inlineprivate |
Definition at line 70 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 70 of file EicMagneticFieldFromGradients.h
References GetFieldSumValue(), x, and y.
Referenced by GetBx(), GetBy(), and GetBz().
|
inline |
Definition at line 46 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 46 of file EicMagneticFieldFromGradients.h
References eY, and GetBxyzCore().
|
inline |
Definition at line 47 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 47 of file EicMagneticFieldFromGradients.h
References eZ, and GetBxyzCore().
|
private |
Definition at line 195 of file EicMagneticFieldFromGradients.cxx.
View newest version in sPHENIX GitHub at line 195 of file EicMagneticFieldFromGradients.cxx
References EicMagneticFieldGrad::GetFieldValue(), InitializeFieldGradients(), mInitialized, Acts::UnitConstants::mm, and mMaps.
Referenced by GetBxyz(), and GetBxyzCore().
|
inline |
Definition at line 42 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 42 of file EicMagneticFieldFromGradients.h
References InitializeFieldGradients().
|
private |
Definition at line 162 of file EicMagneticFieldFromGradients.cxx.
View newest version in sPHENIX GitHub at line 162 of file EicMagneticFieldFromGradients.cxx
References EicMagneticFieldGrad::GetFileName(), EicMagneticFieldGrad::Initialize(), EicMagneticFieldGrad::Initialized(), MESSAGE_ORIGIN, mInitialized, Acts::UnitConstants::mm, and mMaps.
Referenced by GetFieldSumValue(), and Init().
|
private |
Definition at line 56 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 56 of file EicMagneticFieldFromGradients.h
Referenced by EicMagneticFieldFromGradients(), GetFieldSumValue(), and InitializeFieldGradients().
|
private |
indicates whether Initialize() call was made or not
Definition at line 63 of file EicMagneticFieldFromGradients.h.
View newest version in sPHENIX GitHub at line 63 of file EicMagneticFieldFromGradients.h
Referenced by AddFieldGradient(), CreateYokeVolumes(), GetFieldSumValue(), and InitializeFieldGradients().