ATLAS Offline Software
TileRawChannelContByteStreamCnv.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 TILEBYTESTREAM_TILERAWCHANNELCONTRAWEVENTCNV_H
6 #define TILEBYTESTREAM_TILERAWCHANNELCONTRAWEVENTCNV_H
7 
13 #include "GaudiKernel/ToolHandle.h"
14 #include "GaudiKernel/ServiceHandle.h"
15 
16 #include <vector>
17 
18 class DataObject;
19 class StatusCode;
20 class IAddressCreator;
22 class MsgStream;
25 class ByteStreamCnvSvc;
26 class IROBDataProviderSvc;
27 class TileHid2RESrcID;
28 class TileROD_Decoder;
29 
30 
37 // Abstract factory to create the converter
38 template <class TYPE> class CnvFactory;
39 
40 
42  : public AthConstConverter
43 {
44  public:
45  TileRawChannelContByteStreamCnv(ISvcLocator* svcloc);
46 
48 
49  virtual StatusCode initialize() override;
50  virtual StatusCode createObjConst(IOpaqueAddress* pAddr, DataObject*& pObj) const override;
51  virtual StatusCode createRepConst(DataObject* pObj, IOpaqueAddress*& pAddr) const override;
52  virtual StatusCode finalize() override;
53 
55  virtual long repSvcType() const override { return i_repSvcType(); }
56  static long storageType();
57  static const CLID& classID();
58 
59  private:
60  // BYTESTREAMTOOL* m_tool ;
61  ToolHandle<TileRawChannelContByteStreamTool> m_tool;
62 
65 
68 
70  ToolHandle<TileROD_Decoder> m_decoder;
71 
74 
75 
78 };
79 #endif
80 
TileRawChannelContainer
Definition: TileRawChannelContainer.h:13
TileROD_Decoder
Decodes the different TileCal ROD subfragment types in bytestream data and fills TileDigitsContainer,...
Definition: TileROD_Decoder.h:119
TileRawChannelContByteStreamTool
AlgTool class to provide conversion from TileRawChannelContainer to ByteStream, and fill it in RawEve...
Definition: TileRawChannelContByteStreamTool.h:33
RecyclableDataObject.h
Helper for recycling objects from event to event.
TileRawChannelContByteStreamCnv::finalize
virtual StatusCode finalize() override
Definition: TileRawChannelContByteStreamCnv.cxx:210
TileRawChannelContByteStreamCnv::m_hid2re
const TileHid2RESrcID * m_hid2re
Pointer to TileHid2RESrcID.
Definition: TileRawChannelContByteStreamCnv.h:73
TileRawChannelContByteStreamCnv::m_decoder
ToolHandle< TileROD_Decoder > m_decoder
Pointer to TileROD_Decoder.
Definition: TileRawChannelContByteStreamCnv.h:70
TileRawChannelContByteStreamCnv::m_tool
ToolHandle< TileRawChannelContByteStreamTool > m_tool
Definition: TileRawChannelContByteStreamCnv.h:61
IByteStreamEventAccess
interface for accessing raw data .
Definition: IByteStreamEventAccess.h:17
IByteStreamEventAccess.h
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
TileRawChannelContByteStreamCnv::m_byteStreamEventAccess
ServiceHandle< IByteStreamEventAccess > m_byteStreamEventAccess
Definition: TileRawChannelContByteStreamCnv.h:63
Athena::RecyclableDataQueue
Holder for recyclable objects.
Definition: RecyclableDataObject.h:126
TileRawChannelContByteStreamCnv::createRepConst
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
Definition: TileRawChannelContByteStreamCnv.cxx:176
TileHid2RESrcID
This class provides conversion between fragment ID and RESrcID.
Definition: TileHid2RESrcID.h:28
TileRawChannelContByteStreamCnv::createObjConst
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
Definition: TileRawChannelContByteStreamCnv.cxx:73
TileRawChannelContByteStreamCnv::repSvcType
virtual long repSvcType() const override
Storage type and class ID.
Definition: TileRawChannelContByteStreamCnv.h:55
IROBDataProviderSvc
Interface class for managing ROB for both online and offline.
Definition: IROBDataProviderSvc.h:25
ByteStreamCnvSvc
Gaudi Conversion Service class for ByteStream Persistency.
Definition: ByteStreamCnvSvc.h:34
TileRawChannelContByteStreamCnv::TileRawChannelContByteStreamCnv
TileRawChannelContByteStreamCnv(ISvcLocator *svcloc)
Definition: TileRawChannelContByteStreamCnv.cxx:37
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthConstConverter.h
Gaudi converter base class with const interfaces.
TileRawChannelContByteStreamCnv::BYTESTREAMTOOL
TileRawChannelContByteStreamTool BYTESTREAMTOOL
Definition: TileRawChannelContByteStreamCnv.h:47
TileRawChannelContByteStreamCnv::storageType
static long storageType()
Definition: TileRawChannelContByteStreamCnv.cxx:50
CnvFactory
Abstract factory to create the converter.
Definition: ToyConverter.h:16
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
TileRawChannelContByteStreamCnv::m_robSvc
ServiceHandle< IROBDataProviderSvc > m_robSvc
Pointer to IROBDataProviderSvc.
Definition: TileRawChannelContByteStreamCnv.h:67
TileRawChannelContByteStreamCnv::m_byteStreamCnvSvc
ByteStreamCnvSvc * m_byteStreamCnvSvc
Definition: TileRawChannelContByteStreamCnv.h:64
TileMutableRawChannelContainer.h
Helper for holding non-const raw data prior to recording in SG.
TileRawChannelContByteStreamCnv::ATLAS_THREAD_SAFE
Athena::RecyclableDataQueue< TileMutableRawChannelContainer > m_queue ATLAS_THREAD_SAFE
Queue of data objects to recycle.
Definition: TileRawChannelContByteStreamCnv.h:77
TileRawChannelContByteStreamCnv::initialize
virtual StatusCode initialize() override
Definition: TileRawChannelContByteStreamCnv.cxx:52
TileRawChannelContByteStreamCnv::classID
static const CLID & classID()
Definition: TileRawChannelContByteStreamCnv.cxx:48
IROBDataProviderSvc.h
ServiceHandle< IByteStreamEventAccess >
TileRawChannelContByteStreamCnv
Contains methods to do the conversion from bytestream format to TileRawChannel stored in a TileRawCha...
Definition: TileRawChannelContByteStreamCnv.h:43