Belle II Software development
GearboxModule.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
11#include <framework/core/Module.h>
12
13#include <string>
14#include <vector>
15
16
17namespace Belle2 {
49 class GearboxModule : public Module {
50
51 public:
52
53 /* The constructor of the module.
54 * Sets the description and the parameters of the module.
55 */
57
59 void initialize() override;
60
62 void beginRun() override;
63
64 private:
65 std::vector<std::string> m_backends;
66 std::string m_fileName;
69 std::string m_overridePrefix;
71 std::vector<std::tuple<std::string, std::string, std::string>> m_unitOverrides;
73 std::vector<std::tuple<std::string, std::string, std::string>> m_multipleOverrides;
74 };
76}
The Gearbox module.
Definition: GearboxModule.h:49
void initialize() override
Define backends.
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:73
std::string m_fileName
The toplevel filename for the parameters.
Definition: GearboxModule.h:66
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:71
void beginRun() override
Load the (possibly rundependent) parameters from the chosen backends.
std::string m_overridePrefix
common prefix for all value overrides
Definition: GearboxModule.h:69
std::vector< std::string > m_backends
The backend specifier.
Definition: GearboxModule.h:65
Base class for Modules.
Definition: Module.h:72
Abstract base class for different kinds of events.