ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
EventLoop
EventLoop
AsgServiceWrapper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
9
#ifndef EVENT_LOOP_ASG_SERVICE_WRAPPER_H
10
#define EVENT_LOOP_ASG_SERVICE_WRAPPER_H
11
12
#include <
EventLoop/Global.h
>
13
14
#include <
AsgServices/AsgService.h
>
15
#include <
AsgServices/AsgServiceConfig.h
>
16
#include <
AnaAlgorithm/IAlgorithmWrapper.h
>
17
18
namespace
EL
19
{
21
22
class
AsgServiceWrapper
final :
public
IAlgorithmWrapper
23
{
24
public
:
25
28
30
void
testInvariant
()
const
;
31
33
AsgServiceWrapper
() {};
34
36
AsgServiceWrapper
(
asg::AsgServiceConfig
val_config);
37
38
39
42
43
virtual
std::string_view
getName
()
const override
;
44
45
virtual
bool
hasName
(
const
std::string& name)
const override
;
46
47
virtual
std::unique_ptr<IAlgorithmWrapper>
makeClone
()
const override
;
48
49
virtual
StatusCode
initialize
(
const
AlgorithmWorkerData
& workerData)
override
;
50
51
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
52
53
virtual
StatusCode
finalize
()
override
;
54
55
virtual ::StatusCode
fileExecute
()
override
;
56
57
virtual ::StatusCode
beginInputFile
()
override
;
58
59
virtual ::StatusCode
endInputFile
()
override
;
60
61
62
65
66
private
:
67
69
asg::AsgServiceConfig
m_config
;
70
76
std::shared_ptr<asg::AsgService>
m_service
;
77
};
78
}
79
80
#endif
AsgServiceConfig.h
AsgService.h
Global.h
IAlgorithmWrapper.h
EL::AsgServiceWrapper::execute
virtual StatusCode execute(const EventContext &ctx) override
call execute on the algorithm
Definition
AsgServiceWrapper.cxx:84
EL::AsgServiceWrapper::finalize
virtual StatusCode finalize() override
call finalize on the algorithm
Definition
AsgServiceWrapper.cxx:93
EL::AsgServiceWrapper::AsgServiceWrapper
AsgServiceWrapper()
standard default constructor for serialization
Definition
AsgServiceWrapper.h:33
EL::AsgServiceWrapper::makeClone
virtual std::unique_ptr< IAlgorithmWrapper > makeClone() const override
make a clone of this algorithm
Definition
AsgServiceWrapper.cxx:60
EL::AsgServiceWrapper::testInvariant
void testInvariant() const
test the invariant of this object
Definition
AsgServiceWrapper.cxx:25
EL::AsgServiceWrapper::m_config
asg::AsgServiceConfig m_config
the algorithm configuration
Definition
AsgServiceWrapper.h:69
EL::AsgServiceWrapper::beginInputFile
virtual::StatusCode beginInputFile() override
call beginInputFile on the algorithm
Definition
AsgServiceWrapper.cxx:117
EL::AsgServiceWrapper::m_service
std::shared_ptr< asg::AsgService > m_service
the actual service (once instantiated)
Definition
AsgServiceWrapper.h:76
EL::AsgServiceWrapper::hasName
virtual bool hasName(const std::string &name) const override
whether this algorithm has the given name
Definition
AsgServiceWrapper.cxx:51
EL::AsgServiceWrapper::fileExecute
virtual::StatusCode fileExecute() override
call fileExecute on the algorithm
Definition
AsgServiceWrapper.cxx:108
EL::AsgServiceWrapper::endInputFile
virtual::StatusCode endInputFile() override
call endInputFile on the algorithm
Definition
AsgServiceWrapper.cxx:126
EL::AsgServiceWrapper::getName
virtual std::string_view getName() const override
Definition
AsgServiceWrapper.cxx:42
EL::IAlgorithmWrapper
a wrapper around a generic algorithm for use within EventLoop
Definition
IAlgorithmWrapper.h:50
asg::AsgServiceConfig
an object that can create a AsgService
Definition
AsgServiceConfig.h:25
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
initialize
void initialize()
Definition
run_EoverP.cxx:894
EL::AlgorithmWorkerData
all the external components an algorithm needs before initialization (in EventLoop)
Definition
AlgorithmWorkerData.h:34
Generated on
for ATLAS Offline Software by
1.17.0