Belle II Software light-2406-ragdoll
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 {
52 class GearboxModule : public Module {
53
54 public:
55
56 /* The constructor of the module.
57 * Sets the description and the parameters of the module.
58 */
60
62 void initialize() override;
63
65 void beginRun() override;
66
67 private:
68 std::vector<std::string> m_backends;
69 std::string m_fileName;
72 std::string m_overridePrefix;
74 std::vector<std::tuple<std::string, std::string, std::string>> m_unitOverrides;
76 std::vector<std::tuple<std::string, std::string, std::string>> m_multipleOverrides;
77 };
79}
The Gearbox module.
Definition: GearboxModule.h:52
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:76
std::string m_fileName
The toplevel filename for the parameters.
Definition: GearboxModule.h:69
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:74
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:72
std::vector< std::string > m_backends
The backend specifier.
Definition: GearboxModule.h:68
Base class for Modules.
Definition: Module.h:72
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24