![]() |
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... | |
Singleton which provides access to magnetic field maps.
Definition at line 55 of file FieldManager.h.
|
inline |
Definition at line 86 of file FieldManager.h.
|
inlinestatic |
Definition at line 96 of file FieldManager.h.
|
inline |
Definition at line 58 of file FieldManager.h.
|
inline |
This does NOT use the cache!
Definition at line 65 of file FieldManager.h.
References genfit::fieldCache::Bx, genfit::fieldCache::By, genfit::fieldCache::Bz, genfit::fieldCache::posX, genfit::fieldCache::posY, and genfit::fieldCache::posZ.
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 117 of file FieldManager.h.
|
inline |
set the magnetic field here. Magnetic field classes must be derived from AbsBField.
Definition at line 82 of file FieldManager.h.
|
inline |
Definition at line 84 of file FieldManager.h.
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.