ATLAS Offline Software
LArFebHeaderContByteStreamCnv.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef LARBYTESTREAM_FEBHEADERCONTRAWEVENTCNV_H
8 #define LARBYTESTREAM_FEBHEADERCONTRAWEVENTCNV_H
9 
10 #include <stdint.h>
11 #include <map>
12 #include <string>
14 #include "ByteStreamData/RawEvent.h"
16 #include "GaudiKernel/ToolHandle.h"
17 #include "GaudiKernel/ServiceHandle.h"
18 
19 class DataObject;
20 class StatusCode;
21 class IAddressCreator;
25 class IROBDataProviderSvc;
26 class ByteStreamCnvSvc;
27 
32 // Abstract factory to create the converter
33 template <class TYPE> class CnvFactory;
34 
36 {
37  public:
38  LArFebHeaderContByteStreamCnv(ISvcLocator* svcloc);
39 
41 
42  virtual StatusCode initialize() override;
43  virtual StatusCode createObjConst(IOpaqueAddress* pAddr, DataObject*& pObj) const override;
44  virtual StatusCode createRepConst(DataObject* pObj, IOpaqueAddress*& pAddr) const override;
45 
47  virtual long repSvcType() const override { return i_repSvcType(); }
48  static long storageType() { return ByteStreamAddress::storageType(); }
49  static const CLID& classID();
50 
51 private:
52  ToolHandle<BYTESTREAMTOOL> m_tool;
54 };
55 #endif
56 
57 
58 
IByteStreamEventAccess
interface for accessing raw data .
Definition: IByteStreamEventAccess.h:17
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
LArFebHeaderContByteStreamCnv::createRepConst
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
Definition: LArFebHeaderContByteStreamCnv.cxx:85
LArFebHeaderContByteStreamCnv::classID
static const CLID & classID()
Definition: LArFebHeaderContByteStreamCnv.cxx:31
IROBDataProviderSvc
Interface class for managing ROB for both online and offline.
Definition: IROBDataProviderSvc.h:25
ByteStreamCnvSvc
Gaudi Conversion Service class for ByteStream Persistency.
Definition: ByteStreamCnvSvc.h:34
LArFebHeaderContByteStreamCnv::m_tool
ToolHandle< BYTESTREAMTOOL > m_tool
Definition: LArFebHeaderContByteStreamCnv.h:52
RawEvent.h
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
ByteStreamAddress.h
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
LArFebHeaderContByteStreamCnv
Definition: LArFebHeaderContByteStreamCnv.h:36
ByteStreamAddress::storageType
static constexpr long storageType()
Definition: ByteStreamAddress.h:51
LArRawDataContByteStreamTool
An AlgTool class to help converting LAr raw data objects to/from ByteStream.
Definition: LArRawDataContByteStreamTool.h:49
LArFebHeaderContByteStreamCnv::repSvcType
virtual long repSvcType() const override
Storage type and class ID.
Definition: LArFebHeaderContByteStreamCnv.h:47
LArFebHeaderContByteStreamCnv::BYTESTREAMTOOL
LArRawDataContByteStreamTool BYTESTREAMTOOL
Definition: LArFebHeaderContByteStreamCnv.h:40
LArFebHeaderContByteStreamCnv::storageType
static long storageType()
Definition: LArFebHeaderContByteStreamCnv.h:48
LArFebHeaderContByteStreamCnv::initialize
virtual StatusCode initialize() override
Definition: LArFebHeaderContByteStreamCnv.cxx:37
LArFebHeaderContainer
Container class for LArFebHeader.
Definition: LArFebHeaderContainer.h:20
LArFebHeaderContByteStreamCnv::m_rdpSvc
ServiceHandle< IROBDataProviderSvc > m_rdpSvc
Definition: LArFebHeaderContByteStreamCnv.h:53
LArFebHeaderContByteStreamCnv::LArFebHeaderContByteStreamCnv
LArFebHeaderContByteStreamCnv(ISvcLocator *svcloc)
Definition: LArFebHeaderContByteStreamCnv.cxx:25
LArFebHeaderContByteStreamCnv::createObjConst
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
Definition: LArFebHeaderContByteStreamCnv.cxx:51
ServiceHandle< IROBDataProviderSvc >