ATLAS Offline Software
TrigDecisionCnv_p3.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_p3* pers, MsgStream &log) const
18 {
19 
20  log << MSG::DEBUG << "TrigDecisionCnv_p3::transToPers called " << trans << " " << pers << endmsg;
21 
22  pers->m_configMasterKey = trans->masterKey();
23 
24 
26  // log << MSG::ERROR << "TrigDecisionCnv_p3::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_p3::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_p3
Definition: TrigDecision_p3.h:60
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::TrigDecisionCnv_p3::transToPers
virtual void transToPers(const TrigDecision *transObj, TrigDecision_p3 *persObj, MsgStream &log) const override
Definition: TrigDecisionCnv_p3.cxx:16
DataLinkCnv_p1.h
This file contains the class definition for the DataLinkCnv_p1 class and DataLinkVectorCnv_p1 class.
TrigDecisionCnv_p3.h
TrigDec::TrigDecision::getEFResultLink
const DataLink< HLT::HLTResult > & getEFResultLink() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:92
TrigDec::TrigDecisionCnv_p3::m_lvl1ResultCnv
LVL1CTP::Lvl1ResultCnv_p2 m_lvl1ResultCnv
Definition: TrigDecisionCnv_p3.h:48
TrigDec::TrigDecision::masterKey
uint32_t masterKey() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:85
TrigDec::TrigDecision_p3::m_l1_result
LVL1CTP::Lvl1Result_p2 m_l1_result
Light result of trigger level 1.
Definition: TrigDecision_p3.h:100
TrigDec::TrigDecision
The TrigDecision is an object which merges trigger informations from various levels.
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:61
TrigDec::TrigDecision_p3::m_l2_result
DataLink_p1 m_l2_result
HLTResult of trigger level 2.
Definition: TrigDecision_p3.h:101
TrigDec::TrigDecision_p3::m_ef_result
DataLink_p1 m_ef_result
HLTResult of trigger level EF.
Definition: TrigDecision_p3.h:102
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
TrigDecision_p3.h
TrigDec::TrigDecision::getL1Result
const LVL1CTP::Lvl1Result & getL1Result() const
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:88
TrigDec::TrigDecisionCnv_p3::persToTrans
virtual void persToTrans(const TrigDecision_p3 *persObj, TrigDecision *transObj, MsgStream &log) const override
Definition: TrigDecisionCnv_p3.cxx:36
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
TrigDec::TrigDecision_p3::m_configMasterKey
uint32_t m_configMasterKey
Definition: TrigDecision_p3.h:98
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
DataLinkCnv_p1
Definition: DataLinkCnv_p1.h:23