ATLAS Offline Software
MakeInputDataHeader.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
10 #include "MakeInputDataHeader.h"
11 
12 #include "StoreGate/ReadHandle.h"
14 
15 //___________________________________________________________________________
16 MakeInputDataHeader::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 
30  return(StatusCode::SUCCESS);
31 }
32 //___________________________________________________________________________
33 StatusCode MakeInputDataHeader::execute (const EventContext& ctx) const
34 {
36  ATH_CHECK( dh.alias (m_aliasName) );
37  return(StatusCode::SUCCESS);
38 }
MakeInputDataHeader.h
This file contains the class definition for the MakeInputDataHeader class.
MakeInputDataHeader::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: MakeInputDataHeader.cxx:33
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
PyPoolBrowser.dh
dh
Definition: PyPoolBrowser.py:102
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
MakeInputDataHeader::MakeInputDataHeader
MakeInputDataHeader(const std::string &name, ISvcLocator *pSvcLocator)
Standard Algorithm Constructor.
Definition: MakeInputDataHeader.cxx:16
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
MakeInputDataHeader::initialize
virtual StatusCode initialize() override
AthAlgorithm Interface method implementations:
Definition: MakeInputDataHeader.cxx:21
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
DataHeader.h
This file contains the class definition for the DataHeader and DataHeaderElement classes.
MakeInputDataHeader::m_streamName
SG::ReadHandleKey< DataHeader > m_streamName
StreamName, name of Stream to be made Input.
Definition: MakeInputDataHeader.h:42
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ReadHandle.h
Handle class for reading from StoreGate.
MakeInputDataHeader::m_aliasName
SG::WriteHandleKey< DataHeader > m_aliasName
Definition: MakeInputDataHeader.h:43