ATLAS Offline Software
Loading...
Searching...
No Matches
Lvl1ResultCnv_p1.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
9using namespace LVL1CTP;
10
12 Lvl1Result_p1* pers, MsgStream &log ) const
13{
14
15 log << MSG::DEBUG << "Lvl1ResultCnv_p1::transToPers called " << endmsg;
16
17 pers->m_configured = trans->isConfigured() ;
18 // pers->m_l1_items = trans->m_l1_items ;
19 // pers->m_l1_itemsPrescaled = trans->m_l1_itemsPrescaled ;
20 // this method will not be used anymore, since there is a Lvl1ResultCnv_p2 which is always used for saving the trans to pers !
21}
22
24 Lvl1Result* trans, MsgStream &log ) const
25{
26
27 log << MSG::DEBUG << "Lvl1ResultCnv_p1::persToTrans called " << endmsg;
28 // this is for reading in old, ie Lvl1Result_p1 class, into the new transient class
29
30 *trans = Lvl1Result (pers->m_configured);
31 trans->itemsBeforePrescale() = pers->m_l1_items;
32 trans->itemsAfterPrescale() = pers->m_l1_items;
33 trans->itemsAfterVeto() = pers->m_l1_items;
34}
#define endmsg
virtual void persToTrans(const Lvl1Result_p1 *persObj, Lvl1Result *transObj, MsgStream &log) const override
virtual void transToPers(const Lvl1Result *transObj, Lvl1Result_p1 *persObj, MsgStream &log) const override
std::vector< uint32_t > m_l1_items
bool isConfigured() const
is LVL1 configured ?
Definition Lvl1Result.h:39
const std::vector< uint32_t > & itemsAfterVeto() const
Definition Lvl1Result.h:57
const std::vector< uint32_t > & itemsAfterPrescale() const
Definition Lvl1Result.h:56
const std::vector< uint32_t > & itemsBeforePrescale() const
Definition Lvl1Result.h:55