ATLAS Offline Software
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 
7 HLTEDMCreatorAlg::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 
18 StatusCode 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 
HLTEDMCreatorAlg::m_tools
ToolHandleArray< IHLTOutputTool > m_tools
Definition: HLTEDMCreatorAlg.h:26
HLTEDMCreatorAlg.h
HLTEDMCreatorAlg::initialize
virtual StatusCode initialize() override
Definition: HLTEDMCreatorAlg.cxx:12
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
HLTEDMCreatorAlg::HLTEDMCreatorAlg
HLTEDMCreatorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: HLTEDMCreatorAlg.cxx:7
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
HLTEDMCreatorAlg::execute
virtual StatusCode execute(const EventContext &context) const override
Definition: HLTEDMCreatorAlg.cxx:18
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221