40 return StatusCode::FAILURE;
49 ToolHandle<ITrigSerializeConvHelper> trigCnvHelper(
"TrigSerializeConvHelper",
this);
52 return StatusCode::SUCCESS;
58 const EventContext& ctx = Gaudi::Hive::currentContext();
80 return StatusCode::SUCCESS;
94 if ( !cresult.get() ) {
96 return StatusCode::SUCCESS;
99 ATH_MSG_DEBUG(
"HLTResult is level=" << cresult->getHLTLevel() );
101 const std::vector<uint32_t>& navData = cresult->getNavigationResult();
102 if ( !navData.empty() ) {
103 ATH_MSG_DEBUG(
"Navigation payload obtained from " << key <<
" has size " << navData.size() );
106 ATH_MSG_WARNING(
"Navigation payload obtained from " << key <<
" has size 0" );
110 ATH_MSG_DEBUG(
"Merging L2 and EF navigation structures for " << key );
131 auto result = std::make_unique<HLT::HLTResult>(*cresult);
133 result->getNavigationResult().clear();
134 bool status = navTool.
serialize(result->getNavigationResult(), result->getNavigationResultCuts());
135 ATH_MSG_DEBUG(
"New serialized navigation for " << keyOut <<
" has size " << result->getNavigationResult().size() );
139 return StatusCode(status);
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual bool serialize(std::vector< uint32_t > &output) const
method serizlizes the navigation structure The structure is serrizlized in following order ....
bool merge(const NavigationCore &l2)
attemtps to merge two trees
virtual void prepare()
prepapres the navigation for next event
bool deserialize(const std::vector< uint32_t > &input)
The Navigation class, organizes TriggerElements into the tree structure.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())