ATLAS Offline Software
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
}
LVL1CTP::Lvl1ResultCnv_p1::persToTrans
virtual void persToTrans(const Lvl1Result_p1 *persObj, Lvl1Result *transObj, MsgStream &log) const override
Definition:
Lvl1ResultCnv_p1.cxx:23
Lvl1ResultCnv_p1.h
LVL1CTP::Lvl1Result::isConfigured
bool isConfigured() const
is LVL1 configured ?
Definition:
Lvl1Result.h:39
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::m_configured
bool m_configured
Definition:
Lvl1Result_p1.h:70
Lvl1Result_p1.h
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
LVL1CTP::Lvl1Result_p1::m_l1_items
std::vector< uint32_t > m_l1_items
Definition:
Lvl1Result_p1.h:71
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
LVL1CTP::Lvl1Result
Definition:
Lvl1Result.h:32
DEBUG
#define DEBUG
Definition:
page_access.h:11
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
LVL1CTP::Lvl1Result_p1
Definition:
Lvl1Result_p1.h:45
LVL1CTP
Definition:
Lvl1ResultAccessTool.h:20
LVL1CTP::Lvl1Result::itemsAfterPrescale
const std::vector< uint32_t > & itemsAfterPrescale() const
Definition:
Lvl1Result.h:56
Generated on Sun Dec 22 2024 21:13:59 for ATLAS Offline Software by
1.8.18