ATLAS Offline Software
Loading...
Searching...
No Matches
MakeInputDataHeader.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
9
10#include "MakeInputDataHeader.h"
11
14
15//___________________________________________________________________________
16MakeInputDataHeader::MakeInputDataHeader(const std::string& name, ISvcLocator* pSvcLocator)
17 : ::AthReentrantAlgorithm(name, pSvcLocator)
18{
19}
20//___________________________________________________________________________
22
23 // Print out the stream name
24 ATH_MSG_INFO("Name of Stream to be made Input: " << m_streamName.key());
25
26 m_aliasName = m_streamName.key() + "_Input";
27
28 ATH_CHECK( m_streamName.initialize() );
29 ATH_CHECK( m_aliasName.initialize() );
30 return StatusCode::SUCCESS;
31}
32//___________________________________________________________________________
33StatusCode MakeInputDataHeader::execute (const EventContext& ctx) const
34{
36 ATH_CHECK( dh.alias (m_aliasName) );
37 return(StatusCode::SUCCESS);
38}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
This file contains the class definition for the DataHeader and DataHeaderElement classes.
This file contains the class definition for the MakeInputDataHeader class.
Handle class for reading from StoreGate.
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &ctx) const override
MakeInputDataHeader(const std::string &name, ISvcLocator *pSvcLocator)
Standard Algorithm Constructor.
SG::WriteHandleKey< DataHeader > m_aliasName
virtual StatusCode initialize() override
AthAlgorithm Interface method implementations:
SG::ReadHandleKey< DataHeader > m_streamName
StreamName, name of Stream to be made Input.