ATLAS Offline Software
LArCalibDigitContByteStreamCnv.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef LARBYTESTREAM_LARCALIBDIGITCONTRAWEVENTCNV_H
8 #define LARBYTESTREAM_LARCALIBDIGITCONTRAWEVENTCNV_H
9 
10 #include <stdint.h>
11 #include <map>
12 #include <string>
14 #include "ByteStreamData/RawEvent.h"
17 #include "GaudiKernel/ToolHandle.h"
18 #include "GaudiKernel/ServiceHandle.h"
19 
20 class DataObject;
21 class StatusCode;
22 class IAddressCreator;
25 class IROBDataProviderSvc;
26 class IByteStreamCnvSvc;
28 class LArOnOffIdMapping;
29 
34 // Abstract factory to create the converter
35 template <class TYPE> class CnvFactory;
36 
38 {
39 public:
40  LArCalibDigitContByteStreamCnv(ISvcLocator* svcloc);
42 
44 
45  virtual StatusCode initialize() override;
46  virtual StatusCode createObjConst(IOpaqueAddress* pAddr, DataObject*& pObj) const override;
47  virtual StatusCode createRepConst(DataObject* pObj, IOpaqueAddress*& pAddr) const override;
48 
50  virtual long repSvcType() const override { return i_repSvcType(); }
51  static long storageType() { return ByteStreamAddress::storageType(); }
52  static const CLID& classID();
53 
54 private:
55  ToolHandle<BYTESTREAMTOOL> m_tool;
60 };
61 #endif
62 
63 
64 
LArCalibDigitContByteStreamCnv::classID
static const CLID & classID()
Definition: LArCalibDigitContByteStreamCnv.cxx:38
LArCalibDigitContByteStreamCnv::initialize
virtual StatusCode initialize() override
Definition: LArCalibDigitContByteStreamCnv.cxx:44
LArCalibDigitContByteStreamCnv::BYTESTREAMTOOL
LArRawDataContByteStreamTool BYTESTREAMTOOL
Definition: LArCalibDigitContByteStreamCnv.h:43
LArCalibDigitContByteStreamCnv::createObjConst
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
Definition: LArCalibDigitContByteStreamCnv.cxx:62
LArCalibLineMapping
Definition: LArCalibLineMapping.h:17
LArCalibDigitContByteStreamCnv::m_rdpSvc
ServiceHandle< IROBDataProviderSvc > m_rdpSvc
Definition: LArCalibDigitContByteStreamCnv.h:56
LArCalibDigitContByteStreamCnv::m_calibLineMappingKey
SG::ReadCondHandleKey< LArCalibLineMapping > m_calibLineMappingKey
Definition: LArCalibDigitContByteStreamCnv.h:58
LArCalibDigitContByteStreamCnv::m_byteStreamCnvSvc
ServiceHandle< IByteStreamCnvSvc > m_byteStreamCnvSvc
Definition: LArCalibDigitContByteStreamCnv.h:57
LArCalibDigitContByteStreamCnv::repSvcType
virtual long repSvcType() const override
Storage type and class ID.
Definition: LArCalibDigitContByteStreamCnv.h:50
LArCalibDigitContByteStreamCnv::m_tool
ToolHandle< BYTESTREAMTOOL > m_tool
Definition: LArCalibDigitContByteStreamCnv.h:55
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
LArCalibDigitContByteStreamCnv::createRepConst
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
Definition: LArCalibDigitContByteStreamCnv.cxx:111
LArCalibDigitContainer
Container class for LArCalibDigit.
Definition: LArCalibDigitContainer.h:19
IROBDataProviderSvc
Interface class for managing ROB for both online and offline.
Definition: IROBDataProviderSvc.h:23
RawEvent.h
IByteStreamCnvSvc
interface for bytestream conversion services
Definition: IByteStreamCnvSvc.h:18
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.
LArCalibDigitContByteStreamCnv
Definition: LArCalibDigitContByteStreamCnv.h:38
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
ReadCondHandleKey.h
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:48
LArCalibDigitContByteStreamCnv::LArCalibDigitContByteStreamCnv
LArCalibDigitContByteStreamCnv(ISvcLocator *svcloc)
Definition: LArCalibDigitContByteStreamCnv.cxx:26
SG::ReadCondHandleKey< LArCalibLineMapping >
LArCalibDigitContByteStreamCnv::~LArCalibDigitContByteStreamCnv
virtual ~LArCalibDigitContByteStreamCnv()
Definition: LArCalibDigitContByteStreamCnv.cxx:35
LArCalibDigitContByteStreamCnv::storageType
static long storageType()
Definition: LArCalibDigitContByteStreamCnv.h:51
LArCalibDigitContByteStreamCnv::m_onOffIdMappingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_onOffIdMappingKey
Definition: LArCalibDigitContByteStreamCnv.h:59
ServiceHandle< IROBDataProviderSvc >
LArOnOffIdMapping
Definition: LArOnOffIdMapping.h:20