ATLAS Offline Software
Loading...
Searching...
No Matches
CpmRoiByteStreamCnv.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGT1CALOBYTESTREAM_CPMROIBYTESTREAMCNV_H
6#define TRIGT1CALOBYTESTREAM_CPMROIBYTESTREAMCNV_H
7
8#include <string>
9
11#include "GaudiKernel/ClassID.h"
12#include "GaudiKernel/ServiceHandle.h"
13#include "GaudiKernel/ToolHandle.h"
14
15class DataObject;
16class IOpaqueAddress;
18class ISvcLocator;
19class StatusCode;
20
21template <typename> class CnvFactory;
22
23
24namespace LVL1BS {
25
27
32
34
35 friend class CnvFactory<CpmRoiByteStreamCnv>;
36
37protected:
38
39 CpmRoiByteStreamCnv(ISvcLocator* svcloc);
40
41public:
42
43 virtual ~CpmRoiByteStreamCnv();
44
45 virtual StatusCode initialize() override;
47 virtual StatusCode createObjConst(IOpaqueAddress* pAddr, DataObject*& pObj) const override;
49 virtual StatusCode createRepConst(DataObject* pObj, IOpaqueAddress*& pAddr) const override;
50
51 // Storage type and class ID
52 virtual long repSvcType() const override { return i_repSvcType(); }
53 static long storageType();
54 static const CLID& classID();
55
56private:
58 ToolHandle<LVL1BS::CpmRoiByteStreamTool> m_tool;
59
62};
63
64} // end namespace
65
66#endif
Gaudi converter base class with const interfaces.
uint32_t CLID
The Class ID type.
AthConstConverter(long storage_type, const CLID &class_type, ISvcLocator *svc, const std::string &name)
Abstract factory to create the converter.
Interface class for managing ROB for both online and offline.
CpmRoiByteStreamCnv(ISvcLocator *svcloc)
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Create ByteStream from CPM RoIs.
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create CPM RoIs from ByteStream.
virtual StatusCode initialize() override
ToolHandle< LVL1BS::CpmRoiByteStreamTool > m_tool
Tool that does the actual work.
virtual long repSvcType() const override
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for reading bytestream.
Tool to perform ROB fragments to CPM RoI and CPM RoI to raw data conversions.