ATLAS Offline Software
JepByteStreamV2Cnv.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_JEPBYTESTREAMV2CNV_H
6 #define TRIGT1CALOBYTESTREAM_JEPBYTESTREAMV2CNV_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 JepByteStreamV2Tool;
27 
34 public:
35  JepByteStreamV2Cnv(ISvcLocator* svcloc);
36 
37  virtual ~JepByteStreamV2Cnv();
38 
39  virtual StatusCode initialize() override;
41  virtual StatusCode createRepConst(DataObject* pObj, IOpaqueAddress*& pAddr) const override;
42 
43  // Storage type and class ID
44  virtual long repSvcType() const override { return i_repSvcType(); }
45  static long storageType();
46  static const CLID& classID();
47 
48 private:
50  ToolHandle<LVL1BS::JepByteStreamV2Tool> m_tool;
51 };
52 
53 } // end namespace
54 
55 #endif
LVL1BS::JepByteStreamV2Cnv
ByteStream converter for JEP container post LS1.
Definition: JepByteStreamV2Cnv.h:33
IByteStreamEventAccess
interface for accessing raw data .
Definition: IByteStreamEventAccess.h:17
LVL1BS::JepByteStreamV2Cnv::repSvcType
virtual long repSvcType() const override
Definition: JepByteStreamV2Cnv.h:44
LVL1BS::JepByteStreamV2Cnv::initialize
virtual StatusCode initialize() override
Definition: JepByteStreamV2Cnv.cxx:58
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
LVL1BS::JepByteStreamV2Cnv::m_tool
ToolHandle< LVL1BS::JepByteStreamV2Tool > m_tool
Tool that does the actual work.
Definition: JepByteStreamV2Cnv.h:50
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
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
LVL1BS::JepByteStreamV2Cnv::storageType
static long storageType()
Definition: JepByteStreamV2Cnv.cxx:50
LVL1BS::JepByteStreamV2Cnv::~JepByteStreamV2Cnv
virtual ~JepByteStreamV2Cnv()
Definition: JepByteStreamV2Cnv.cxx:39
LVL1BS
Definition: ZdcByteStreamReadV1V2Tool.h:47
LVL1BS::JepByteStreamV2Cnv::classID
static const CLID & classID()
Definition: JepByteStreamV2Cnv.cxx:45
LVL1BS::JepByteStreamV2Cnv::JepByteStreamV2Cnv
JepByteStreamV2Cnv(ISvcLocator *svcloc)
Definition: JepByteStreamV2Cnv.cxx:33
LVL1BS::JepByteStreamV2Cnv::createRepConst
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Create ByteStream from JEP Container.
Definition: JepByteStreamV2Cnv.cxx:68