Belle II Software  release-08-01-10
AnalysisConfiguration.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 #include <string>
11 
12 namespace Belle2 {
51  {
52  std::string m_tupleStyle;
58  { }
59  public:
60 
62  const std::string getTupleStyle()
63  {
64  //B2INFO("Returning style '"<<m_tupleStyle<<"'");
65  return m_tupleStyle;
66  }
67 
69  void setTupleStyle(const std::string& v)
70  {
71  //B2INFO("Setting style '"<<v<<"'");
72  m_tupleStyle = v;
73  }
74 
78  void useLegacyMCMatching(const bool flag)
79  {
80  m_legacyMCMatching = flag;
81  }
82 
86  bool useLegacyMCMatching() const
87  {
88  return m_legacyMCMatching;
89  }
90 
95  {
96  if (!s_instance)
98  return s_instance;
99  }
100  };
101 
103 } // Belle2 namespace
104 
105 
Singleton class keeping configurables of analysis components.
bool useLegacyMCMatching() const
Specifies whether to use the legacy MCMatching algorithm (true) or not (false).
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).
static AnalysisConfiguration * instance()
Returns a pointer to the singleton instance.
static AnalysisConfiguration * s_instance
Singleton instance.
bool m_legacyMCMatching
specifies the version of MC matching algorithm to be used
std::string m_tupleStyle
branch naming style
Abstract base class for different kinds of events.