|  | 
								EIC Software
							 
								Reference for 
								EIC 
								simulation and reconstruction software on GitHub
							 | 
Singleton which provides access to magnetic field maps. More...
#include <fun4all_GenFit/blob/master/core/include/FieldManager.h>
 Collaboration diagram for genfit::FieldManager:
 Collaboration diagram for genfit::FieldManager:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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, and isInitialized().
Referenced by getField(), and getFieldVal().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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, and instance_.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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_.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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 PHTpcTrackFollower::get_projected_coordinate(), genfit::HelixTrackModel::HelixTrackModel(), genfit::GFRaveMagneticField::inTesla(), PHGenFitTrackProjection::process_event(), genfit::GFGbl::processTrackWithRep(), genfit::GblFitter::processTrackWithRep(), and genfit::RKTrackRep::RKPropagate().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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 PHGenFit2::Fitter::Fitter(), PHGenFit::Fitter::Fitter(), PHTpcTrackFollower::get_projected_coordinate(), genfit::HelixTrackModel::HelixTrackModel(), genfit::GFRaveMagneticField::inTesla(), main(), PHGenFitTrackProjection::process_event(), genfit::GFGbl::processTrackWithRep(), genfit::GblFitter::processTrackWithRep(), genfit::RKTrackRep::RKPropagate(), genfit::RKTrackRepTests::SetUp(), genfit::ConstFieldInitializedTests::SetUp(), genfit::RKTrackRepTests::TearDown(), genfit::ConstFieldInitializedTests::TearDown(), and genfit::TEST_F().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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 field_.
Referenced by PHGenFit2::Fitter::Fitter(), PHGenFit::Fitter::Fitter(), main(), genfit::RKTrackRepTests::SetUp(), and genfit::ConstFieldInitializedTests::SetUp().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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