ATLAS Offline Software
Lvl1ResultCnv_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 
8 
9 using namespace LVL1CTP;
10 
12  Lvl1Result_p2* pers, MsgStream &log ) const
13 {
14 
15  log << MSG::DEBUG << "Lvl1ResultCnv_p2::transToPers called " << endmsg;
16 
17  pers->m_configured = trans->isConfigured();
18  pers->m_l1_itemsTBP = trans->itemsBeforePrescale();
19  pers->m_l1_itemsTAP = trans->itemsAfterPrescale();
20  pers->m_l1_itemsTAV = trans->itemsAfterVeto();
21 
22 }
23 
25  Lvl1Result* trans, MsgStream &log ) const
26 {
27 
28  log << MSG::DEBUG << "Lvl1ResultCnv_p2::persToTrans called " << endmsg;
29 
30  *trans = Lvl1Result (pers->m_configured);
31  trans->itemsBeforePrescale() = pers->m_l1_itemsTBP;
32  trans->itemsAfterPrescale() = pers->m_l1_itemsTAP;
33  trans->itemsAfterVeto() = pers->m_l1_itemsTAV;
34 }
LVL1CTP::Lvl1ResultCnv_p2::transToPers
virtual void transToPers(const Lvl1Result *transObj, Lvl1Result_p2 *persObj, MsgStream &log) const override
Definition: Lvl1ResultCnv_p2.cxx:11
Lvl1Result_p2.h
LVL1CTP::Lvl1Result_p2::m_l1_itemsTAP
std::vector< uint32_t > m_l1_itemsTAP
Trigger (level 1 items) After Prescale.
Definition: Lvl1Result_p2.h:74
LVL1CTP::Lvl1Result::isConfigured
bool isConfigured() const
is LVL1 configured ?
Definition: Lvl1Result.h:39
LVL1CTP::Lvl1Result::itemsBeforePrescale
const std::vector< uint32_t > & itemsBeforePrescale() const
Definition: Lvl1Result.h:55
LVL1CTP::Lvl1Result::itemsAfterVeto
const std::vector< uint32_t > & itemsAfterVeto() const
Definition: Lvl1Result.h:57
Lvl1Result.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
LVL1CTP::Lvl1Result_p2
Definition: Lvl1Result_p2.h:45
LVL1CTP::Lvl1Result_p2::m_l1_itemsTAV
std::vector< uint32_t > m_l1_itemsTAV
Trigger (level 1 items) After Veto (==final L1 decision)
Definition: Lvl1Result_p2.h:75
LVL1CTP::Lvl1Result_p2::m_l1_itemsTBP
std::vector< uint32_t > m_l1_itemsTBP
Trigger (level 1 items) Before Prescale.
Definition: Lvl1Result_p2.h:73
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
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Lvl1ResultCnv_p2.h
LVL1CTP
Definition: Lvl1ResultAccessTool.h:20
LVL1CTP::Lvl1Result_p2::m_configured
bool m_configured
Definition: Lvl1Result_p2.h:70
LVL1CTP::Lvl1Result::itemsAfterPrescale
const std::vector< uint32_t > & itemsAfterPrescale() const
Definition: Lvl1Result.h:56