ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
18namespace EL
19{
21
23 {
24 public:
25
28
30 void testInvariant () const;
31
34
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 () 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
70
76 std::shared_ptr<asg::AsgService> m_service;
77 };
78}
79
80#endif
virtual StatusCode execute() override
call execute on the algorithm
virtual StatusCode finalize() override
call finalize on the algorithm
AsgServiceWrapper()
standard default constructor for serialization
virtual std::unique_ptr< IAlgorithmWrapper > makeClone() const override
make a clone of this algorithm
void testInvariant() const
test the invariant of this object
asg::AsgServiceConfig m_config
the algorithm configuration
virtual::StatusCode beginInputFile() override
call beginInputFile on the algorithm
std::shared_ptr< asg::AsgService > m_service
the actual service (once instantiated)
virtual bool hasName(const std::string &name) const override
whether this algorithm has the given name
virtual::StatusCode fileExecute() override
call fileExecute on the algorithm
virtual::StatusCode endInputFile() override
call endInputFile on the algorithm
virtual std::string_view getName() const override
a wrapper around a generic algorithm for use within EventLoop
an object that can create a AsgService
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
void initialize()
all the external components an algorithm needs before initialization (in EventLoop)