ATLAS Offline Software
Loading...
Searching...
No Matches
HLTResultCnv_p1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
11#include "GaudiKernel/ThreadLocalContext.h"
12
13using namespace HLT;
14
16 HLTResult_p1* pers, MsgStream &log )
17{
18
19 log << MSG::DEBUG << "HLTResultCnv_p1::transToPers called " << endmsg;
20
21 pers->m_headerResult = trans->m_headerResult ;
22 pers->m_chainsResult = trans->m_chainsResult ;
23
25 if (cache && cache->trigNavigationThinningSvc()) {
26 const EventContext& ctx = Gaudi::Hive::currentContext();
27 std::vector< unsigned int > temp;
28 if (cache->trigNavigationThinningSvc()->doSlimming (ctx, temp).isFailure()) {
29 log << MSG::ERROR << "HLTResultCnv_p1::transToPers: doSlimming failed." << endmsg;
30 }
31 pers->m_navigationResult = std::move(temp);
32 }
33 else {
35 }
36
37}
38
40 HLTResult* trans, MsgStream &log )
41{
42
43 log << MSG::DEBUG << "HLTResultCnv_p1::persToTrans called " << endmsg;
44
45 trans->m_headerResult = pers->m_headerResult ;
46 trans->m_chainsResult = pers->m_chainsResult ;
48
49}
#define endmsg
Define interface for doing TrigNavigation thinning.
void persToTrans(const HLTResult_p1 *persObj, HLTResult *transObj, MsgStream &log)
void transToPers(const HLTResult *transObj, HLTResult_p1 *persObj, MsgStream &log)
std::vector< uint32_t > m_chainsResult
std::vector< uint32_t > m_headerResult
std::vector< uint32_t > m_navigationResult
HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basic...
Definition HLTResult.h:51
std::vector< uint32_t > m_headerResult
the full payload, and sub-payloads
Definition HLTResult.h:476
std::vector< uint32_t > m_navigationResult
storage of navigation (serialized also)
Definition HLTResult.h:478
std::vector< uint32_t > m_chainsResult
storege of serialized chains
Definition HLTResult.h:477
virtual StatusCode doSlimming(const EventContext &ctx, std::vector< uint32_t > &slimmed_and_serialized) const =0
Return slimmed data for TrigNavigation.
Cache thinning decisions for converters.
const ITrigNavigationThinningSvc * trigNavigationThinningSvc() const
Return the TrigNavigation helper for this stream, or nullptr.
Helpers to retrieve the current thinning cache from the event context.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
const SG::ThinningCache * getThinningCache()
Retrieve the current thinning cache from the current event context.