ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigSteer
TrigHLTResultByteStream
src
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>
20
#include "
AthenaBaseComps/AthAlgTool.h
"
21
22
/* To be able to use OFFLINE_FRAGMENTS_NAMESPACE */
23
#include "
ByteStreamData/RawEvent.h
"
24
#include "
ByteStreamData/ROBData.h
"
25
#include "
ByteStreamCnvSvcBase/FullEventAssembler.h
"
26
27
/* the RDO structure */
28
#include "
TrigSteeringEvent/HLTResult.h
"
29
#include "
HLTSrcIdMap.h
"
30
31
#include "eformat/SourceIdentifier.h"
32
33
class
IROBDataProviderSvc
;
34
35
namespace
HLT
{
36
43
class
HLTResultByteStreamTool
:
public
AthAlgTool
{
44
45
public
:
46
HLTResultByteStreamTool
(
const
std::string&
type
,
const
std::string& name,
47
const
IInterface* parent ) ;
48
49
static
const
InterfaceID&
interfaceID
( ) ;
50
54
StatusCode
convert
(
IROBDataProviderSvc
& dataProvider,
HLTResult
*& result,
55
std::string objName);
56
60
StatusCode
convert
(
HLTResult
* result,
RawEventWrite
*
re
,
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
72
FullEventAssembler<HLTSrcIdMap>
m_fea
;
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
re
const std::regex re(r_e)
AthAlgTool.h
FullEventAssembler.h
HLTResult.h
HLTSrcIdMap.h
ROBData.h
Defines the ROB data entity. The ROB data is an abstract entity that is used to decouple the raw even...
RawEvent.h
RawEventWrite
OFFLINE_FRAGMENTS_NAMESPACE_WRITE::FullEventFragment RawEventWrite
data type for writing raw event
Definition
RawEvent.h:39
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
FullEventAssembler
Template class for assembling a full atlas raw event from subfragments.
Definition
FullEventAssembler.h:38
HLT::HLTResultByteStreamTool::HLTResultByteStreamTool
HLTResultByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
std Gaudi tool constructor
Definition
HLTResultByteStreamTool.cxx:13
HLT::HLTResultByteStreamTool::m_robIDMap
Gaudi::Property< std::map< std::string, uint32_t > > m_robIDMap
Definition
HLTResultByteStreamTool.h:65
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::HLTResultByteStreamTool::m_fea
FullEventAssembler< HLTSrcIdMap > m_fea
Definition
HLTResultByteStreamTool.h:72
HLT::HLTResultByteStreamTool::interfaceID
static const InterfaceID & interfaceID()
std Gaudi interface
Definition
HLTResultByteStreamTool.h:76
HLT::HLTResult
HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basic...
Definition
HLTResult.h:49
IROBDataProviderSvc
Interface class for managing ROB for both online and offline.
Definition
IROBDataProviderSvc.h:21
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition
HLTResultReader.h:26
type
Generated on
for ATLAS Offline Software by
1.17.0