Belle II Software
release-08-01-10
|
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! | |
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. | |
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.