ATLAS Offline Software
JepRoiByteStreamCnv.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 TRIGT1CALOBYTESTREAM_JEPROIBYTESTREAMCNV_H
6 #define TRIGT1CALOBYTESTREAM_JEPROIBYTESTREAMCNV_H
7 
8 #include <string>
9 
11 #include "GaudiKernel/ClassID.h"
12 #include "GaudiKernel/ServiceHandle.h"
13 #include "GaudiKernel/ToolHandle.h"
14 
15 class DataObject;
16 class IOpaqueAddress;
17 class ISvcLocator;
18 class StatusCode;
19 
20 template <typename> class CnvFactory;
21 
22 
23 namespace LVL1BS {
24 
26 
33 
34  friend class CnvFactory<JepRoiByteStreamCnv>;
35 
36 protected:
37 
38  JepRoiByteStreamCnv(ISvcLocator* svcloc);
39 
40 public:
41 
42  virtual ~JepRoiByteStreamCnv();
43 
44  virtual StatusCode initialize() override;
46  virtual StatusCode createRepConst (DataObject* pObj, IOpaqueAddress*& pAddr) const override;
47 
48  // Storage type and class ID
49  virtual long repSvcType() const override { return i_repSvcType(); }
50  static long storageType();
51  static const CLID& classID();
52 
53 private:
55  ToolHandle<LVL1BS::JepRoiByteStreamTool> m_tool;
56 };
57 
58 } // end namespace
59 
60 #endif
LVL1BS::JepRoiByteStreamCnv::JepRoiByteStreamCnv
JepRoiByteStreamCnv(ISvcLocator *svcloc)
Definition: JepRoiByteStreamCnv.cxx:32
LVL1BS::JepRoiByteStreamCnv::m_tool
ToolHandle< LVL1BS::JepRoiByteStreamTool > m_tool
Tool that does the actual work.
Definition: JepRoiByteStreamCnv.h:55
LVL1BS::JepRoiByteStreamCnv::createRepConst
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Create ByteStream from JEP Container.
Definition: JepRoiByteStreamCnv.cxx:67
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
LVL1BS::JepRoiByteStreamCnv::initialize
virtual StatusCode initialize() override
Definition: JepRoiByteStreamCnv.cxx:57
LVL1BS::JepRoiByteStreamCnv::~JepRoiByteStreamCnv
virtual ~JepRoiByteStreamCnv()
Definition: JepRoiByteStreamCnv.cxx:38
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.
LVL1BS::JepRoiByteStreamCnv::classID
static const CLID & classID()
Definition: JepRoiByteStreamCnv.cxx:44
CnvFactory
Abstract factory to create the converter.
Definition: ToyConverter.h:16
LVL1BS::JepRoiByteStreamCnv
ByteStream converter for JEP RoI container.
Definition: JepRoiByteStreamCnv.h:32
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
LVL1BS::JepRoiByteStreamTool
Tool to perform ROB fragments to JEM RoI and CMM RoI, and JEP RoI container to raw data conversions.
Definition: JepRoiByteStreamTool.h:53
LVL1BS
Definition: ZdcByteStreamReadV1V2Tool.h:47
LVL1BS::JepRoiByteStreamCnv::repSvcType
virtual long repSvcType() const override
Definition: JepRoiByteStreamCnv.h:49
LVL1BS::JepRoiByteStreamCnv::storageType
static long storageType()
Definition: JepRoiByteStreamCnv.cxx:49