ATLAS Offline Software
TrigDecisionCnv_p5.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 namespace {
10  const DataLinkCnv_p2<DataLink<HLT::HLTResult> > dataLinkConverter;
11 }
12 
13 using namespace TrigDec;
14 
15 
17  TrigDecision_p5* pers, MsgStream &log) const
18 {
19 
20  log << MSG::DEBUG << "TrigDecisionCnv_p5::transToPers called " << trans << " " << pers << endmsg;
21 
22  pers->m_configMasterKey = trans->masterKey();
23  pers->m_bgCode = trans->BGCode();
24 
26 
27  DataLink<HLT::HLTResult> l2_result = trans->getL2ResultLink();
28  l2_result.toPersistent();
29  dataLinkConverter.transToPers(l2_result, pers->m_l2_result, log);
30 
31  dataLinkConverter.transToPers(trans->getEFResultLink(), pers->m_ef_result, log);
32 }
33 
35  TrigDecision* trans, MsgStream &log) const
36 {
37  log << MSG::DEBUG << "TrigDecisionCnv_p5::persToTrans called " << endmsg;
38 
39  LVL1CTP::Lvl1Result l1_result;
40  m_lvl1ResultCnv.persToTrans(&pers->m_l1_result, &l1_result, log);
41 
42  DataLink<HLT::HLTResult> l2_result;
43  dataLinkConverter.persToTrans( &pers->m_l2_result, &l2_result, log);
44 
45  DataLink<HLT::HLTResult> ef_result;
46  dataLinkConverter.persToTrans( &pers->m_ef_result, &ef_result, log);
47 
48  *trans = TrigDecision (l1_result,
49  l2_result,
50  ef_result,
51  pers->m_configMasterKey,
52  pers->m_bgCode);
53 }
TrigDec
Definition: ITrigDecisionCnvTool.h:18
TrigDec::TrigDecision::getL2ResultLink
const DataLink< HLT::HLTResult > & getL2ResultLink() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:90
LVL1CTP::Lvl1ResultCnv_p2::transToPers
virtual void transToPers(const Lvl1Result *transObj, Lvl1Result_p2 *persObj, MsgStream &log) const override
Definition: Lvl1ResultCnv_p2.cxx:11
TrigDec::TrigDecision_p5::m_bgCode
char m_bgCode
Definition: TrigDecision_p5.h:99
TrigDec::TrigDecision::getEFResultLink
const DataLink< HLT::HLTResult > & getEFResultLink() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:92
TrigDec::TrigDecision::masterKey
uint32_t masterKey() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:85
DataLinkCnv_p2.h
This file contains the class definition for the DataLinkCnv_p2 class and DataLinkVectorCnv_p2 class.
TrigDec::TrigDecision_p5::m_l1_result
LVL1CTP::Lvl1Result_p2 m_l1_result
Light result of trigger level 1.
Definition: TrigDecision_p5.h:101
TrigDecision_p5.h
TrigDec::TrigDecision
The TrigDecision is an object which merges trigger informations from various levels.
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:61
TrigDec::TrigDecision::BGCode
char BGCode() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:86
TrigDecision.h
xAOD::TrigDecision
TrigDecision_v1 TrigDecision
Define the latest version of the trigger decision class.
Definition: Event/xAOD/xAODTrigger/xAODTrigger/TrigDecision.h:16
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigDec::TrigDecisionCnv_p5::m_lvl1ResultCnv
LVL1CTP::Lvl1ResultCnv_p2 m_lvl1ResultCnv
Definition: TrigDecisionCnv_p5.h:48
TrigDec::TrigDecision::getL1Result
const LVL1CTP::Lvl1Result & getL1Result() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:88
TrigDec::TrigDecision_p5::m_configMasterKey
uint32_t m_configMasterKey
Definition: TrigDecision_p5.h:98
TrigDec::TrigDecision_p5
Definition: TrigDecision_p5.h:60
LVL1CTP::Lvl1Result
Definition: Lvl1Result.h:32
LVL1CTP::Lvl1ResultCnv_p2::persToTrans
virtual void persToTrans(const Lvl1Result_p2 *persObj, Lvl1Result *transObj, MsgStream &log) const override
Definition: Lvl1ResultCnv_p2.cxx:24
DataLinkCnv_p2
Definition: DataLinkCnv_p2.h:23
TrigDec::TrigDecision_p5::m_l2_result
DataLink_p2 m_l2_result
HLTResult of trigger level 2.
Definition: TrigDecision_p5.h:102
TrigDec::TrigDecisionCnv_p5::persToTrans
virtual void persToTrans(const TrigDecision_p5 *persObj, TrigDecision *transObj, MsgStream &log) const override
Definition: TrigDecisionCnv_p5.cxx:34
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigDec::TrigDecision_p5::m_ef_result
DataLink_p2 m_ef_result
HLTResult of trigger level EF.
Definition: TrigDecision_p5.h:103
TrigDec::TrigDecisionCnv_p5::transToPers
virtual void transToPers(const TrigDecision *transObj, TrigDecision_p5 *persObj, MsgStream &log) const override
Definition: TrigDecisionCnv_p5.cxx:16
TrigDecisionCnv_p5.h