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