ATLAS Offline Software
TgcRdoContByteStreamCnv.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONBYTESTREAM_TGCRDOCONTRAWEVENTCNV_H
6 #define MUONBYTESTREAM_TGCRDOCONTRAWEVENTCNV_H
7 
9 #include "GaudiKernel/ServiceHandle.h"
10 #include "GaudiKernel/ToolHandle.h"
12 
13 class DataObject;
14 class StatusCode;
15 class StoreGateSvc;
16 class TgcRdoContainer;
17 
18 namespace Muon {
19  class TgcRdoContByteStreamTool;
20 }
21 
22 // Abstract factory to create the converter
23 template <class TYPE> class CnvFactory;
24 
25 /*
26  ByteStream Converter between TGC bareRDO and BS
27 
28  @author Tadashi Maeno
29  based on RpcPadContByteStreamCnv by Ketevi A. Assamagan
30 */
32 public:
33  TgcRdoContByteStreamCnv(ISvcLocator* svcloc);
34 
35  virtual StatusCode initialize() override;
36 
37  virtual StatusCode createObjConst(IOpaqueAddress* , DataObject*& ) const override { return StatusCode::FAILURE; }
38 
39  virtual StatusCode createRepConst(DataObject* pObj, IOpaqueAddress*& pAddr) const override;
40 
42  virtual long repSvcType() const override { return i_repSvcType(); }
43  static long storageType();
44  static const CLID& classID();
45 
46 private:
47  ToolHandle<Muon::ITGC_RDOtoByteStreamTool> m_tool;
48 };
49 
50 #endif
TgcRdoContByteStreamCnv
Definition: TgcRdoContByteStreamCnv.h:31
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
TgcRdoContByteStreamCnv::initialize
virtual StatusCode initialize() override
Definition: TgcRdoContByteStreamCnv.cxx:34
TgcRdoContainer
Definition: TgcRdoContainer.h:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TgcRdoContByteStreamCnv::repSvcType
virtual long repSvcType() const override
Storage type and class ID.
Definition: TgcRdoContByteStreamCnv.h:42
AthConstConverter.h
Gaudi converter base class with const interfaces.
TgcRdoContByteStreamCnv::m_tool
ToolHandle< Muon::ITGC_RDOtoByteStreamTool > m_tool
Definition: TgcRdoContByteStreamCnv.h:47
TgcRdoContByteStreamCnv::storageType
static long storageType()
Definition: TgcRdoContByteStreamCnv.cxx:31
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
TgcRdoContByteStreamCnv::TgcRdoContByteStreamCnv
TgcRdoContByteStreamCnv(ISvcLocator *svcloc)
Definition: TgcRdoContByteStreamCnv.cxx:25
TgcRdoContByteStreamCnv::classID
static const CLID & classID()
Definition: TgcRdoContByteStreamCnv.cxx:29
ITGC_RDOtoByteStreamTool.h
TgcRdoContByteStreamCnv::createRepConst
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
Definition: TgcRdoContByteStreamCnv.cxx:42
TgcRdoContByteStreamCnv::createObjConst
virtual StatusCode createObjConst(IOpaqueAddress *, DataObject *&) const override
Create the transient representation of an object.
Definition: TgcRdoContByteStreamCnv.h:37