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 */
56 GearboxModule();
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;
67
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 };
75
76}
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
std::string m_fileName
The toplevel filename for the parameters.
std::vector< std::tuple< std::string, std::string, std::string > > m_unitOverrides
overrides to override the value and unit of a parameter
void beginRun() override
Load the (possibly rundependent) parameters from the chosen backends.
std::string m_overridePrefix
common prefix for all value overrides
std::vector< std::string > m_backends
The backend specifier.
Module()
Constructor.
Definition Module.cc:30
Abstract base class for different kinds of events.