ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigSteeringEventTPCnv
src
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
5
#include "
TrigSteeringEvent/Lvl1Result.h
"
6
#include "
TrigSteeringEventTPCnv/Lvl1Result_p1.h
"
7
#include "
TrigSteeringEventTPCnv/Lvl1ResultCnv_p1.h
"
8
9
using namespace
LVL1CTP
;
10
11
void
Lvl1ResultCnv_p1::transToPers
(
const
LVL1CTP::Lvl1Result
*
trans
,
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
23
void
Lvl1ResultCnv_p1::persToTrans
(
const
LVL1CTP::Lvl1Result_p1
* pers,
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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
Lvl1ResultCnv_p1.h
Lvl1Result.h
Lvl1Result_p1.h
LVL1CTP::Lvl1ResultCnv_p1::persToTrans
virtual void persToTrans(const Lvl1Result_p1 *persObj, Lvl1Result *transObj, MsgStream &log) const override
Definition
Lvl1ResultCnv_p1.cxx:23
LVL1CTP::Lvl1ResultCnv_p1::transToPers
virtual void transToPers(const Lvl1Result *transObj, Lvl1Result_p1 *persObj, MsgStream &log) const override
Definition
Lvl1ResultCnv_p1.cxx:11
LVL1CTP::Lvl1Result_p1
Definition
Lvl1Result_p1.h:33
LVL1CTP::Lvl1Result_p1::m_configured
bool m_configured
Definition
Lvl1Result_p1.h:46
LVL1CTP::Lvl1Result_p1::m_l1_items
std::vector< uint32_t > m_l1_items
Definition
Lvl1Result_p1.h:47
LVL1CTP::Lvl1Result
Definition
Lvl1Result.h:30
trans
TH1F * trans(TH1F *h, bool t=false)
Definition
comparitor.cxx:185
LVL1CTP
Definition
Lvl1ResultAccessTool.h:20
Generated on
for ATLAS Offline Software by
1.17.0