ATLAS Offline Software
TrigDecisionCnv_p2.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_p1<DataLink<HLT::HLTResult> > dataLinkConverter;
11 }
12 
13 using namespace TrigDec;
14 
15 
17  TrigDecision_p2* pers, MsgStream &log) const
18 {
19 
20  log << MSG::DEBUG << "TrigDecisionCnv_p2::transToPers called " << trans << " " << pers << endmsg;
21 
22  pers->m_configMasterKey = trans->masterKey();
23 
24 
26  // log << MSG::ERROR << "TrigDecisionCnv_p2::done L1 " << &trans->m_l1_result << " " << &pers->m_l1_result << endmsg;
27 
28 
29  DataLink<HLT::HLTResult> l2_result = trans->getL2ResultLink();
30  l2_result.toPersistent();
31  dataLinkConverter.transToPers(l2_result, pers->m_l2_result, log);
32 
33  dataLinkConverter.transToPers(trans->getEFResultLink(), pers->m_ef_result, log);
34 }
35 
37  TrigDecision* trans, MsgStream &log) const
38 {
39  log << MSG::DEBUG << "TrigDecisionCnv_p2::persToTrans called " << endmsg;
40 
41  LVL1CTP::Lvl1Result l1_result;
42  m_lvl1ResultCnv.persToTrans(&pers->m_l1_result, &l1_result, log);
43 
44  DataLink<HLT::HLTResult> l2_result;
45  dataLinkConverter.persToTrans( &pers->m_l2_result, &l2_result, log);
46 
47  DataLink<HLT::HLTResult> ef_result;
48  dataLinkConverter.persToTrans( &pers->m_ef_result, &ef_result, log);
49 
50  *trans = TrigDecision (l1_result,
51  l2_result,
52  ef_result,
53  pers->m_configMasterKey);
54 }
TrigDec
Definition: ITrigDecisionCnvTool.h:18
TrigDec::TrigDecision::getL2ResultLink
const DataLink< HLT::HLTResult > & getL2ResultLink() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:90
TrigDec::TrigDecision_p2::m_configMasterKey
uint32_t m_configMasterKey
Definition: TrigDecision_p2.h:98
LVL1CTP::Lvl1ResultCnv_p1::persToTrans
virtual void persToTrans(const Lvl1Result_p1 *persObj, Lvl1Result *transObj, MsgStream &log) const override
Definition: Lvl1ResultCnv_p1.cxx:23
DataLinkCnv_p1.h
This file contains the class definition for the DataLinkCnv_p1 class and DataLinkVectorCnv_p1 class.
TrigDec::TrigDecisionCnv_p2::persToTrans
virtual void persToTrans(const TrigDecision_p2 *persObj, TrigDecision *transObj, MsgStream &log) const override
Definition: TrigDecisionCnv_p2.cxx:36
TrigDec::TrigDecisionCnv_p2::transToPers
virtual void transToPers(const TrigDecision *transObj, TrigDecision_p2 *persObj, MsgStream &log) const override
Definition: TrigDecisionCnv_p2.cxx:16
TrigDec::TrigDecision::getEFResultLink
const DataLink< HLT::HLTResult > & getEFResultLink() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:92
TrigDec::TrigDecision_p2
Definition: TrigDecision_p2.h:60
TrigDec::TrigDecision::masterKey
uint32_t masterKey() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:85
LVL1CTP::Lvl1ResultCnv_p1::transToPers
virtual void transToPers(const Lvl1Result *transObj, Lvl1Result_p1 *persObj, MsgStream &log) const override
Definition: Lvl1ResultCnv_p1.cxx:11
TrigDec::TrigDecisionCnv_p2::m_lvl1ResultCnv
LVL1CTP::Lvl1ResultCnv_p1 m_lvl1ResultCnv
Definition: TrigDecisionCnv_p2.h:48
TrigDec::TrigDecision
The TrigDecision is an object which merges trigger informations from various levels.
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:61
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::TrigDecision::getL1Result
const LVL1CTP::Lvl1Result & getL1Result() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:88
TrigDec::TrigDecision_p2::m_l1_result
LVL1CTP::Lvl1Result_p1 m_l1_result
Light result of trigger level 1.
Definition: TrigDecision_p2.h:100
LVL1CTP::Lvl1Result
Definition: Lvl1Result.h:32
TrigDecision_p2.h
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigDec::TrigDecision_p2::m_ef_result
DataLink_p1 m_ef_result
HLTResult of trigger level EF.
Definition: TrigDecision_p2.h:102
TrigDec::TrigDecision_p2::m_l2_result
DataLink_p1 m_l2_result
HLTResult of trigger level 2.
Definition: TrigDecision_p2.h:101
TrigDecisionCnv_p2.h
DataLinkCnv_p1
Definition: DataLinkCnv_p1.h:23