MarlinTrk  02.08
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkSysConfig.h
Go to the documentation of this file.
1 #ifndef TrkSysConfig_h
2 #define TrkSysConfig_h
3 
4 
5 namespace MarlinTrk{
6 
7  class IMarlinTrkSystem ;
8 
18  template <unsigned CFG>
19  class TrkSysConfig{
20 
21  public:
22 
23  TrkSysConfig() = delete ;
24 
25  TrkSysConfig(IMarlinTrkSystem* trksys, bool value) : _trksys( trksys ){
26 
27  _value = _trksys->getOption(CFG) ;
28  _trksys->setOption(CFG,value) ;
29  }
30 
32  _trksys->setOption(CFG,_value) ;
33  }
34 
35  protected:
37  bool _value = false ;
38  } ;
39 
40 
41 }
42 #endif
virtual void setOption(unsigned CFGOption, bool val)
Sets the specified option ( one of the constants defined in IMarlinTrkSystem::CFG ) to the given valu...
Helper class for temporarilly setting a configuration option of the tracking system for the current s...
Definition: TrkSysConfig.h:19
bool getOption(unsigned CFGOption)
Return the option&#39;s current value - false if option not defined.
TrkSysConfig(IMarlinTrkSystem *trksys, bool value)
Definition: TrkSysConfig.h:25
Base class for tracking system implementations in MarlinTrk.
IMarlinTrkSystem * _trksys
Definition: TrkSysConfig.h:36