ATLAS Offline Software
Loading...
Searching...
No Matches
HLTEDMCreatorAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "HLTEDMCreatorAlg.h"
6
7HLTEDMCreatorAlg::HLTEDMCreatorAlg(const std::string& name, ISvcLocator* pSvcLocator) :
8 AthReentrantAlgorithm(name, pSvcLocator)
9{
10}
11
13{
14 ATH_CHECK( m_tools.retrieve() );
15 return StatusCode::SUCCESS;
16}
17
18StatusCode HLTEDMCreatorAlg::execute(const EventContext& context) const
19{
20 for ( const auto& t: m_tools ) {
21 ATH_CHECK( t->createOutput( context ) );
22 }
23 return StatusCode::SUCCESS;
24}
25
#define ATH_CHECK
Evaluate an expression and check for errors.
An algorithm that can be simultaneously executed in multiple threads.
ToolHandleArray< IHLTOutputTool > m_tools
HLTEDMCreatorAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &context) const override