ATLAS Offline Software
JepByteStreamCnv.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_JEPBYTESTREAMCNV_H
6 #define TRIGT1CALOBYTESTREAM_JEPBYTESTREAMCNV_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;
17 class IOpaqueAddress;
18 class ISvcLocator;
19 class StatusCode;
20 
21 template <typename> class CnvFactory;
22 
23 
24 namespace LVL1BS {
25 
26 class JepByteStreamTool;
27 
34 
35  friend class CnvFactory<JepByteStreamCnv>;
36 
37 protected:
38 
39  JepByteStreamCnv(ISvcLocator* svcloc);
40 
41 public:
42 
43  virtual ~JepByteStreamCnv();
44 
45  virtual StatusCode initialize() override;
47  virtual StatusCode createRepConst (DataObject* pObj, IOpaqueAddress*& pAddr) const override;
48 
49  // Storage type and class ID
50  virtual long repSvcType() const override { return i_repSvcType(); }
51  static long storageType();
52  static const CLID& classID();
53 
54 private:
56  ToolHandle<LVL1BS::JepByteStreamTool> m_tool;
57 };
58 
59 } // end namespace
60 
61 #endif
LVL1BS::JepByteStreamCnv::m_tool
ToolHandle< LVL1BS::JepByteStreamTool > m_tool
Tool that does the actual work.
Definition: JepByteStreamCnv.h:56
LVL1BS::JepByteStreamCnv::classID
static const CLID & classID()
Definition: JepByteStreamCnv.cxx:45
LVL1BS::JepByteStreamCnv::initialize
virtual StatusCode initialize() override
Definition: JepByteStreamCnv.cxx:58
IByteStreamEventAccess
interface for accessing raw data .
Definition: IByteStreamEventAccess.h:17
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
LVL1BS::JepByteStreamCnv::~JepByteStreamCnv
virtual ~JepByteStreamCnv()
Definition: JepByteStreamCnv.cxx:39
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1BS::JepByteStreamCnv::repSvcType
virtual long repSvcType() const override
Definition: JepByteStreamCnv.h:50
AthConstConverter.h
Gaudi converter base class with const interfaces.
LVL1BS::JepByteStreamTool
Tool to perform ROB fragments to jet elements, jet hits and energy sums, and JEP container to raw dat...
Definition: JepByteStreamTool.h:57
CnvFactory
Abstract factory to create the converter.
Definition: ToyConverter.h:16
LVL1BS::JepByteStreamCnv::JepByteStreamCnv
JepByteStreamCnv(ISvcLocator *svcloc)
Definition: JepByteStreamCnv.cxx:33
LVL1BS::JepByteStreamCnv::storageType
static long storageType()
Definition: JepByteStreamCnv.cxx:50
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
LVL1BS::JepByteStreamCnv::createRepConst
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Create ByteStream from JEP Container.
Definition: JepByteStreamCnv.cxx:68
LVL1BS
Definition: ZdcByteStreamReadV1V2Tool.h:47
LVL1BS::JepByteStreamCnv
ByteStream converter for JEP container.
Definition: JepByteStreamCnv.h:33