ATLAS Offline Software
Loading...
Searching...
No Matches
AnaAlgorithmConfig.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8
9#ifndef ANA_ALGORITHM__ANA_ALGORITHM_CONFIG_H
10#define ANA_ALGORITHM__ANA_ALGORITHM_CONFIG_H
11
12#ifndef ROOTCORE
13#ifndef __CPPCHECK__
14#error only include this header in AnalysisBase
15#endif
16#endif
17
18#include <AnaAlgorithm/Global.h>
19
21
22namespace EL
23{
25
27
29 {
30 //
31 // public interface
32 //
33
34
40 public:
42
43
49 public:
50 explicit AnaAlgorithmConfig (const std::string& val_typeAndName);
51
52
58 public:
59 explicit AnaAlgorithmConfig (const AsgComponentConfig& val_config);
60
61
67 public:
68 virtual ~AnaAlgorithmConfig() = default;
69
70
74 public:
75 bool useXAODs () const noexcept;
76
80 public:
81 void setUseXAODs (bool val_useXAODs) noexcept;
82
83
87 public:
88 bool isPublicTool () const noexcept;
89
93 public:
94 void setIsPublicTool (bool val_isPublicTool) noexcept;
95
96
114 public:
115 ::StatusCode
117 const AlgorithmWorkerData& workerData) const;
118
119
120
121 //
122 // private interface
123 //
124
126 private:
127 bool m_useXAODs = true;
128
130 private:
131 bool m_isPublicTool {false};
132 };
133}
134
135#endif
bool m_isPublicTool
the value of isPublicTool
bool useXAODs() const noexcept
whether we use XAODs
bool isPublicTool() const noexcept
whether we are really a public tool
void setIsPublicTool(bool val_isPublicTool) noexcept
set the value of isPublicTool
AnaAlgorithmConfig()
standard constructor
bool m_useXAODs
the value of useXAODs
void setUseXAODs(bool val_useXAODs) noexcept
set the value of useXAODs
virtual ~AnaAlgorithmConfig()=default
Virtual destructor, to make PyROOT happy.
::StatusCode makeAlgorithm(std::unique_ptr< AnaAlgorithm > &algorithm, const AlgorithmWorkerData &workerData) const
make an algorithm from this configuration
the (new) base class for EventLoop algorithms
an object that stores the configuration for an AsgComponent and is able to create one from it
AsgComponentConfig()=default
standard constructor
STL class.
std::string algorithm
Definition hcg.cxx:85
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
STL namespace.
all the external components an algorithm needs before initialization (in EventLoop)
#define private