ATLAS Offline Software
HLTResultByteStreamTool.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 /**********************************************************************************
6  * @Project: HLT Steering
7  * @Package: HLTResultByteStream
8  * @class : HLTResultByteStreamTool
9  *
10  * @brief Gaudi bytestream Converter tool for the HLTResult class
11  **********************************************************************************/
12 
13 #ifndef TrigHLTResultByteStreamTool_h
14 #define TrigHLTResultByteStreamTool_h
15 
16 /* general stuff */
17 #include <stdint.h>
18 #include <map>
19 #include <string>
21 
22 /* To be able to use OFFLINE_FRAGMENTS_NAMESPACE */
24 #include "ByteStreamData/ROBData.h"
26 
27 /* the RDO structure */
29 #include "HLTSrcIdMap.h"
30 
31 #include "eformat/SourceIdentifier.h"
32 
34 
35 namespace HLT {
36 
44 
45  public:
46  HLTResultByteStreamTool( const std::string& type, const std::string& name,
47  const IInterface* parent ) ;
48 
49  static const InterfaceID& interfaceID( ) ;
50 
55  std::string objName);
56 
61  std::string objName);
62 
63  private:
64 
65  Gaudi::Property<std::map<std::string, uint32_t>> m_robIDMap{
66  this, "HLTResultRobIdMap", {
67  {"HLTResult_L2", eformat::helper::SourceIdentifier(eformat::TDAQ_LVL2, 0).code()},
68  {"HLTResult_EF", eformat::helper::SourceIdentifier(eformat::TDAQ_EVENT_FILTER, 0).code()},
69  {"HLTResult_HLT", eformat::helper::SourceIdentifier(eformat::TDAQ_HLT, 0).code()}
70  }, "Map of HLTResult names to ROB IDs"};
71 
73  };
74 }
75 
76 inline const InterfaceID& HLT::HLTResultByteStreamTool::interfaceID()
77 {
78  static const InterfaceID IID("HLTResultByteStreamTool", 1, 0);
79  return IID;
80 }
81 
82 #endif
RawEventWrite
OFFLINE_FRAGMENTS_NAMESPACE_WRITE::FullEventFragment RawEventWrite
data type for writing raw event
Definition: RawEvent.h:39
get_generator_info.result
result
Definition: get_generator_info.py:21
FullEventAssembler
Template class for assembling a full atlas raw event from subfragments.
Definition: FullEventAssembler.h:40
HLT::HLTResultByteStreamTool
Definition: HLTResultByteStreamTool.h:43
ROBData.h
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
HLT::HLTResultByteStreamTool::m_fea
FullEventAssembler< HLTSrcIdMap > m_fea
Definition: HLTResultByteStreamTool.h:72
HLT::HLTResultByteStreamTool::m_robIDMap
Gaudi::Property< std::map< std::string, uint32_t > > m_robIDMap
Definition: HLTResultByteStreamTool.h:65
HLTResult.h
IROBDataProviderSvc
Interface class for managing ROB for both online and offline.
Definition: IROBDataProviderSvc.h:25
HLT::HLTResultByteStreamTool::convert
StatusCode convert(IROBDataProviderSvc &dataProvider, HLTResult *&result, std::string objName)
convert ROBData to HLTResult this function should be called from createObj
Definition: HLTResultByteStreamTool.cxx:58
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
RawEvent.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
HLT::HLTResult
HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basic...
Definition: HLTResult.h:57
HLT::HLTResultByteStreamTool::interfaceID
static const InterfaceID & interfaceID()
std Gaudi interface
Definition: HLTResultByteStreamTool.h:76
HLTSrcIdMap.h
FullEventAssembler.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
HLT::HLTResultByteStreamTool::HLTResultByteStreamTool
HLTResultByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
std Gaudi tool constructor
Definition: HLTResultByteStreamTool.cxx:13
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
re
const boost::regex re(r_e)
AthAlgTool
Definition: AthAlgTool.h:26