ATLAS Offline Software
HLTResultReader.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id$
14 #include "HLTResultReader.h"
26 
27 
33 HLT_END_TYPE_REGISTRATION(DataModelTest)
34 
35 
37 {
38  typedef TypeInfo_DataModelTest map;
39  static const std::string package_name;
40 };
41 
42 struct TypeInfo_EDM {
43  typedef HLT::TypeInformation::newlist
44  ::add<class_DataModelTest> ::go
45  ::done map;
46 };
47 
48 
50 
51 
52 namespace DMTest {
53 
54 
61  ISvcLocator *pSvcLocator)
62  : AthAlgorithm (name, pSvcLocator),
63  m_nav ("TestNav", this)
64 {
65  declareProperty ("ResultKey", m_resultKey = "HLTResult_HLT");
66  declareProperty ("Nav", m_nav);
67 }
68 
69 
74 {
75  ATH_CHECK( m_resultKey.initialize() );
76  ATH_CHECK( m_nav.retrieve() );
77  HLT::TypeMaps::registerFeatureContainer<DMTest::CVec,DMTest::CVec>();
78  HLT::TypeMaps::registerFeatureContainer<DMTest::CView,DMTest::CView>();
79  HLT::TypeMaps::registerType<DMTest::CAuxContainer>();
80  HLT::TypeMaps::registerFeatureContainer<DMTest::HVec,DMTest::HVec>();
81  HLT::TypeMaps::registerFeatureContainer<DMTest::HView,DMTest::HView>();
82  HLT::TypeMaps::registerType<DMTest::HAuxContainer>();
83  return StatusCode::SUCCESS;
84 }
85 
86 
91 {
93  m_nav->prepare();
94  if (!m_nav->deserialize (result->getNavigationResult()))
95  return StatusCode::FAILURE;
96  m_nav->reset();
97 
98  return StatusCode::SUCCESS;
99 }
100 
101 
106 {
107  return StatusCode::SUCCESS;
108 }
109 
110 
111 } // namespace DMTest
112 
DMTest::HLTResultReader::execute
virtual StatusCode execute() override
Algorithm event processing.
Definition: HLTResultReader.cxx:90
class_DataModelTest::package_name
static const std::string package_name
Definition: HLTResultReader.cxx:39
DMTest::CAuxContainer_v1
Definition: CAuxContainer_v1.h:28
DMTest::HLTResultReader::finalize
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
Definition: HLTResultReader.cxx:105
get_generator_info.result
result
Definition: get_generator_info.py:21
DMTest::HLTResultReader::m_nav
ToolHandle< HLT::Navigation > m_nav
Navigation object use to fill the result.
Definition: HLTResultReader.h:72
DMTest::HAuxContainer_v2
Definition: HAuxContainer_v2.h:28
H.h
Test for xAOD schema evolution.
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
initialize
void initialize()
Definition: run_EoverP.cxx:894
TypeInfo_EDM::map
HLT::TypeInformation::newlist ::add< class_DataModelTest >::go ::done map
Definition: HLTResultReader.cxx:45
DMTest::HLTResultReader::m_resultKey
SG::ReadHandleKey< HLT::HLTResult > m_resultKey
Handle to read the HLTResult object.
Definition: HLTResultReader.h:69
Holder.icc
CAuxContainer.h
Class used for testing xAOD data reading/writing.
DMTest::ATLAS_NOT_THREAD_SAFE
void setPluginLibrary ATLAS_NOT_THREAD_SAFE(const std::string &name, const std::string &lib)
Definition: setConverterLibrary.cxx:23
DMTest::C_v1
Definition: C_v1.h:29
HLTResult.h
HVec.h
CVec.h
Class used for testing xAOD data reading/writing.
DMTest::HLTResultReader::HLTResultReader
HLTResultReader(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: HLTResultReader.cxx:60
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
C.h
Class used for testing xAOD data reading/writing.
ViewVector
Identify view containers to be made persistent.
Definition: ViewVector.h:67
class_DataModelTest::map
TypeInfo_DataModelTest map
Definition: HLTResultReader.cxx:38
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
Navigation.h
HLT_END_TYPE_REGISTRATION
#define HLT_END_TYPE_REGISTRATION(name)
Definition: EDM_TypeInformation.h:36
class_DataModelTest
Definition: HLTResultReader.cxx:37
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
AthAlgorithm
Definition: AthAlgorithm.h:47
HAuxContainer.h
Test for xAOD schema evolution.
CView.h
Class used for testing ViewVector reading/writing.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
HLTNavDetails::HolderImp
This is an implementation class for all Holders It is templated with 2 arguments STORED which is type...
Definition: Holder.h:281
HLT_REGISTER_TYPE
#define HLT_REGISTER_TYPE(...)
Definition: EDM_TypeInformation.h:34
HLTResultReader.h
Test for serializing an xAOD object from bytestream.
HView.h
TypeInfo_EDM
Definition: HLTResultReader.cxx:42
HLT_BEGIN_TYPE_REGISTRATION
#define HLT_BEGIN_TYPE_REGISTRATION
Definition: EDM_TypeInformation.h:13
DMTest
Definition: B.h:23
DMTest::H_v2
Definition: H_v2.h:30