ATLAS Offline Software
HLTResultByteStreamCnv.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigHLTResultByteStreamCnv_h
6 #define TrigHLTResultByteStreamCnv_h
7 
8 #include <stdint.h>
9 #include <map>
10 /**********************************************************************************
11  * @Project: HLT Steering
12  * @Package: HLTResultByteStream
13  * @class : HLTResultByteStreamCnv
14  *
15  * @brief Gaudi bytestream Converter for the HLTResult class
16  *
17  *
18  * File and Version Information:
19  **********************************************************************************/
20 
21 #include <string>
22 
23 #include "GaudiKernel/Converter.h"
24 #include "GaudiKernel/ToolHandle.h"
25 #include "GaudiKernel/ServiceHandle.h"
29 
30 // forward declarations
31 class DataObject;
32 class StatusCode;
33 class IAddressCreator;
34 
35 class MsgStream;
36 
37 
38 namespace HLT {
39 
40  class HLTResultByteStreamTool;
41 
42 
70 
71  public:
72  HLTResultByteStreamCnv(ISvcLocator* svcloc);
73 
74  public:
75 
76  virtual StatusCode initialize();
77  virtual StatusCode finalize();
78 
79  virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj);
80  virtual StatusCode createRep(DataObject* pObj, IOpaqueAddress*& pAddr);
81 
82  static long storageType();
83  static const CLID& classID();
84 
85  long repSvcType() const { return i_repSvcType(); }
86 
87  private:
88 
89  MsgStream* m_log;
90 
91  ToolHandle< HLTResultByteStreamTool > m_tool ;
92 
94 
96 
97  };
98 }
99 
100 #endif
HLT::HLTResultByteStreamCnv::finalize
virtual StatusCode finalize()
Gaudi finalize.
Definition: HLTResultByteStreamCnv.cxx:55
HLT::HLTResultByteStreamCnv::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Gaudi ROB helper.
Definition: HLTResultByteStreamCnv.h:95
HLT::HLTResultByteStreamCnv::m_ByteStreamEventAccess
ServiceHandle< IByteStreamEventAccess > m_ByteStreamEventAccess
Gaudi helper.
Definition: HLTResultByteStreamCnv.h:93
HLT::HLTResultByteStreamCnv
Gaudi bytestream Converter for the HLTResult class.
Definition: HLTResultByteStreamCnv.h:69
HLT::HLTResultByteStreamCnv::createObj
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
create RDO (HLTResult) from bytestream
Definition: HLTResultByteStreamCnv.cxx:148
IByteStreamEventAccess.h
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HLT::HLTResultByteStreamCnv::storageType
static long storageType()
storageType
Definition: HLTResultByteStreamCnv.cxx:50
ByteStreamAddress.h
HLT::HLTResultByteStreamCnv::createRep
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
create bytestream from RDOs (HLTResult)
Definition: HLTResultByteStreamCnv.cxx:174
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
HLT::HLTResultByteStreamCnv::m_tool
ToolHandle< HLTResultByteStreamTool > m_tool
tool for conversion work
Definition: HLTResultByteStreamCnv.h:91
Converter
Definition: Converter.h:27
HLT::HLTResultByteStreamCnv::classID
static const CLID & classID()
CLID.
Definition: HLTResultByteStreamCnv.cxx:45
HLT::HLTResultByteStreamCnv::m_log
MsgStream * m_log
std message stream
Definition: HLTResultByteStreamCnv.h:89
HLT::HLTResultByteStreamCnv::repSvcType
long repSvcType() const
return repSvcType
Definition: HLTResultByteStreamCnv.h:85
HLT::HLTResultByteStreamCnv::initialize
virtual StatusCode initialize()
Gaudi initialize.
Definition: HLTResultByteStreamCnv.cxx:65
IROBDataProviderSvc.h
HLT::HLTResultByteStreamCnv::HLTResultByteStreamCnv
HLTResultByteStreamCnv(ISvcLocator *svcloc)
std Gaudi converter constructor
Definition: HLTResultByteStreamCnv.cxx:34
ServiceHandle< IByteStreamEventAccess >