FairRoot/PandaRoot
|
Singleton which provides access to magnetic field maps. More...
#include <FieldManager.h>
Public Member Functions | |
AbsBField * | getField () |
TVector3 | getFieldVal (const TVector3 &position) |
This does NOT use the cache! More... | |
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. More... | |
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. More... | |
Static Public Member Functions | |
static void | checkInstanciated () |
static FieldManager * | getInstance () |
Get singleton instance. More... | |
Private Member Functions | |
FieldManager () | |
~FieldManager () | |
Static Private Attributes | |
static FieldManager * | instance_ |
static AbsBField * | field_ |
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.
|
inlineprivate |
|
inlineprivate |
|
inline |
Definition at line 84 of file FieldManager.h.
References isInitialized().
Referenced by getField(), and getFieldVal().
|
inlinestatic |
Definition at line 93 of file FieldManager.h.
References instance_.
|
inline |
|
inline |
This does NOT use the cache!
Definition at line 63 of file FieldManager.h.
References checkInitialized(), field_, and genfit::AbsBField::get().
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 112 of file FieldManager.h.
References FieldManager(), and instance_.
Referenced by PndRecoDafFit2::Init(), and PndRecoKalmanFit2::Init().
|
inline |
set the magnetic field here. Magnetic field classes must be derived from AbsBField.
Definition at line 78 of file FieldManager.h.
Referenced by PndRecoDafFit2::Init(), and PndRecoKalmanFit2::Init().
|
inline |
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.
|
staticprivate |
Definition at line 134 of file FieldManager.h.
Referenced by ~FieldManager().
|
staticprivate |
Definition at line 129 of file FieldManager.h.
Referenced by getField(), getFieldVal(), init(), and isInitialized().
|
staticprivate |
Definition at line 128 of file FieldManager.h.
Referenced by checkInstanciated(), and getInstance().
|
staticprivate |
Definition at line 133 of file FieldManager.h.
|
staticprivate |
Definition at line 132 of file FieldManager.h.