ATLAS Offline Software
HLTResultCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #include "GaudiKernel/ThreadLocalContext.h"
12 
13 using 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 
24  const SG::ThinningCache* cache = SG::getThinningCache();
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 = 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 ;
47  trans->m_navigationResult = pers->m_navigationResult ;
48 
49 }
temp
Definition: JetEventDict.h:21
HLTResultCnv_p1.h
ITrigNavigationThinningSvc.h
Define interface for doing TrigNavigation thinning.
SG::ThinningCache::trigNavigationThinningSvc
const ITrigNavigationThinningSvc * trigNavigationThinningSvc() const
Return the TrigNavigation helper for this stream, or nullptr.
Definition: ThinningCache.cxx:112
HLT::HLTResult_p1
Definition: HLTResult_p1.h:47
HLTResult.h
HLT::HLTResult::m_chainsResult
std::vector< uint32_t > m_chainsResult
storege of serialized chains
Definition: HLTResult.h:483
HLTResult_p1.h
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
getThinningCache.h
Helpers to retrieve the current thinning cache from the event context.
HLT::HLTResult_p1::m_headerResult
std::vector< uint32_t > m_headerResult
Definition: HLTResult_p1.h:71
HLT::HLTResult
HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basic...
Definition: HLTResult.h:57
SG::getThinningCache
const SG::ThinningCache * getThinningCache(const EventContext &ctx)
Retrieve the current thinning cache from the event context.
Definition: getThinningCache.cxx:28
HLT::HLTResult::m_navigationResult
std::vector< uint32_t > m_navigationResult
storage of navigation (serialized also)
Definition: HLTResult.h:484
ITrigNavigationThinningSvc::doSlimming
virtual StatusCode doSlimming(const EventContext &ctx, std::vector< uint32_t > &slimmed_and_serialized) const =0
Return slimmed data for TrigNavigation.
HLT::HLTResult::m_headerResult
std::vector< uint32_t > m_headerResult
the full payload, and sub-payloads
Definition: HLTResult.h:482
HLT::HLTResult_p1::m_navigationResult
std::vector< uint32_t > m_navigationResult
Definition: HLTResult_p1.h:73
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
HLT::HLTResultCnv_p1::persToTrans
void persToTrans(const HLTResult_p1 *persObj, HLTResult *transObj, MsgStream &log)
Definition: HLTResultCnv_p1.cxx:39
SG::ThinningCache
Cache thinning decisions for converters.
Definition: ThinningCache.h:48
HLT::HLTResult_p1::m_chainsResult
std::vector< uint32_t > m_chainsResult
Definition: HLTResult_p1.h:72
HLT::HLTResultCnv_p1::transToPers
void transToPers(const HLTResult *transObj, HLTResult_p1 *persObj, MsgStream &log)
Definition: HLTResultCnv_p1.cxx:15
ThinningCache.h