ATLAS Offline Software
Loading...
Searching...
No Matches
AnaReentrantAlgorithmConfig.cxx
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//
10// includes
11//
12
14
18#include <AsgTools/AsgTool.h>
19
20//
21// method implementations
22//
23
24namespace EL
25{
26 AnaReentrantAlgorithmConfig ::
27 AnaReentrantAlgorithmConfig () = default;
28
29
30
31 AnaReentrantAlgorithmConfig ::
32 AnaReentrantAlgorithmConfig (const std::string& val_typeAndName)
33 : AsgComponentConfig (val_typeAndName)
34 {
35 }
36
37
38
39 AnaReentrantAlgorithmConfig ::
40 AnaReentrantAlgorithmConfig (const AsgComponentConfig& val_config)
41 : AsgComponentConfig (val_config)
42 {
43 }
44
45
46
47 ::StatusCode AnaReentrantAlgorithmConfig ::
48 makeAlgorithm (std::unique_ptr<AnaReentrantAlgorithm>& algorithm,
49 const AlgorithmWorkerData& workerData) const
50 {
51 using namespace msgAlgorithmConfig;
52
53 ANA_CHECK (makeComponentExpert (algorithm, "new %1% (\"%2%\", nullptr)", true, ""));
54 algorithm->setFilterWorker (workerData.m_filterWorker);
55 algorithm->setWk (workerData.m_wk);
56 if (workerData.m_evtStore)
57 algorithm->setEvtStore (workerData.m_evtStore);
58 ANA_CHECK (algorithm->sysInitialize());
59 return StatusCode::SUCCESS;
60 }
61}
#define ANA_CHECK(EXP)
check whether the given expression was successful
AsgComponentConfig()=default
standard constructor
std::string algorithm
Definition hcg.cxx:87
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
all the external components an algorithm needs before initialization (in EventLoop)