ATLAS Offline Software
Loading...
Searching...
No Matches
HLTResultReader.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
11
12
13#include "HLTResultReader.h"
28
29
36HLT_END_TYPE_REGISTRATION(DataModelTest)
37
38
40{
41 typedef TypeInfo_DataModelTest map;
42 static const std::string package_name;
43};
44
46 typedef HLT::TypeInformation::newlist
47 ::add<class_DataModelTest> ::go
48 ::done map;
49};
50
51
53
54
55namespace DMTest {
56
57
63HLTResultReader::HLTResultReader (const std::string &name,
64 ISvcLocator *pSvcLocator)
65 : AthAlgorithm (name, pSvcLocator),
66 m_nav ("TestNav", this)
67{
68 declareProperty ("ResultKey", m_resultKey = "HLTResult_HLT");
69 declareProperty ("Nav", m_nav);
70}
71
72
76StatusCode HLTResultReader::initialize ATLAS_NOT_THREAD_SAFE()
77{
78 ATH_CHECK( m_resultKey.initialize() );
79 ATH_CHECK( m_nav.retrieve() );
80 HLT::TypeMaps::registerFeatureContainer<DMTest::CVec,DMTest::CVec>();
81 HLT::TypeMaps::registerFeatureContainer<DMTest::CView,DMTest::CView>();
82 HLT::TypeMaps::registerType<DMTest::CAuxContainer>();
83 HLT::TypeMaps::registerFeatureContainer<DMTest::PVec,DMTest::PVec>();
84 HLT::TypeMaps::registerType<DMTest::PAuxContainer>();
85 HLT::TypeMaps::registerFeatureContainer<DMTest::HVec,DMTest::HVec>();
86 HLT::TypeMaps::registerFeatureContainer<DMTest::HView,DMTest::HView>();
87 HLT::TypeMaps::registerType<DMTest::HAuxContainer>();
88 return StatusCode::SUCCESS;
89}
90
91
96{
98 m_nav->prepare();
99 if (!m_nav->deserialize (result->getNavigationResult()))
100 return StatusCode::FAILURE;
101 m_nav->reset();
102
103 return StatusCode::SUCCESS;
104}
105
106
111{
112 return StatusCode::SUCCESS;
113}
114
115
116} // namespace DMTest
117
#define ATH_CHECK
Evaluate an expression and check for errors.
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
Class used for testing ViewVector reading/writing.
Class used for testing xAOD data reading/writing.
Test for xAOD schema evolution.
Test for xAOD schema evolution.
#define HLT_END_TYPE_REGISTRATION(name)
#define HLT_REGISTER_TYPE(...)
#define HLT_BEGIN_TYPE_REGISTRATION
Test for serializing an xAOD object from bytestream.
Class used for testing xAOD data reading/writing with packed containers.
Class used for testing xAOD data reading/writing with packed containers.
Class used for testing xAOD data reading/writing with packed containers.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ToolHandle< HLT::Navigation > m_nav
Navigation object use to fill the result.
HLTResultReader(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
virtual StatusCode execute() override
Algorithm event processing.
SG::ReadHandleKey< HLT::HLTResult > m_resultKey
Handle to read the HLTResult object.
This is an implementation class for all Holders It is templated with 2 arguments STORED which is type...
Definition Holder.h:328
Definition B.h:23
C_v1 C
Definition C.h:26
PVec_v1 PVec
Definition PVec.h:23
PAuxContainer_v1 PAuxContainer
StatusCode HLTResultReader::initialize ATLAS_NOT_THREAD_SAFE()
Algorithm initialization; called at the beginning of the job.
CVec_v1 CVec
Definition CVec.h:26
CView_v1 CView
Definition CView.h:26
CAuxContainer_v1 CAuxContainer
P_v1 P
Definition P.h:23
HLT::TypeInformation::newlist::add< class_DataModelTest >::go::done map
static const std::string package_name
TypeInfo_DataModelTest map