ATLAS Offline Software
JepReadByteStreamV1V2Cnv.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_JEPREADBYTESTREAMV1V2CNV_H
6 #define TRIGT1CALOBYTESTREAM_JEPREADBYTESTREAMV1V2CNV_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;
19 class ISvcLocator;
20 class StatusCode;
21 
22 template <typename> class CnvFactory;
23 
24 
25 namespace LVL1BS {
26 
27 class JepByteStreamV1Tool;
28 class JepByteStreamV2Tool;
29 
37 template <typename Container>
39 
40 public:
41  JepReadByteStreamV1V2Cnv(ISvcLocator* svcloc);
42 
44 
45  virtual StatusCode initialize() override;
47  virtual StatusCode createObjConst (IOpaqueAddress* pAddr, DataObject*& pObj) 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::JepByteStreamV1Tool> m_tool1;
58  ToolHandle<LVL1BS::JepByteStreamV2Tool> m_tool2;
59 
62 };
63 
64 } // end namespace
65 
67 
68 #endif
LVL1BS::JepReadByteStreamV1V2Cnv::storageType
static long storageType()
LVL1BS::JepReadByteStreamV1V2Cnv::initialize
virtual StatusCode initialize() override
LVL1BS::JepReadByteStreamV1V2Cnv
ByteStream converter for JEP component containers which are unchanged post-LS1.
Definition: JepReadByteStreamV1V2Cnv.h:38
IByteStreamEventAccess
interface for accessing raw data .
Definition: IByteStreamEventAccess.h:17
LVL1BS::JepReadByteStreamV1V2Cnv::m_tool1
ToolHandle< LVL1BS::JepByteStreamV1Tool > m_tool1
Tool that does the actual work pre-LS1.
Definition: JepReadByteStreamV1V2Cnv.h:56
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
LVL1BS::JepReadByteStreamV1V2Cnv::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for reading bytestream.
Definition: JepReadByteStreamV1V2Cnv.h:61
LVL1BS::JepReadByteStreamV1V2Cnv::JepReadByteStreamV1V2Cnv
JepReadByteStreamV1V2Cnv(ISvcLocator *svcloc)
IROBDataProviderSvc
Interface class for managing ROB for both online and offline.
Definition: IROBDataProviderSvc.h:25
LVL1BS::JepReadByteStreamV1V2Cnv::~JepReadByteStreamV1V2Cnv
virtual ~JepReadByteStreamV1V2Cnv()
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::JepReadByteStreamV1V2Cnv::classID
static const CLID & classID()
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
JepReadByteStreamV1V2Cnv.icc
LVL1BS::JepReadByteStreamV1V2Cnv::m_tool2
ToolHandle< LVL1BS::JepByteStreamV2Tool > m_tool2
Tool that does the actual work post-LS1.
Definition: JepReadByteStreamV1V2Cnv.h:58
LVL1BS::JepReadByteStreamV1V2Cnv::createObjConst
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create Container from ByteStream.
LVL1BS::JepReadByteStreamV1V2Cnv::repSvcType
virtual long repSvcType() const override
Definition: JepReadByteStreamV1V2Cnv.h:50
LVL1BS
Definition: ZdcByteStreamReadV1V2Tool.h:47
ServiceHandle< IROBDataProviderSvc >