ATLAS Offline Software
SCTRawContByteStreamCnv.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2020 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 
17 class DataObject;
19 
31 {
32  public:
33 
35  SCTRawContByteStreamCnv(ISvcLocator* svcLoc);
36 
38  virtual ~SCTRawContByteStreamCnv() = default;
39 
41  virtual StatusCode initialize() override;
42 
44  virtual long repSvcType() const override { return i_repSvcType(); }
46  static long storageType() { return ByteStreamAddress::storageType(); }
48  static const CLID& classID() { return ClassID_traits<SCT_RDO_Container>::ID(); }
49 
51  virtual StatusCode createObjConst(IOpaqueAddress*, DataObject*&) const override { return StatusCode::FAILURE; }
52 
64  virtual StatusCode createRepConst(DataObject* pDataObject, IOpaqueAddress*& pOpaqueAddress) const override;
65 
66  private:
67 
69  ToolHandle<ISCTRawContByteStreamTool> m_rawContByteStreamTool;
70 
73 };
74 
75 #endif // SCT_RAWDATABYTESTREAMCNV_SCTRAWCONTBYTESTREAMCNV_H
SCTRawContByteStreamCnv
Converter for writing ByteStream from SCT Raw Data.
Definition: SCTRawContByteStreamCnv.h:31
SCTRawContByteStreamCnv::initialize
virtual StatusCode initialize() override
Initialize.
Definition: SCTRawContByteStreamCnv.cxx:29
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:44
SCTRawContByteStreamCnv::m_rawContByteStreamTool
ToolHandle< ISCTRawContByteStreamTool > m_rawContByteStreamTool
Tool to do coversion from SCT RDO container to ByteStream.
Definition: SCTRawContByteStreamCnv.h:69
ClassID_traits::ID
static const CLID & ID()
the CLID of T
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:50
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:46
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
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:72
SCTRawContByteStreamCnv::createObjConst
virtual StatusCode createObjConst(IOpaqueAddress *, DataObject *&) const override
createObj method (not used!)
Definition: SCTRawContByteStreamCnv.h:51
SCTRawContByteStreamCnv::classID
static const CLID & classID()
Class ID.
Definition: SCTRawContByteStreamCnv.h:48
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:47
ServiceHandle< IByteStreamEventAccess >