ATLAS Offline Software
Loading...
Searching...
No Matches
MuCTPIByteStreamCnv.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_MUCTPIBYTESTREAMCNV_H
8#define TRIGT1RESULTBYTESTREAM_MUCTPIBYTESTREAMCNV_H
9
10//#define CTP_MUCTPI_HAVE_SAME_ROS
11
12// Gaudi/Athena include(s):
13#include "GaudiKernel/Converter.h"
14#include "GaudiKernel/ServiceHandle.h"
15#include "GaudiKernel/ToolHandle.h"
16
17#ifdef CTP_MUCTPI_HAVE_SAME_ROS
19#endif
20
23
24// Local include(s):
26#include "MuCTPISrcIdMap.h"
27#ifdef CTP_MUCTPI_HAVE_SAME_ROS
28# include "TrigT1ResultByteStream/CTPByteStreamTool.h"
29# include "RecCTPByteStreamTool.h"
30#endif
31
32
48
49public:
51 MuCTPIByteStreamCnv( ISvcLocator* svcloc );
52
54 virtual StatusCode initialize() override;
56 virtual StatusCode createObj( IOpaqueAddress* pAddr, DataObject*& pObj ) override;
58 virtual StatusCode createRep( DataObject* pObj, IOpaqueAddress*& pAddr ) override;
59
61 virtual long repSvcType() const override { return i_repSvcType(); }
63 static long storageType();
65 static const CLID& classID();
66
67private:
69 ToolHandle< MuCTPIByteStreamTool > m_tool;
72
73#ifdef CTP_MUCTPI_HAVE_SAME_ROS
74 ToolHandle< CTPByteStreamTool > m_ctp_tool;
75 ToolHandle< RecCTPByteStreamTool > m_ctp_rec_tool;
77#endif
78
83
84}; // class MuCTPIByteStreamCnv
85
86#endif // TRIGT1RESULTBYTESTREAM_MUCTPIBYTESTREAMCNV_H
uint32_t CLID
The Class ID type.
ServiceHandle< IByteStreamEventAccess > m_ByteStreamEventAccess
Service used when writing the BS data.
static const CLID & classID()
Function needed by the framework.
ToolHandle< MuCTPIByteStreamTool > m_tool
Tool doing the actual conversion.
MuCTPIByteStreamCnv(ISvcLocator *svcloc)
Standard constructor.
virtual long repSvcType() const override
Function needed by the framework.
MuCTPISrcIdMap m_srcIdMap
Object storing the various IDs of the MuCTPI fragment.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
Function creating the MuCTPI_RDO object from a MuCTPI ROB fragment.
virtual StatusCode initialize() override
Function connecting to all the needed services/tools.
static long storageType()
Function needed by the framework.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service used when reading the BS data.
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr) override
Function creating the MuCTPI ROB fragment from a MuCTPI_RDO object.
This class provides conversion between Lower level Source ID to higher level source ID for MuCTPI Byt...