ATLAS Offline Software
TileRawChannelContByteStreamCnv.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 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;
21 class MsgStream;
25 class TileHid2RESrcID;
26 class TileROD_Decoder;
27 
28 
35 // Abstract factory to create the converter
36 template <class TYPE> class CnvFactory;
37 
38 
40  : public AthConstConverter
41 {
42  public:
43  TileRawChannelContByteStreamCnv(ISvcLocator* svcloc);
44 
46 
47  virtual StatusCode initialize() override;
48  virtual StatusCode createObjConst(IOpaqueAddress* pAddr, DataObject*& pObj) const override;
49  virtual StatusCode createRepConst(DataObject* pObj, IOpaqueAddress*& pAddr) const override;
50  virtual StatusCode finalize() override;
51 
53  virtual long repSvcType() const override { return i_repSvcType(); }
54  static long storageType();
55  static const CLID& classID();
56 
57  private:
58  // BYTESTREAMTOOL* m_tool ;
59  ToolHandle<TileRawChannelContByteStreamTool> m_tool;
60 
62 
65 
67  ToolHandle<TileROD_Decoder> m_decoder;
68 
71 
72 
75 };
76 #endif
77 
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:207
TileRawChannelContByteStreamCnv::m_hid2re
const TileHid2RESrcID * m_hid2re
Pointer to TileHid2RESrcID.
Definition: TileRawChannelContByteStreamCnv.h:70
TileRawChannelContByteStreamCnv::m_decoder
ToolHandle< TileROD_Decoder > m_decoder
Pointer to TileROD_Decoder.
Definition: TileRawChannelContByteStreamCnv.h:67
TileRawChannelContByteStreamCnv::m_tool
ToolHandle< TileRawChannelContByteStreamTool > m_tool
Definition: TileRawChannelContByteStreamCnv.h:59
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
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:173
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:70
TileRawChannelContByteStreamCnv::repSvcType
virtual long repSvcType() const override
Storage type and class ID.
Definition: TileRawChannelContByteStreamCnv.h:53
IROBDataProviderSvc
Interface class for managing ROB for both online and offline.
Definition: IROBDataProviderSvc.h:23
TileRawChannelContByteStreamCnv::TileRawChannelContByteStreamCnv
TileRawChannelContByteStreamCnv(ISvcLocator *svcloc)
Definition: TileRawChannelContByteStreamCnv.cxx:36
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:45
TileRawChannelContByteStreamCnv::storageType
static long storageType()
Definition: TileRawChannelContByteStreamCnv.cxx:48
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_byteStreamCnvSvc
ServiceHandle< IByteStreamCnvSvc > m_byteStreamCnvSvc
Definition: TileRawChannelContByteStreamCnv.h:61
TileRawChannelContByteStreamCnv::m_robSvc
ServiceHandle< IROBDataProviderSvc > m_robSvc
Pointer to IROBDataProviderSvc.
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:74
IByteStreamCnvSvc.h
TileRawChannelContByteStreamCnv::initialize
virtual StatusCode initialize() override
Definition: TileRawChannelContByteStreamCnv.cxx:50
TileRawChannelContByteStreamCnv::classID
static const CLID & classID()
Definition: TileRawChannelContByteStreamCnv.cxx:46
IROBDataProviderSvc.h
ServiceHandle< IByteStreamCnvSvc >
TileRawChannelContByteStreamCnv
Contains methods to do the conversion from bytestream format to TileRawChannel stored in a TileRawCha...
Definition: TileRawChannelContByteStreamCnv.h:41