ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
AnaAlgorithm
AnaAlgorithm
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
20
#include <
AsgTools/AsgComponentConfig.h
>
21
22
namespace
EL
23
{
24
struct
AlgorithmWorkerData
;
25
27
28
class
AnaAlgorithmConfig
:
public
asg::AsgComponentConfig
29
{
30
//
31
// public interface
32
//
33
34
40
public
:
41
AnaAlgorithmConfig
();
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
116
makeAlgorithm
(
std
::
unique_ptr
<
AnaAlgorithm
>&
algorithm
,
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
AsgComponentConfig.h
Global.h
EL::AnaAlgorithmConfig::m_isPublicTool
bool m_isPublicTool
the value of isPublicTool
Definition
AnaAlgorithmConfig.h:131
EL::AnaAlgorithmConfig::useXAODs
bool useXAODs() const noexcept
whether we use XAODs
Definition
AnaAlgorithmConfig.cxx:50
EL::AnaAlgorithmConfig::isPublicTool
bool isPublicTool() const noexcept
whether we are really a public tool
Definition
AnaAlgorithmConfig.cxx:66
EL::AnaAlgorithmConfig::setIsPublicTool
void setIsPublicTool(bool val_isPublicTool) noexcept
set the value of isPublicTool
Definition
AnaAlgorithmConfig.cxx:74
EL::AnaAlgorithmConfig::AnaAlgorithmConfig
AnaAlgorithmConfig()
standard constructor
Definition
AnaAlgorithmConfig.cxx:27
EL::AnaAlgorithmConfig::m_useXAODs
bool m_useXAODs
the value of useXAODs
Definition
AnaAlgorithmConfig.h:127
EL::AnaAlgorithmConfig::setUseXAODs
void setUseXAODs(bool val_useXAODs) noexcept
set the value of useXAODs
Definition
AnaAlgorithmConfig.cxx:58
EL::AnaAlgorithmConfig::~AnaAlgorithmConfig
virtual ~AnaAlgorithmConfig()=default
Virtual destructor, to make PyROOT happy.
EL::AnaAlgorithmConfig::makeAlgorithm
::StatusCode makeAlgorithm(std::unique_ptr< AnaAlgorithm > &algorithm, const AlgorithmWorkerData &workerData) const
make an algorithm from this configuration
Definition
AnaAlgorithmConfig.cxx:82
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:73
asg::AsgComponentConfig
an object that stores the configuration for an AsgComponent and is able to create one from it
Definition
AsgComponentConfig.h:35
asg::AsgComponentConfig::AsgComponentConfig
AsgComponentConfig()=default
standard constructor
unique_ptr
STL class.
algorithm
std::string algorithm
Definition
hcg.cxx:87
const
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition
AsgComponentFactories.h:16
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
std
STL namespace.
EL::AlgorithmWorkerData
all the external components an algorithm needs before initialization (in EventLoop)
Definition
AlgorithmWorkerData.h:34
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0