ATLAS Offline Software
Loading...
Searching...
No Matches
CTPByteStreamCnv.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TRIGT1RESULTBYTESTREAM_CTPBYTESTREAMCNV_H
8#define TRIGT1RESULTBYTESTREAM_CTPBYTESTREAMCNV_H
9
10// Gaudi/Athena include(s):
11#include "GaudiKernel/Converter.h"
12#include "GaudiKernel/ServiceHandle.h"
13#include "GaudiKernel/ToolHandle.h"
14
17
18// Local include(s):
19#include "CTPByteStreamTool.h"
20#include "CTPSrcIdMap.h"
21
22
36
37public:
39 CTPByteStreamCnv( ISvcLocator* svcloc );
40
42 virtual StatusCode initialize() override;
44 virtual StatusCode createObj( IOpaqueAddress* pAddr, DataObject*& pObj ) override;
46 virtual StatusCode createRep( DataObject* pObj, IOpaqueAddress*& pAddr ) override;
47
49 virtual long repSvcType() const override { return i_repSvcType(); }
51 static long storageType();
53 static const CLID& classID();
54
55private:
57 ToolHandle< CTPByteStreamTool > m_tool;
58
61
66
67}; // class CTPByteStreamCnv
68
69#endif // TRIGT1RESULTBYTESTREAM_CTPBYTESTREAMCNV_H
uint32_t CLID
The Class ID type.
virtual long repSvcType() const override
Function needed by the framework.
static const CLID & classID()
Function needed by the framework.
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr) override
Function creating the CTP ROB fragment from a CTP_RDO object.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
Function creating the CTP_RDO object from a CTP ROB fragment.
ToolHandle< CTPByteStreamTool > m_tool
Tool doing the actual conversion.
CTPByteStreamCnv(ISvcLocator *svcloc)
Standard constructor.
virtual StatusCode initialize() override
Function connecting to all the needed services/tools.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service used when reading the BS data.
CTPSrcIdMap m_srcIdMap
Object storing the various IDs of the CTP fragment.
static long storageType()
Function needed by the framework.
ServiceHandle< IByteStreamEventAccess > m_ByteStreamEventAccess
Service used when writing the BS data.
This class provides conversion between Lower level Source ID to higher level source ID for CTP ByteSt...
Definition CTPSrcIdMap.h:16