EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicRoot/blob/master/eic/field/EicMagneticField.h>
Public Types | |
enum | XYZ { eX, eY, eZ } |
Public Member Functions | |
EicMagneticField (const char *fileName=0) | |
~EicMagneticField () | |
void | AddFieldMap (EicMagneticFieldMap *map) |
int | AddBeamLineElementMaps (const char *directory, float fieldScaler=1., int color=_DEFAULT_YOKE_COLOR_) |
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) |
void | SuppressYokeCreation (const char *name) |
int | CreateYokeVolumes (Bool_t Active=kFALSE) |
int | Export (const char *fileName) const |
Private Member Functions | |
int | InitializeFieldMaps () |
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::set< TString > | mSuppressedYokes |
indicates whether Initialize() call was made or not | |
std::vector < EicMagneticFieldMap * > | mMaps |
Definition at line 80 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 80 of file EicMagneticField.h
Definition at line 92 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 92 of file EicMagneticField.h
EicMagneticField::EicMagneticField | ( | const char * | fileName = 0 | ) |
Definition at line 22 of file EicMagneticField.cxx.
View newest version in sPHENIX GitHub at line 22 of file EicMagneticField.cxx
References _EIC_MAGNETIC_FIELD_, ExpandedFileName(), MESSAGE_ORIGIN, and mInitialized.
|
inline |
Definition at line 84 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 84 of file EicMagneticField.h
int EicMagneticField::AddBeamLineElementGrads | ( | const char * | directory, |
float | fieldScaler = 1. , |
||
int | color = _DEFAULT_YOKE_COLOR_ |
||
) |
Definition at line 92 of file EicMagneticField.cxx.
View newest version in sPHENIX GitHub at line 92 of file EicMagneticField.cxx
References AddFieldMap(), ExpandedFileName(), G4BARRELHCAL::length, MESSAGE_ORIGIN, name, printf(), EicBeamLineElementGrad::SetFieldScale(), and EicMagneticFieldMap::SetYokeColor().
Referenced by simulation().
int EicMagneticField::AddBeamLineElementMaps | ( | const char * | directory, |
float | fieldScaler = 1. , |
||
int | color = _DEFAULT_YOKE_COLOR_ |
||
) |
Definition at line 52 of file EicMagneticField.cxx.
View newest version in sPHENIX GitHub at line 52 of file EicMagneticField.cxx
References _CSV_EXTENSION_, AddFieldMap(), ExpandedFileName(), MESSAGE_ORIGIN, printf(), and EicMagneticFieldMap::SetYokeColor().
|
inline |
Definition at line 86 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 86 of file EicMagneticField.h
References mMaps.
Referenced by AddBeamLineElementGrads(), and AddBeamLineElementMaps().
int EicMagneticField::CreateYokeVolumes | ( | Bool_t | Active = kFALSE | ) |
Definition at line 243 of file EicMagneticField.cxx.
View newest version in sPHENIX GitHub at line 243 of file EicMagneticField.cxx
References FairRunSim::AddModule(), EicMagneticFieldMap::CapableToBuildYoke(), EicMagneticFieldMap::GetDetectorName(), FairRunSim::Instance(), Acts::UnitConstants::mm, mMaps, and mSuppressedYokes.
Referenced by simulation().
int EicMagneticField::Export | ( | const char * | fileName | ) | const |
Definition at line 334 of file EicMagneticField.cxx.
View newest version in sPHENIX GitHub at line 334 of file EicMagneticField.cxx
References _EIC_MAGNETIC_FIELD_, and printf().
|
inline |
Definition at line 101 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 101 of file EicMagneticField.h
References eX, and GetBxyzCore().
|
inline |
Definition at line 105 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 105 of file EicMagneticField.h
References GetFieldSumValue().
|
inlineprivate |
Definition at line 129 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 129 of file EicMagneticField.h
References GetFieldSumValue(), x, and y.
Referenced by GetBx(), GetBy(), and GetBz().
|
inline |
Definition at line 102 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 102 of file EicMagneticField.h
References eY, and GetBxyzCore().
|
inline |
Definition at line 103 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 103 of file EicMagneticField.h
References eZ, and GetBxyzCore().
|
private |
Definition at line 299 of file EicMagneticField.cxx.
View newest version in sPHENIX GitHub at line 299 of file EicMagneticField.cxx
References EicMagneticFieldMap::GetFieldValue(), InitializeFieldMaps(), mInitialized, Acts::UnitConstants::mm, and mMaps.
Referenced by GetBxyz(), and GetBxyzCore().
|
inline |
Definition at line 98 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 98 of file EicMagneticField.h
References InitializeFieldMaps().
|
private |
Definition at line 267 of file EicMagneticField.cxx.
View newest version in sPHENIX GitHub at line 267 of file EicMagneticField.cxx
References _EIC_MAGNETIC_FIELD_, EicMagneticFieldMap::GetFileName(), FairRun::GetOutputFile(), EicMagneticFieldMap::Initialize(), EicMagneticFieldMap::Initialized(), FairRun::Instance(), MESSAGE_ORIGIN, mInitialized, Acts::UnitConstants::mm, and mMaps.
Referenced by GetFieldSumValue(), and Init().
|
inline |
Definition at line 109 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 109 of file EicMagneticField.h
References mSuppressedYokes.
Referenced by simulation().
|
private |
Definition at line 117 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 117 of file EicMagneticField.h
Referenced by EicMagneticField(), GetFieldSumValue(), and InitializeFieldMaps().
|
private |
Definition at line 122 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 122 of file EicMagneticField.h
Referenced by AddFieldMap(), CreateYokeVolumes(), GetFieldSumValue(), and InitializeFieldMaps().
|
private |
indicates whether Initialize() call was made or not
Definition at line 119 of file EicMagneticField.h.
View newest version in sPHENIX GitHub at line 119 of file EicMagneticField.h
Referenced by CreateYokeVolumes(), and SuppressYokeCreation().