ATLAS Offline Software
CscRdoContByteStreamCnv.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONBYTESTREAM_CSCRDOCONTRAWEVENTCNV_H
6 #define MUONBYTESTREAM_CSCRDOCONTRAWEVENTCNV_H
7 
9 #include "GaudiKernel/ServiceHandle.h"
10 #include "GaudiKernel/ToolHandle.h"
12 
13 class DataObject;
14 class StatusCode;
15 
16 // Abstract factory to create the converter
17 template <class TYPE> class CnvFactory;
18 
19 /*
20  ByteStream Converter between CSC RDO <---> BYTE STREAM
21 
22  @author Ketevi A. Assamagan
23  BNL December 27 2003
24 */
26 public:
27  CscRdoContByteStreamCnv(ISvcLocator* svcloc);
28 
29  virtual StatusCode initialize() override;
30  virtual StatusCode createObjConst(IOpaqueAddress* /*pAddr*/, DataObject*& /*pObj*/) const override { return StatusCode::FAILURE; }
31 
32  virtual StatusCode createRepConst(DataObject* pObj, IOpaqueAddress*& pAddr) const override;
33 
35  virtual long repSvcType() const override { return i_repSvcType(); }
36  static long storageType();
37  static const CLID& classID();
38 
39 private:
40  ToolHandle<Muon::ICSC_RDOtoByteStreamTool> m_tool;
41 };
42 
43 #endif
CscRdoContByteStreamCnv::initialize
virtual StatusCode initialize() override
Definition: CscRdoContByteStreamCnv.cxx:22
CscRdoContByteStreamCnv
Definition: CscRdoContByteStreamCnv.h:25
ICSC_RDOtoByteStreamTool.h
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
CscRdoContByteStreamCnv::createRepConst
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
Definition: CscRdoContByteStreamCnv.cxx:31
CscRdoContByteStreamCnv::storageType
static long storageType()
Definition: CscRdoContByteStreamCnv.cxx:19
CscRdoContByteStreamCnv::repSvcType
virtual long repSvcType() const override
Storage type and class ID.
Definition: CscRdoContByteStreamCnv.h:35
CscRdoContByteStreamCnv::CscRdoContByteStreamCnv
CscRdoContByteStreamCnv(ISvcLocator *svcloc)
Definition: CscRdoContByteStreamCnv.cxx:13
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.
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
CscRdoContByteStreamCnv::classID
static const CLID & classID()
Definition: CscRdoContByteStreamCnv.cxx:17
CscRdoContByteStreamCnv::m_tool
ToolHandle< Muon::ICSC_RDOtoByteStreamTool > m_tool
Definition: CscRdoContByteStreamCnv.h:40
CscRdoContByteStreamCnv::createObjConst
virtual StatusCode createObjConst(IOpaqueAddress *, DataObject *&) const override
Create the transient representation of an object.
Definition: CscRdoContByteStreamCnv.h:30