ATLAS Offline Software
RoIBResultByteStreamCnv.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGT1RESULTBYTESTREAM_ROIBRESULTBYTESTREAMCNV_H
6 #define TRIGT1RESULTBYTESTREAM_ROIBRESULTBYTESTREAMCNV_H
7 
8 // Local includes
10 
11 // Athena includes
15 
16 // Gaudi includes
17 #include "GaudiKernel/Converter.h"
18 #include "GaudiKernel/ServiceHandle.h"
19 #include "GaudiKernel/ToolHandle.h"
20 
36 template< class ROBF >
38 
39 public:
41  RoIBResultByteStreamCnv( ISvcLocator* svcloc );
45  virtual StatusCode createObj( IOpaqueAddress* pAddr, DataObject*& pObj );
47  virtual StatusCode createRep( DataObject* pObj, IOpaqueAddress*& pAddr );
48 
50  virtual long repSvcType() const { return i_repSvcType(); }
52  static long storageType();
54  static const CLID& classID();
55 
56 private:
58  ToolHandle< RoIBResultByteStreamTool > m_tool;
64  bool m_isMT{false};
65 
66 }; // class RoIBResultByteStreamCnv
67 
68 // Include the implementation:
70 
71 #endif // TRIGT1RESULTBYTESTREAM_ROIBRESULTBYTESTREAMCNV_H
RoIBResultByteStreamCnv::m_ByteStreamCnvSvc
ServiceHandle< IByteStreamEventAccess > m_ByteStreamCnvSvc
Service used when writing the BS data.
Definition: RoIBResultByteStreamCnv.h:60
RoIBResultByteStreamCnv::RoIBResultByteStreamCnv
RoIBResultByteStreamCnv(ISvcLocator *svcloc)
Standard constructor.
RoIBResultByteStreamCnv::m_isMT
bool m_isMT
Flag if running in athenaMT to prevent calling deprecated methods.
Definition: RoIBResultByteStreamCnv.h:64
RoIBResultByteStreamCnv::classID
static const CLID & classID()
Function needed by the framework.
RoIBResultByteStreamCnv::repSvcType
virtual long repSvcType() const
Function needed by the framework.
Definition: RoIBResultByteStreamCnv.h:50
IByteStreamEventAccess.h
RoIBResultByteStreamTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
RoIBResultByteStreamCnv
ByteStream converter for the RoIBResult object.
Definition: RoIBResultByteStreamCnv.h:37
RoIBResultByteStreamCnv::storageType
static long storageType()
Function needed by the framework.
RoIBResultByteStreamCnv::m_robDataProviderSvc
ServiceHandle< IROBDataProviderSvc > m_robDataProviderSvc
Service used when reading the BS data.
Definition: RoIBResultByteStreamCnv.h:62
Converter
Definition: Converter.h:27
RoIBResultByteStreamCnv::createRep
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Function creating the multiple ROB fragments from the RoIBResult object.
RoIBResultByteStreamCnv::createObj
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Function creating the RoIBResult object from the multiple ROB fragments.
AthMessaging.h
RoIBResultByteStreamCnv::m_tool
ToolHandle< RoIBResultByteStreamTool > m_tool
Tool doing the actual conversion.
Definition: RoIBResultByteStreamCnv.h:58
RoIBResultByteStreamCnv.icc
IROBDataProviderSvc.h
ServiceHandle< IByteStreamEventAccess >
RoIBResultByteStreamCnv::initialize
virtual StatusCode initialize()
Function connecting to all the needed services/tools.