ATLAS Offline Software
ITkStripsRawContByteStreamCnv.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 ITkStripsRawDataByteStreamCnv_ITkStripsRawContByteStreamCnv_h
6 #define ITkStripsRawDataByteStreamCnv_ITkStripsRawContByteStreamCnv_h
7 
12 
13 #include "GaudiKernel/ServiceHandle.h"
14 
15 class DataObject;
17 
29  public:
30 
32  ITkStripsRawContByteStreamCnv(ISvcLocator* svcLoc);
33 
35  virtual ~ITkStripsRawContByteStreamCnv() = default;
36 
38  virtual StatusCode initialize() override;
39 
41  virtual long repSvcType() const override { return i_repSvcType(); }
43  static long storageType() { return ByteStreamAddress::storageType(); }
45  static const CLID& classID() { return ClassID_traits<SCT_RDO_Container>::ID(); }
46 
48  virtual StatusCode createObjConst(IOpaqueAddress*, DataObject*&) const override { return StatusCode::FAILURE; }
49 
61  virtual StatusCode createRepConst(DataObject* pDataObject, IOpaqueAddress*& pOpaqueAddress) const override;
62 
63  private:
64 
66  ToolHandle<IITkStripsRawContByteStreamTool> m_rawContByteStreamTool;
67 
70 };
71 
72 #endif
ITkStripsRawContByteStreamCnv
Converter for writing ByteStream from ITkStrips Raw Data.
Definition: ITkStripsRawContByteStreamCnv.h:28
ITkStripsRawContByteStreamCnv::ITkStripsRawContByteStreamCnv
ITkStripsRawContByteStreamCnv(ISvcLocator *svcLoc)
Constructor.
Definition: ITkStripsRawContByteStreamCnv.cxx:19
ITkStripsRawContByteStreamCnv::m_rawContByteStreamTool
ToolHandle< IITkStripsRawContByteStreamTool > m_rawContByteStreamTool
Tool to do coversion from ITkStrips RDO container to ByteStream.
Definition: ITkStripsRawContByteStreamCnv.h:66
ITkStripsRawContByteStreamCnv::m_byteStreamEventAccess
ServiceHandle< IByteStreamEventAccess > m_byteStreamEventAccess
Interface for accessing raw data.
Definition: ITkStripsRawContByteStreamCnv.h:69
IByteStreamEventAccess.h
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
ClassID_traits::ID
static const CLID & ID()
the CLID of T
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:50
ITkStripsRawContByteStreamCnv::classID
static const CLID & classID()
Class ID.
Definition: ITkStripsRawContByteStreamCnv.h:45
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.
ITkStripsRawContByteStreamCnv::storageType
static long storageType()
Storage type.
Definition: ITkStripsRawContByteStreamCnv.h:43
ITkStripsRawContByteStreamCnv::~ITkStripsRawContByteStreamCnv
virtual ~ITkStripsRawContByteStreamCnv()=default
Destructor.
ByteStreamAddress.h
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
ByteStreamAddress::storageType
static constexpr long storageType()
Definition: ByteStreamAddress.h:51
ITkStripsRawContByteStreamCnv::initialize
virtual StatusCode initialize() override
Initialize.
Definition: ITkStripsRawContByteStreamCnv.cxx:28
ITkStripsRawContByteStreamCnv::createRepConst
virtual StatusCode createRepConst(DataObject *pDataObject, IOpaqueAddress *&pOpaqueAddress) const override
Method to convert ITkStrips Raw Data into ByteStream.
Definition: ITkStripsRawContByteStreamCnv.cxx:46
ITkStripsRawContByteStreamCnv::repSvcType
virtual long repSvcType() const override
Retrieve the class type of the data store the converter uses.
Definition: ITkStripsRawContByteStreamCnv.h:41
IITkStripsRawContByteStreamTool
Interface for Athena Algorithm Tool to provide conversion from ITk Strips RDO container to ByteStream...
Definition: IITkStripsRawContByteStreamTool.h:23
InDetRawDataCLASS_DEF.h
ITkStripsRawContByteStreamCnv::createObjConst
virtual StatusCode createObjConst(IOpaqueAddress *, DataObject *&) const override
createObj method (not used!)
Definition: ITkStripsRawContByteStreamCnv.h:48
ServiceHandle< IByteStreamEventAccess >