ATLAS Offline Software
Loading...
Searching...
No Matches
Database
AthenaPOOL
OutputStreamAthenaPool
src
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
12
#include "
StoreGate/ReadHandle.h
"
13
#include "
PersistentDataModel/DataHeader.h
"
14
15
//___________________________________________________________________________
16
MakeInputDataHeader::MakeInputDataHeader
(
const
std::string& name, ISvcLocator* pSvcLocator)
17
: ::
AthReentrantAlgorithm
(name, pSvcLocator)
18
{
19
}
20
//___________________________________________________________________________
21
StatusCode
MakeInputDataHeader::initialize
() {
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
//___________________________________________________________________________
33
StatusCode
MakeInputDataHeader::execute
(
const
EventContext& ctx)
const
34
{
35
SG::ReadHandle<DataHeader>
dh (
m_streamName
, ctx);
36
ATH_CHECK
( dh.alias (
m_aliasName
) );
37
return
(StatusCode::SUCCESS);
38
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
DataHeader.h
This file contains the class definition for the DataHeader and DataHeaderElement classes.
MakeInputDataHeader.h
This file contains the class definition for the MakeInputDataHeader class.
ReadHandle.h
Handle class for reading from StoreGate.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
MakeInputDataHeader::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
MakeInputDataHeader.cxx:33
MakeInputDataHeader::MakeInputDataHeader
MakeInputDataHeader(const std::string &name, ISvcLocator *pSvcLocator)
Standard Algorithm Constructor.
Definition
MakeInputDataHeader.cxx:16
MakeInputDataHeader::m_aliasName
SG::WriteHandleKey< DataHeader > m_aliasName
Definition
MakeInputDataHeader.h:41
MakeInputDataHeader::initialize
virtual StatusCode initialize() override
AthAlgorithm Interface method implementations:
Definition
MakeInputDataHeader.cxx:21
MakeInputDataHeader::m_streamName
SG::ReadHandleKey< DataHeader > m_streamName
StreamName, name of Stream to be made Input.
Definition
MakeInputDataHeader.h:40
SG::ReadHandle
Definition
StoreGate/StoreGate/ReadHandle.h:67
Generated on
for ATLAS Offline Software by
1.14.0