Analysis Software
Documentation for sPHENIX simulation software
|
Singleton which provides access to magnetic field maps. More...
#include <GenFit/blob/master/core/include/FieldManager.h>
Public Member Functions | |
AbsBField * | getField () |
TVector3 | getFieldVal (const TVector3 &position) |
This does NOT use the cache! | |
void | getFieldVal (const double &posX, const double &posY, const double &posZ, double &Bx, double &By, double &Bz) |
void | init (AbsBField *b) |
set the magnetic field here. Magnetic field classes must be derived from AbsBField. | |
void | destruct () |
bool | isInitialized () |
void | checkInitialized () |
void | useCache (bool opt=true, unsigned int nBuckets=8) |
Cache last lookup positions, and use stored field values if a lookup at (almost) the same position is done. | |
Static Public Member Functions | |
static void | checkInstanciated () |
static FieldManager * | getInstance () |
Get singleton instance. | |
Private Member Functions | |
FieldManager () | |
~FieldManager () | |
Static Private Attributes | |
static FieldManager * | instance_ = nullptr |
static AbsBField * | field_ = nullptr |
static bool | useCache_ |
static unsigned int | n_buckets_ |
static fieldCache * | cache_ |
Singleton which provides access to magnetic field maps.
Definition at line 53 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 53 of file FieldManager.h
|
inlineprivate |
Definition at line 129 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 129 of file FieldManager.h
Referenced by getInstance().
|
inlineprivate |
Definition at line 131 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 131 of file FieldManager.h
References cache_.
|
inline |
Definition at line 91 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 91 of file FieldManager.h
References check_license::err(), genfit::errorOut, isInitialized(), and TauVsDIS_MachineLearning_Differentiation::msg.
Referenced by getField(), and getFieldVal().
|
inlinestatic |
Definition at line 100 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 100 of file FieldManager.h
References check_license::err(), genfit::errorOut, instance_, and TauVsDIS_MachineLearning_Differentiation::msg.
|
inline |
Definition at line 82 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 82 of file FieldManager.h
References instance_.
Referenced by genfit::RKTrackRepTests::TearDown(), and genfit::ConstFieldInitializedTests::TearDown().
|
inline |
Definition at line 57 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 57 of file FieldManager.h
References checkInitialized(), and field_.
|
inline |
This does NOT use the cache!
Definition at line 63 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 63 of file FieldManager.h
References checkInitialized(), field_, and genfit::AbsBField::get().
Referenced by genfit::HelixTrackModel::HelixTrackModel(), genfit::GFRaveMagneticField::inTesla(), PHGenFitTrackProjection::process_event(), genfit::GFGbl::processTrackWithRep(), genfit::GblFitter::processTrackWithRep(), genfit::MplTrackRep::RKPropagate(), and genfit::RKTrackRep::RKPropagate().
void genfit::FieldManager::getFieldVal | ( | const double & | posX, |
const double & | posY, | ||
const double & | posZ, | ||
double & | Bx, | ||
double & | By, | ||
double & | Bz | ||
) |
|
inlinestatic |
Get singleton instance.
Definition at line 119 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 119 of file FieldManager.h
References FieldManager(), and instance_.
Referenced by PHGenFit::Fitter::Fitter(), genfit::HelixTrackModel::HelixTrackModel(), genfit::GFRaveMagneticField::inTesla(), main(), PHGenFitTrackProjection::process_event(), genfit::GFGbl::processTrackWithRep(), genfit::GblFitter::processTrackWithRep(), genfit::MplTrackRep::RKPropagate(), genfit::RKTrackRep::RKPropagate(), genfit::RKTrackRepTests::SetUp(), genfit::ConstFieldInitializedTests::SetUp(), genfit::RKTrackRepTests::TearDown(), genfit::ConstFieldInitializedTests::TearDown(), and genfit::TEST_F().
|
inline |
set the magnetic field here. Magnetic field classes must be derived from AbsBField.
Definition at line 78 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 78 of file FieldManager.h
References KFPMath::b, and field_.
Referenced by PHGenFit::Fitter::Fitter(), main(), genfit::RKTrackRepTests::SetUp(), and genfit::ConstFieldInitializedTests::SetUp().
|
inline |
Definition at line 89 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 89 of file FieldManager.h
References field_.
Referenced by checkInitialized().
void genfit::FieldManager::useCache | ( | bool | opt = true , |
unsigned int | nBuckets = 8 |
||
) |
Cache last lookup positions, and use stored field values if a lookup at (almost) the same position is done.
Referenced by main().
|
staticprivate |
Definition at line 141 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 141 of file FieldManager.h
Referenced by ~FieldManager().
|
staticprivate |
Definition at line 136 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 136 of file FieldManager.h
Referenced by getField(), getFieldVal(), init(), and isInitialized().
|
staticprivate |
Definition at line 135 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 135 of file FieldManager.h
Referenced by checkInstanciated(), destruct(), and getInstance().
|
staticprivate |
Definition at line 140 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 140 of file FieldManager.h
|
staticprivate |
Definition at line 139 of file FieldManager.h.
View newest version in sPHENIX GitHub at line 139 of file FieldManager.h