Belle II Software  release-05-02-19
GearboxModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Andreas Moll, Martin Ritter *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 
15 #include <string>
16 #include <vector>
17 
18 
19 namespace Belle2 {
54  class GearboxModule : public Module {
55 
56  public:
57 
58  /* The constructor of the module.
59  * Sets the description and the parameters of the module.
60  */
61  GearboxModule();
62 
64  void initialize() override;
65 
67  void beginRun() override;
68 
69  private:
70  std::vector<std::string> m_backends;
71  std::string m_fileName;
74  std::string m_overridePrefix;
76  std::vector<std::tuple<std::string, std::string, std::string>> m_unitOverrides;
78  std::vector<std::tuple<std::string, std::string, std::string>> m_multipleOverrides;
79  };
81 }
Belle2::GearboxModule::beginRun
void beginRun() override
Load the (possibly rundependent) parameters from the chosen backends.
Definition: GearboxModule.cc:88
Belle2::GearboxModule::m_overridePrefix
std::string m_overridePrefix
common prefix for all value overrides
Definition: GearboxModule.h:82
Belle2::GearboxModule::initialize
void initialize() override
Define backends.
Definition: GearboxModule.cc:62
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::GearboxModule::m_multipleOverrides
std::vector< std::tuple< std::string, std::string, std::string > > m_multipleOverrides
overrides to override the value and unit of many parameters
Definition: GearboxModule.h:86
Belle2::GearboxModule::m_backends
std::vector< std::string > m_backends
The backend specifier.
Definition: GearboxModule.h:78
Belle2::GearboxModule::m_unitOverrides
std::vector< std::tuple< std::string, std::string, std::string > > m_unitOverrides
overrides to override the value and unit of a parameter
Definition: GearboxModule.h:84
Belle2::GearboxModule::m_fileName
std::string m_fileName
The toplevel filename for the parameters.
Definition: GearboxModule.h:79