Belle II Software  release-08-01-10
AnalysisConfiguration Class Reference

Singleton class keeping configurables of analysis components. More...

#include <AnalysisConfiguration.h>

Collaboration diagram for AnalysisConfiguration:

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 AnalysisConfigurationinstance ()
 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 AnalysisConfigurations_instance = nullptr
 Singleton instance.
 

Detailed Description

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.


The documentation for this class was generated from the following files: