1 #ifndef MarlinTrk_Factory_h
2 #define MarlinTrk_Factory_h
33 for(
auto& trkSystem :
_map ) {
delete trkSystem.second; }
48 const gear::GearMgr* gearMgr,
std::map< std::string, IMarlinTrkSystem * > TrkSystemMap
Factory methods for creating the MarlinTrkSystem of a certain type: DDKalTest, aidaTT,... Currently implemented: DDKalTest, aidaTT.
Factory const & operator=(const Factory &)=delete
static IMarlinTrkSystem * getCurrentMarlinTrkSystem()
Return the current MarlinTrkSystem, i.e.
IMarlinTrkSystem * _currentTrkSystem
Base class for tracking system implementations in MarlinTrk.
static IMarlinTrkSystem * getMarlinTrkSystem(const std::string &systemType)
Return the MarlinTrkSystem of the given type - only valid after a preceeding call to createMarlinTrkS...
static IMarlinTrkSystem * createMarlinTrkSystem(const std::string &systemType, const gear::GearMgr *gearMgr, const std::string &options)
Create the MarlinTrkSystem instance of the specified type: DDKalTest, aidaTT,... Returns 0 if type ...
static Factory * instance()