Belle II Software light-2406-ragdoll
|
Singleton class keeping configurables of analysis components. More...
#include <AnalysisConfiguration.h>
Public Member Functions | |
const std::string | getTupleStyle () |
Configurable-specific function to obtain value. | |
void | setTupleStyle (const std::string &v) |
Configurable-specific function to set value. | |
void | useLegacyMCMatching (const bool flag) |
Determines whether to use the legacy MCMatching algorithm (true) or not (false). | |
bool | useLegacyMCMatching () const |
Specifies whether to use the legacy MCMatching algorithm (true) or not (false). | |
Static Public Member Functions | |
static AnalysisConfiguration * | instance () |
Returns a pointer to the singleton instance. | |
Private Member Functions | |
AnalysisConfiguration () | |
Constructor. | |
Private Attributes | |
std::string | m_tupleStyle |
branch naming style | |
bool | m_legacyMCMatching |
specifies the version of MC matching algorithm to be used | |
Static Private Attributes | |
static AnalysisConfiguration * | s_instance = nullptr |
Singleton instance. | |
Singleton class keeping configurables of analysis components.
Object of this class is created on the first call and remains in memory such, that once parameters are configured they remain the same for every call. For example: AnalysisConfigurationModule creates AnalysisConfiguration object and set configurable value by line:
AnalysisConfiguration::instance()->setTupleStyle(m_tupleStyle);
Than, NTupleTools use functions inherited from DecayDescriptor and in these get parameter value from AnalysisConfiguration object:
AnalysisConfiguration::instance()->getTupleStyle()
If object was not created before by AnalysisConfiguration module, it is created on first call with default values by NTupleTool.
By now, this class configures only style of variables in tuples and thus has two specific functions:
const string getTupleStyle() which returns chosen style void setTupleStyle(string v) which sets style
Also, it has static AnalysisConfiguration *instance() which returns pointer to previously created AnalysisClass object or, if it is the first call, create object and return pointer to it. Constructor of class is private, so the only way to create object is through instance() function.
Definition at line 18 of file AnalysisConfiguration.h.
|
inlineprivate |
Constructor.
Definition at line 57 of file AnalysisConfiguration.h.
|
inline |
Configurable-specific function to obtain value.
Definition at line 62 of file AnalysisConfiguration.h.
|
inlinestatic |
Returns a pointer to the singleton instance.
Definition at line 94 of file AnalysisConfiguration.h.
|
inline |
Configurable-specific function to set value.
Definition at line 69 of file AnalysisConfiguration.h.
|
inline |
Specifies whether to use the legacy MCMatching algorithm (true) or not (false).
Definition at line 86 of file AnalysisConfiguration.h.
|
inline |
Determines whether to use the legacy MCMatching algorithm (true) or not (false).
Definition at line 78 of file AnalysisConfiguration.h.
|
private |
specifies the version of MC matching algorithm to be used
Definition at line 53 of file AnalysisConfiguration.h.
|
private |
branch naming style
Definition at line 52 of file AnalysisConfiguration.h.
|
staticprivate |
Singleton instance.
Definition at line 54 of file AnalysisConfiguration.h.