ATLAS Offline Software
SCTRawContByteStreamCnv.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef SCT_RAWDATABYTESTREAMCNV_SCTRAWCONTBYTESTREAMCNV_H
8 #define SCT_RAWDATABYTESTREAMCNV_SCTRAWCONTBYTESTREAMCNV_H
9 
14 
15 #include "GaudiKernel/ServiceHandle.h"
16 
18 
19 class DataObject;
21 
33 {
34  public:
35 
37  SCTRawContByteStreamCnv(ISvcLocator* svcLoc);
38 
40  virtual ~SCTRawContByteStreamCnv() = default;
41 
43  virtual StatusCode initialize() override;
44 
46  virtual long repSvcType() const override { return i_repSvcType(); }
48  static long storageType() { return ByteStreamAddress::storageType(); }
50  static const CLID& classID() { return ClassID_traits<SCT_RDO_Container>::ID(); }
51 
53  virtual StatusCode createObjConst(IOpaqueAddress*, DataObject*&) const override { return StatusCode::FAILURE; }
54 
66  virtual StatusCode createRepConst(DataObject* pDataObject, IOpaqueAddress*& pOpaqueAddress) const override;
67 
68  private:
69 
71  PublicToolHandle<ISCTRawContByteStreamToolProviderTool> m_rawContByteStreamToolProvider;
73 
74 
77 };
78 
79 #endif // SCT_RAWDATABYTESTREAMCNV_SCTRAWCONTBYTESTREAMCNV_H
SCTRawContByteStreamCnv
Converter for writing ByteStream from SCT Raw Data.
Definition: SCTRawContByteStreamCnv.h:33
SCTRawContByteStreamCnv::initialize
virtual StatusCode initialize() override
Initialize.
Definition: SCTRawContByteStreamCnv.cxx:30
IByteStreamEventAccess.h
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
SCTRawContByteStreamCnv::repSvcType
virtual long repSvcType() const override
Retrieve the class type of the data store the converter uses.
Definition: SCTRawContByteStreamCnv.h:46
ISCTRawContByteStreamTool
Interface for Athena Algorithm Tool to provide conversion from SCT RDO container to ByteStream.
Definition: ISCTRawContByteStreamTool.h:28
SCTRawContByteStreamCnv::storageType
static long storageType()
Storage type.
Definition: SCTRawContByteStreamCnv.h:48
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.
SCTRawContByteStreamCnv::~SCTRawContByteStreamCnv
virtual ~SCTRawContByteStreamCnv()=default
Destructor.
ByteStreamAddress.h
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
SCTRawContByteStreamCnv::m_rawContByteStreamToolProvider
PublicToolHandle< ISCTRawContByteStreamToolProviderTool > m_rawContByteStreamToolProvider
Tool to do coversion from SCT RDO container to ByteStream.
Definition: SCTRawContByteStreamCnv.h:71
ByteStreamAddress::storageType
static constexpr long storageType()
Definition: ByteStreamAddress.h:51
SCTRawContByteStreamCnv::SCTRawContByteStreamCnv
SCTRawContByteStreamCnv(ISvcLocator *svcLoc)
Constructor.
Definition: SCTRawContByteStreamCnv.cxx:20
SCTRawContByteStreamCnv::m_byteStreamEventAccess
ServiceHandle< IByteStreamEventAccess > m_byteStreamEventAccess
Interface for accessing raw data.
Definition: SCTRawContByteStreamCnv.h:76
SCTRawContByteStreamCnv::createObjConst
virtual StatusCode createObjConst(IOpaqueAddress *, DataObject *&) const override
createObj method (not used!)
Definition: SCTRawContByteStreamCnv.h:53
SCTRawContByteStreamCnv::m_rawContByteStreamTool
const ISCTRawContByteStreamTool * m_rawContByteStreamTool
Definition: SCTRawContByteStreamCnv.h:72
ClassID_traits::ID
static CLID ID()
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:44
SCTRawContByteStreamCnv::classID
static const CLID & classID()
Class ID.
Definition: SCTRawContByteStreamCnv.h:50
InDetRawDataCLASS_DEF.h
SCTRawContByteStreamCnv::createRepConst
virtual StatusCode createRepConst(DataObject *pDataObject, IOpaqueAddress *&pOpaqueAddress) const override
Method to convert SCT Raw Data into ByteStream.
Definition: SCTRawContByteStreamCnv.cxx:51
ISCTRawContByteStreamToolProviderTool.h
ServiceHandle< IByteStreamEventAccess >