ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
OutputStreamAthenaPool
src
MakeEventStreamInfo.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MAKEEVENTSTREAMINFO_H
6
#define MAKEEVENTSTREAMINFO_H
12
13
#include "
AthenaKernel/IAthenaOutputTool.h
"
14
15
#include "
AthenaBaseComps/AthAlgTool.h
"
16
#include "GaudiKernel/ServiceHandle.h"
17
#include "
AthenaKernel/IAthMetaDataSvc.h
"
18
19
#include <string>
20
21
class
StoreGateSvc
;
22
namespace
xAODMaker
{
class
IEventInfoCnvTool
; }
23
27
class
MakeEventStreamInfo
:
public
extends<::AthAlgTool, IAthenaOutputTool> {
28
public
:
30
MakeEventStreamInfo
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent);
32
virtual
~MakeEventStreamInfo
() =
default
;
35
virtual
StatusCode
initialize
()
override
;
37
virtual
StatusCode
postInitialize
()
override
;
39
virtual
StatusCode
preExecute
()
override
;
41
virtual
StatusCode
preStream
()
override
;
43
virtual
StatusCode
postExecute
()
override
;
45
virtual
StatusCode
preFinalize
()
override
;
47
virtual
StatusCode
finalize
()
override
;
48
49
private
:
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"
};
54
56
Gaudi::Property<std::string>
m_eventInfoKey
{
this
,
"EventInfoKey"
,
"EventInfo"
,
"name of the xAOD::EventInfo"
};
57
59
ServiceHandle<IAthMetaDataSvc>
m_metaDataSvc
{
this
,
"MetaDataSvc"
,
"MetaDataSvc"
};
60
ServiceHandle<StoreGateSvc>
m_eventStore
{
this
,
"StoreGateSvc"
,
"StoreGateSvc"
};
61
63
std::atomic<unsigned int>
m_eventCounter
{0};
64
65
};
66
#endif
AthAlgTool.h
IAthMetaDataSvc.h
This file contains the class definition for the IAthMetaDataSvc class.
IAthenaOutputTool.h
This file contains the class definition for the IAthenaOutputTool class.
MakeEventStreamInfo::MakeEventStreamInfo
MakeEventStreamInfo(const std::string &type, const std::string &name, const IInterface *parent)
Standard AlgTool Constructor.
Definition
MakeEventStreamInfo.cxx:20
MakeEventStreamInfo::m_key
Gaudi::Property< std::string > m_key
Key, the StoreGate key for the EventStreamInfo object.
Definition
MakeEventStreamInfo.h:53
MakeEventStreamInfo::m_eventStore
ServiceHandle< StoreGateSvc > m_eventStore
Definition
MakeEventStreamInfo.h:60
MakeEventStreamInfo::finalize
virtual StatusCode finalize() override
Called at the end of AthenaOutputStream::finalize() (via release()).
Definition
MakeEventStreamInfo.cxx:139
MakeEventStreamInfo::m_eventInfoKey
Gaudi::Property< std::string > m_eventInfoKey
Key, the StoreGate key for the xAOD::EventInfo object.
Definition
MakeEventStreamInfo.h:56
MakeEventStreamInfo::m_metaDataSvc
ServiceHandle< IAthMetaDataSvc > m_metaDataSvc
Pointer to the data stores.
Definition
MakeEventStreamInfo.h:59
MakeEventStreamInfo::preFinalize
virtual StatusCode preFinalize() override
Called at the beginning of AthenaOutputStream::finalize().
Definition
MakeEventStreamInfo.cxx:110
MakeEventStreamInfo::m_dataHeaderKey
Gaudi::Property< std::string > m_dataHeaderKey
Name of DataHeader key.
Definition
MakeEventStreamInfo.h:51
MakeEventStreamInfo::~MakeEventStreamInfo
virtual ~MakeEventStreamInfo()=default
Destructor.
MakeEventStreamInfo::preStream
virtual StatusCode preStream() override
Called before actually streaming objects.
Definition
MakeEventStreamInfo.cxx:59
MakeEventStreamInfo::postExecute
virtual StatusCode postExecute() override
Called at the end of AthenaOutputStream::execute().
Definition
MakeEventStreamInfo.cxx:63
MakeEventStreamInfo::initialize
virtual StatusCode initialize() override
Required of all IAthenaOutputTools: Called by AthenaOutputStream::initialize() (via ToolSvc retrieve(...
Definition
MakeEventStreamInfo.cxx:26
MakeEventStreamInfo::m_eventCounter
std::atomic< unsigned int > m_eventCounter
Counter of the events in the stream.
Definition
MakeEventStreamInfo.h:63
MakeEventStreamInfo::preExecute
virtual StatusCode preExecute() override
Called at the beginning of AthenaOutputStream::execute().
Definition
MakeEventStreamInfo.cxx:55
MakeEventStreamInfo::postInitialize
virtual StatusCode postInitialize() override
Called at the end of AthenaOutputStream::initialize().
Definition
MakeEventStreamInfo.cxx:45
ServiceHandle
Definition
ClusterMakerTool.h:36
StoreGateSvc
The Athena Transient Store API.
Definition
StoreGateSvc.h:120
xAODMaker::IEventInfoCnvTool
Interface for the tool creating xAOD::EventInfo from an AOD.
Definition
IEventInfoCnvTool.h:37
xAODMaker
Definition
StoreGateSvc.h:70
type
Generated on
for ATLAS Offline Software by
1.17.0