ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
ByteStreamCnvSvc
src
EventInfoByteStreamAuxCnv.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef BYTESTREAMCNVSVC_EVENTINFOBYTESTREAMAUXCNV_H
6
#define BYTESTREAMCNVSVC_EVENTINFOBYTESTREAMAUXCNV_H
7
21
22
#include "GaudiKernel/Converter.h"
23
#include "GaudiKernel/ServiceHandle.h"
24
#include "GaudiKernel/ToolHandle.h"
25
#include "
AthenaBaseComps/AthMessaging.h
"
26
27
class
ByteStreamCnvSvcBase
;
28
class
IROBDataProviderSvc
;
29
class
StoreGateSvc
;
30
class
IMCEventInfoByteStreamTool
;
31
32
// Abstract factory to create the converter
33
template
<
class
TYPE>
class
CnvFactory
;
34
35
class
EventInfoByteStreamAuxCnv
:
public
Converter
,
public
AthMessaging
36
{
37
public
:
38
EventInfoByteStreamAuxCnv
(ISvcLocator* svcloc);
39
virtual
~EventInfoByteStreamAuxCnv
()
override
=
default
;
40
41
virtual
StatusCode
initialize
()
override
;
42
virtual
StatusCode
finalize
()
override
;
43
45
virtual
StatusCode
createObj
(IOpaqueAddress* pAddr, DataObject*& pObj)
override
;
47
virtual
StatusCode
createRep
(DataObject* pObj, IOpaqueAddress*& pAddr)
override
;
48
50
virtual
long
repSvcType
()
const override
{
return
i_repSvcType(); }
51
static
long
storageType
();
52
static
CLID
classID
();
53
54
private
:
55
std::string
ascTime
(
unsigned
int
t);
56
ServiceHandle<IROBDataProviderSvc>
m_robDataProvider
;
57
ServiceHandle<StoreGateSvc>
m_mdSvc
;
58
ToolHandle<IMCEventInfoByteStreamTool>
m_mcEventInfoTool
{
"MCEventInfoByteStreamTool"
};
59
60
// flags for EventType
61
bool
m_isSimulation
;
62
bool
m_isTestbeam
;
63
bool
m_isCalibration
;
64
};
65
66
#endif
// BYTESTREAMCNVSVC_EVENTINFOBYTESTREAMAUXCNV_H
AthMessaging.h
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
ByteStreamCnvSvcBase
The base class for offline and HLT ByteStream conversion services.
Definition
ByteStreamCnvSvcBase.h:17
CnvFactory
Abstract factory to create the converter.
Definition
ToyConverter.h:16
Converter::Converter
Converter()
Definition
Converter.h:29
EventInfoByteStreamAuxCnv::createObj
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
converter method to create object
Definition
EventInfoByteStreamAuxCnv.cxx:123
EventInfoByteStreamAuxCnv::createRep
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr) override
converter method to write object
Definition
EventInfoByteStreamAuxCnv.cxx:299
EventInfoByteStreamAuxCnv::finalize
virtual StatusCode finalize() override
Definition
EventInfoByteStreamAuxCnv.cxx:112
EventInfoByteStreamAuxCnv::ascTime
std::string ascTime(unsigned int t)
convert timestamp to ascii time.
Definition
EventInfoByteStreamAuxCnv.cxx:336
EventInfoByteStreamAuxCnv::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
RODDataProviderSvc handle.
Definition
EventInfoByteStreamAuxCnv.h:56
EventInfoByteStreamAuxCnv::initialize
virtual StatusCode initialize() override
Definition
EventInfoByteStreamAuxCnv.cxx:52
EventInfoByteStreamAuxCnv::m_mdSvc
ServiceHandle< StoreGateSvc > m_mdSvc
TDS handle.
Definition
EventInfoByteStreamAuxCnv.h:57
EventInfoByteStreamAuxCnv::m_isCalibration
bool m_isCalibration
Definition
EventInfoByteStreamAuxCnv.h:63
EventInfoByteStreamAuxCnv::classID
static CLID classID()
Definition
EventInfoByteStreamAuxCnv.cxx:42
EventInfoByteStreamAuxCnv::m_isTestbeam
bool m_isTestbeam
Definition
EventInfoByteStreamAuxCnv.h:62
EventInfoByteStreamAuxCnv::m_isSimulation
bool m_isSimulation
Definition
EventInfoByteStreamAuxCnv.h:61
EventInfoByteStreamAuxCnv::storageType
static long storageType()
Definition
EventInfoByteStreamAuxCnv.cxx:47
EventInfoByteStreamAuxCnv::EventInfoByteStreamAuxCnv
EventInfoByteStreamAuxCnv(ISvcLocator *svcloc)
Definition
EventInfoByteStreamAuxCnv.cxx:31
EventInfoByteStreamAuxCnv::~EventInfoByteStreamAuxCnv
virtual ~EventInfoByteStreamAuxCnv() override=default
EventInfoByteStreamAuxCnv::m_mcEventInfoTool
ToolHandle< IMCEventInfoByteStreamTool > m_mcEventInfoTool
Tool for decoding MC EventInfo from ROB.
Definition
EventInfoByteStreamAuxCnv.h:58
EventInfoByteStreamAuxCnv::repSvcType
virtual long repSvcType() const override
Storage type and class ID.
Definition
EventInfoByteStreamAuxCnv.h:50
IMCEventInfoByteStreamTool
Interface for MCEventInfoByteStreamTool.
Definition
MCEventInfoByteStreamTool.h:36
IROBDataProviderSvc
Interface class for managing ROB for both online and offline.
Definition
IROBDataProviderSvc.h:21
ServiceHandle
Definition
ClusterMakerTool.h:36
StoreGateSvc
The Athena Transient Store API.
Definition
StoreGateSvc.h:120
Generated on
for ATLAS Offline Software by
1.17.0