ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
DataModelTest
DataModelTestDataRead
src
HLTResultReader.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
11
12
13
#include "
HLTResultReader.h
"
14
#include "
DataModelTestDataCommon/CVec.h
"
15
#include "
DataModelTestDataCommon/CView.h
"
16
#include "
DataModelTestDataCommon/C.h
"
17
#include "
DataModelTestDataCommon/CAuxContainer.h
"
18
#include "
DataModelTestDataCommon/PVec.h
"
19
#include "
DataModelTestDataCommon/P.h
"
20
#include "
DataModelTestDataCommon/PAuxContainer.h
"
21
#include "
DataModelTestDataRead/HVec.h
"
22
#include "
DataModelTestDataRead/HView.h
"
23
#include "
DataModelTestDataRead/H.h
"
24
#include "
DataModelTestDataRead/HAuxContainer.h
"
25
#include "
TrigNavigation/Navigation.h
"
26
#include "
TrigNavigation/Holder.icc
"
27
#include "
TrigSteeringEvent/HLTResult.h
"
28
#include "
TrigStorageDefinitions/EDM_TypeInformation.h
"
29
30
31
HLT_BEGIN_TYPE_REGISTRATION
32
HLT_REGISTER_TYPE
(
DMTest::C
,
DMTest::CVec
,
DMTest::CVec
,
DMTest::CAuxContainer
)
33
HLT_REGISTER_TYPE
(
DMTest::C
,
DMTest::CView
,
DMTest::CView
,
DMTest::CAuxContainer
)
34
HLT_REGISTER_TYPE
(
DMTest::P
,
DMTest::PVec
,
DMTest::PVec
,
DMTest::PAuxContainer
)
35
HLT_REGISTER_TYPE
(
DMTest::H
,
DMTest::HVec
,
DMTest::HVec
,
DMTest::HAuxContainer
)
36
HLT_REGISTER_TYPE
(
DMTest::H
,
DMTest::HView
,
DMTest::HView
,
DMTest::HAuxContainer
)
37
HLT_END_TYPE_REGISTRATION
(DataModelTest)
38
39
40
struct
TypeInfo_EDM
{
41
using
map
= TypeInfo_DataModelTest;
42
};
43
44
45
using
HLTNavDetails::HolderImp
;
46
47
48
namespace
DMTest
{
49
50
56
HLTResultReader::HLTResultReader
(
const
std::string &name,
57
ISvcLocator *pSvcLocator)
58
:
AthAlgorithm
(name, pSvcLocator),
59
m_nav
(
"TestNav"
, this)
60
{
61
declareProperty
(
"ResultKey"
,
m_resultKey
=
"HLTResult_HLT"
);
62
declareProperty
(
"Nav"
,
m_nav
);
63
}
64
65
69
StatusCode HLTResultReader::initialize
ATLAS_NOT_THREAD_SAFE
()
70
{
71
ATH_CHECK
( m_resultKey.initialize() );
72
ATH_CHECK
( m_nav.retrieve() );
73
HLT::TypeMaps::registerFeatureContainer<DMTest::CVec,DMTest::CVec>();
74
HLT::TypeMaps::registerFeatureContainer<DMTest::CView,DMTest::CView>();
75
HLT::TypeMaps::registerType<DMTest::CAuxContainer>();
76
HLT::TypeMaps::registerFeatureContainer<DMTest::PVec,DMTest::PVec>();
77
HLT::TypeMaps::registerType<DMTest::PAuxContainer>();
78
HLT::TypeMaps::registerFeatureContainer<DMTest::HVec,DMTest::HVec>();
79
HLT::TypeMaps::registerFeatureContainer<DMTest::HView,DMTest::HView>();
80
HLT::TypeMaps::registerType<DMTest::HAuxContainer>();
81
return
StatusCode::SUCCESS;
82
}
83
84
88
StatusCode
HLTResultReader::execute
(
const
EventContext& ctx)
89
{
90
SG::ReadHandle<HLT::HLTResult>
result (
m_resultKey
, ctx);
91
m_nav
->prepare();
92
if
(!
m_nav
->deserialize (result->getNavigationResult()))
93
return
StatusCode::FAILURE;
94
m_nav
->reset();
95
96
return
StatusCode::SUCCESS;
97
}
98
99
103
StatusCode
HLTResultReader::finalize
()
104
{
105
return
StatusCode::SUCCESS;
106
}
107
108
109
}
// namespace DMTest
110
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
CAuxContainer.h
Class used for testing xAOD data reading/writing.
CVec.h
Class used for testing xAOD data reading/writing.
CView.h
Class used for testing ViewVector reading/writing.
C.h
Class used for testing xAOD data reading/writing.
HAuxContainer.h
Test for xAOD schema evolution.
HVec.h
HView.h
H.h
Test for xAOD schema evolution.
EDM_TypeInformation.h
HLT_REGISTER_TYPE
#define HLT_REGISTER_TYPE(OBJECT, FEATURE, CONTAINER,...)
Register an HLT type with optional Aux container.
Definition
EDM_TypeInformation.h:24
HLT_END_TYPE_REGISTRATION
#define HLT_END_TYPE_REGISTRATION(name)
Definition
EDM_TypeInformation.h:27
HLT_BEGIN_TYPE_REGISTRATION
#define HLT_BEGIN_TYPE_REGISTRATION
Definition
EDM_TypeInformation.h:13
HLTResultReader.h
Test for serializing an xAOD object from bytestream.
HLTResult.h
Holder.icc
Navigation.h
PAuxContainer.h
Class used for testing xAOD data reading/writing with packed containers.
PVec.h
Class used for testing xAOD data reading/writing with packed containers.
P.h
Class used for testing xAOD data reading/writing with packed containers.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
AthCommonAlgorithm< Gaudi::Algorithm >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition
AthCommonDataStore.h:145
DMTest::HLTResultReader::m_nav
ToolHandle< HLT::Navigation > m_nav
Navigation object use to fill the result.
Definition
HLTResultReader.h:72
DMTest::HLTResultReader::HLTResultReader
HLTResultReader(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
HLTResultReader.cxx:56
DMTest::HLTResultReader::finalize
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
Definition
HLTResultReader.cxx:103
DMTest::HLTResultReader::execute
virtual StatusCode execute(const EventContext &ctx) override
Algorithm event processing.
Definition
HLTResultReader.cxx:88
DMTest::HLTResultReader::m_resultKey
SG::ReadHandleKey< HLT::HLTResult > m_resultKey
Handle to read the HLTResult object.
Definition
HLTResultReader.h:69
HLTNavDetails::HolderImp
This is an implementation class for all Holders It is templated with 2 arguments STORED which is type...
Definition
Holder.h:329
SG::ReadHandle
Definition
StoreGate/StoreGate/ReadHandle.h:67
DMTest
Definition
B.h:23
DMTest::C
C_v1 C
Definition
C.h:26
DMTest::HVec
HVec_v2 HVec
Definition
DataModelTestDataRead/DataModelTestDataRead/HVec.h:26
DMTest::PVec
PVec_v1 PVec
Definition
PVec.h:23
DMTest::PAuxContainer
PAuxContainer_v1 PAuxContainer
Definition
PAuxContainer.h:23
DMTest::ATLAS_NOT_THREAD_SAFE
StatusCode HLTResultReader::initialize ATLAS_NOT_THREAD_SAFE()
Algorithm initialization; called at the beginning of the job.
Definition
HLTResultReader.cxx:69
DMTest::HAuxContainer
HAuxContainer_v2 HAuxContainer
Definition
DataModelTestDataRead/DataModelTestDataRead/HAuxContainer.h:26
DMTest::CVec
CVec_v1 CVec
Definition
CVec.h:26
DMTest::CView
CView_v1 CView
Definition
CView.h:26
DMTest::H
H_v2 H
Definition
DataModelTestDataRead/DataModelTestDataRead/H.h:26
DMTest::CAuxContainer
CAuxContainer_v1 CAuxContainer
Definition
CAuxContainer.h:26
DMTest::HView
HView_v2 HView
Definition
DataModelTestDataRead/DataModelTestDataRead/HView.h:26
DMTest::P
P_v1 P
Definition
P.h:23
TypeInfo_EDM
Definition
HLTResultReader.cxx:40
TypeInfo_EDM::map
TypeInfo_DataModelTest map
Definition
HLTResultReader.cxx:41
Generated on
for ATLAS Offline Software by
1.17.0