SND@LHC Software
|
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. | |
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. | |
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. | |
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 void | checkInstanciated () |
static FieldManager * | getInstance () |
Get singleton instance. | |
Private Member Functions | |
FieldManager () | |
~FieldManager () | |
FieldManager () | |
~FieldManager () | |
Static Private Attributes | |
static FieldManager * | instance_ = NULL |
static AbsBField * | field_ = NULL |
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 |
Definition at line 122 of file FieldManager.h.
|
inlineprivate |
Definition at line 124 of file FieldManager.h.
|
inlineprivate |
Definition at line 122 of file FieldManager.h.
|
inlineprivate |
Definition at line 124 of file FieldManager.h.
|
inline |
Definition at line 84 of file FieldManager.h.
|
inline |
Definition at line 84 of file FieldManager.h.
|
inlinestatic |
Definition at line 93 of file FieldManager.h.
|
inlinestatic |
Definition at line 93 of file FieldManager.h.
|
inline |
Definition at line 57 of file FieldManager.h.
|
inline |
Definition at line 57 of file FieldManager.h.
void genfit::FieldManager::getFieldVal | ( | const double & | posX, |
const double & | posY, | ||
const double & | posZ, | ||
double & | Bx, | ||
double & | By, | ||
double & | Bz | ||
) |
void genfit::FieldManager::getFieldVal | ( | const double & | posX, |
const double & | posY, | ||
const double & | posZ, | ||
double & | Bx, | ||
double & | By, | ||
double & | Bz | ||
) |
|
inline |
This does NOT use the cache!
Definition at line 63 of file FieldManager.h.
|
inline |
This does NOT use the cache!
Definition at line 63 of file FieldManager.h.
|
inlinestatic |
|
inlinestatic |
|
inline |
set the magnetic field here. Magnetic field classes must be derived from AbsBField.
Definition at line 78 of file FieldManager.h.
|
inline |
set the magnetic field here. Magnetic field classes must be derived from AbsBField.
Definition at line 78 of file FieldManager.h.
|
inline |
Definition at line 82 of file FieldManager.h.
|
inline |
Definition at line 82 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.
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.
|
staticprivate |
Definition at line 129 of file FieldManager.h.
|
staticprivate |
Definition at line 128 of file FieldManager.h.
|
staticprivate |
Definition at line 133 of file FieldManager.h.
|
staticprivate |
Definition at line 132 of file FieldManager.h.