ATLAS Offline Software
Loading...
Searching...
No Matches
WorkerConfig.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8#ifndef EVENT_LOOP__WORKER_CONFIG_H
9#define EVENT_LOOP__WORKER_CONFIG_H
10
11#include <EventLoop/Global.h>
12
14#include <TObject.h>
15
16namespace EL
17{
18 namespace Detail
19 {
20 struct ModuleData;
21 }
22
23 class PythonConfigBase;
24
25
26 class WorkerConfig final : public TObject
27 {
30
31 public:
32
34 [[nodiscard]] const asg::SgTEventMeta *metaStore() const noexcept;
35
36
39
40
41
44
45 public:
46
47 WorkerConfig (Detail::ModuleData *val_data) noexcept;
48 ~WorkerConfig () noexcept;
49
50
51
54
55 private:
56
57 Detail::ModuleData *m_data = nullptr;
58 asg::SgTEventMeta m_metaStore;
59
60#pragma GCC diagnostic push
61#pragma GCC diagnostic ignored "-Wpragmas"
62#pragma GCC diagnostic ignored "-Wunknown-pragmas"
63#pragma GCC diagnostic ignored "-Winconsistent-missing-override"
65#pragma GCC diagnostic pop
66 };
67
68
69
72
73 [[nodiscard]] inline const asg::SgTEventMeta *WorkerConfig ::
74 metaStore() const noexcept
75 {
76 return &m_metaStore;
77 }
78}
79
80#endif
the base class for the python configuration of any asg::AsgComponent
const asg::SgTEventMeta * metaStore() const noexcept
access the meta store in the input file
~WorkerConfig() noexcept
ClassDef(WorkerConfig, 1)
void add(const PythonConfigBase &config)
add the given component
asg::SgTEventMeta m_metaStore
Detail::ModuleData * m_data
WorkerConfig(Detail::ModuleData *val_data) noexcept
Wrapper class providing StoreGate-like access to metadata in ROOT.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
the data the EventLoop core classes are sharing with the Module implementation
Definition ModuleData.h:64
#define private