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 ()
28 {
29 }
30
31
32
33 AnaReentrantAlgorithmConfig ::
34 AnaReentrantAlgorithmConfig (const std::string& val_typeAndName)
35 : AsgComponentConfig (val_typeAndName)
36 {
37 }
38
39
40
41 AnaReentrantAlgorithmConfig ::
42 AnaReentrantAlgorithmConfig (const AsgComponentConfig& val_config)
43 : AsgComponentConfig (val_config)
44 {
45 }
46
47
48
49 ::StatusCode AnaReentrantAlgorithmConfig ::
50 makeAlgorithm (std::unique_ptr<AnaReentrantAlgorithm>& algorithm,
51 const AlgorithmWorkerData& workerData) const
52 {
53 using namespace msgAlgorithmConfig;
54
55 ANA_CHECK (makeComponentExpert (algorithm, "new %1% (\"%2%\", nullptr)", true, ""));
56 algorithm->setFilterWorker (workerData.m_filterWorker);
57 algorithm->setWk (workerData.m_wk);
58 if (workerData.m_evtStore)
59 algorithm->setEvtStore (workerData.m_evtStore);
60 ANA_CHECK (algorithm->sysInitialize());
61 return StatusCode::SUCCESS;
62 }
63}
#define ANA_CHECK(EXP)
check whether the given expression was successful
AsgComponentConfig()=default
standard constructor
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.
all the external components an algorithm needs before initialization (in EventLoop)