5#ifndef MAKEEVENTSTREAMINFO_H
6#define MAKEEVENTSTREAMINFO_H
16#include "GaudiKernel/ServiceHandle.h"
47 virtual StatusCode
finalize()
override;
51 Gaudi::Property<std::string>
m_dataHeaderKey{
this,
"DataHeaderKey",
"",
"name of the data header key"};
53 Gaudi::Property<std::string>
m_key{
this,
"Key",
"",
"name of the EventStreamInfo object"};
56 Gaudi::Property<std::string>
m_eventInfoKey{
this,
"EventInfoKey",
"EventInfo",
"name of the xAOD::EventInfo"};
MakeEventStreamInfo(const std::string &type, const std::string &name, const IInterface *parent)
Standard AlgTool Constructor.
Gaudi::Property< std::string > m_key
Key, the StoreGate key for the EventStreamInfo object.
ServiceHandle< StoreGateSvc > m_eventStore
virtual StatusCode finalize() override
Called at the end of AthenaOutputStream::finalize() (via release()).
Gaudi::Property< std::string > m_eventInfoKey
Key, the StoreGate key for the xAOD::EventInfo object.
ServiceHandle< IAthMetaDataSvc > m_metaDataSvc
Pointer to the data stores.
virtual StatusCode preFinalize() override
Called at the beginning of AthenaOutputStream::finalize().
Gaudi::Property< std::string > m_dataHeaderKey
Name of DataHeader key.
virtual ~MakeEventStreamInfo()=default
Destructor.
virtual StatusCode preStream() override
Called before actually streaming objects.
virtual StatusCode postExecute() override
Called at the end of AthenaOutputStream::execute().
virtual StatusCode initialize() override
Required of all IAthenaOutputTools: Called by AthenaOutputStream::initialize() (via ToolSvc retrieve(...
std::atomic< unsigned int > m_eventCounter
Counter of the events in the stream.
virtual StatusCode preExecute() override
Called at the beginning of AthenaOutputStream::execute().
virtual StatusCode postInitialize() override
Called at the end of AthenaOutputStream::initialize().
The Athena Transient Store API.