ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigSteeringEventTPCnv
src
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
5
#include "
TrigSteeringEvent/HLTResult.h
"
6
#include "
TrigSteeringEventTPCnv/HLTResult_p1.h
"
7
#include "
TrigSteeringEventTPCnv/HLTResultCnv_p1.h
"
8
#include "
AthenaKernel/getThinningCache.h
"
9
#include "
AthenaKernel/ThinningCache.h
"
10
#include "
AthenaKernel/ITrigNavigationThinningSvc.h
"
11
#include "GaudiKernel/ThreadLocalContext.h"
12
13
using namespace
HLT
;
14
15
void
HLTResultCnv_p1::transToPers
(
const
HLT::HLTResult
* trans,
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
= std::move(
temp
);
32
}
33
else
{
34
pers->
m_navigationResult
= trans->
m_navigationResult
;
35
}
36
37
}
38
39
void
HLTResultCnv_p1::persToTrans
(
const
HLT::HLTResult_p1
* pers,
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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
HLTResultCnv_p1.h
HLTResult.h
HLTResult_p1.h
ITrigNavigationThinningSvc.h
Define interface for doing TrigNavigation thinning.
ThinningCache.h
HLT::HLTResultCnv_p1::persToTrans
void persToTrans(const HLTResult_p1 *persObj, HLTResult *transObj, MsgStream &log)
Definition
HLTResultCnv_p1.cxx:39
HLT::HLTResultCnv_p1::transToPers
void transToPers(const HLTResult *transObj, HLTResult_p1 *persObj, MsgStream &log)
Definition
HLTResultCnv_p1.cxx:15
HLT::HLTResult_p1
Definition
HLTResult_p1.h:34
HLT::HLTResult_p1::m_chainsResult
std::vector< uint32_t > m_chainsResult
Definition
HLTResult_p1.h:46
HLT::HLTResult_p1::m_headerResult
std::vector< uint32_t > m_headerResult
Definition
HLTResult_p1.h:45
HLT::HLTResult_p1::m_navigationResult
std::vector< uint32_t > m_navigationResult
Definition
HLTResult_p1.h:47
HLT::HLTResult
HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basic...
Definition
HLTResult.h:49
HLT::HLTResult::m_headerResult
std::vector< uint32_t > m_headerResult
the full payload, and sub-payloads
Definition
HLTResult.h:474
HLT::HLTResult::m_navigationResult
std::vector< uint32_t > m_navigationResult
storage of navigation (serialized also)
Definition
HLTResult.h:476
HLT::HLTResult::m_chainsResult
std::vector< uint32_t > m_chainsResult
storege of serialized chains
Definition
HLTResult.h:475
SG::ThinningCache
Cache thinning decisions for converters.
Definition
ThinningCache.h:48
getThinningCache.h
Helpers to retrieve the current thinning cache from the event context.
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition
HLTResultReader.h:26
SG::getThinningCache
const SG::ThinningCache * getThinningCache()
Retrieve the current thinning cache from the current event context.
Definition
getThinningCache.cxx:41
temp
Definition
JetEventDict.h:21
Generated on
for ATLAS Offline Software by
1.17.0