ATLAS Offline Software
Loading...
Searching...
No Matches
JEMEtSumsCnv_p1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8// Gaudi/Athena include(s):
9#include "GaudiKernel/MsgStream.h"
10
11// Local include(s):
12//#include "TrigT1EventTPCnv/JEMEtSum_p1.h"
14
15using namespace LVL1;
16
17/*
18JEMEtSumCnv_p1::JEMEtSumCnv_p1()
19 : T_AthenaPoolTPCnvBase< JEMEtSum, JEMEtSum_p1 >() {
20
21}
22*/
23
24void JEMEtSumsCnv_p1::persToTrans( const JEMEtSums_p1* persObj, JEMEtSums* transObj, MsgStream &log ) {
25
26 //log << MSG::INFO << "Converting JEMEtSum from persistent state..." << endmsg;
27
28 //transObj->clear(); // see if I actually need one of these
29
30 //
31 // Translate the JEMEtSum
32 //
33 *transObj = JEMEtSums (persObj->m_crate,
34 persObj->m_module,
35 persObj->m_Et,
36 persObj->m_Ex,
37 persObj->m_Ey,
38 persObj->m_peak);
39
40 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converted JEMEtSum from persistent state [OK]" << endmsg;
41
42 return;
43
44}
45
46void JEMEtSumsCnv_p1::transToPers( const JEMEtSums* transObj, JEMEtSums_p1* persObj, MsgStream &log ) {
47
48 //log << MSG::INFO << "Creating persistent state of JEMEtSum..." << endmsg;
49
50 persObj->m_crate = transObj->crate();
51 persObj->m_module = transObj->module();
52 persObj->m_peak = transObj->peak();
53 persObj->m_Et = transObj->EtVec();
54 persObj->m_Ex = transObj->ExVec();
55 persObj->m_Ey = transObj->EyVec();
56
57 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Created persistent state of JEMEtSum [OK]" << endmsg;
58
59 return;
60
61}
#define endmsg
virtual void transToPers(const LVL1::JEMEtSums *transObj, JEMEtSums_p1 *persObj, MsgStream &log)
virtual void persToTrans(const JEMEtSums_p1 *persObj, LVL1::JEMEtSums *transObj, MsgStream &log)
T/P separation for TrigT1Calo::JEMEtSums class.
std::vector< unsigned int > m_Ey
std::vector< unsigned int > m_Et
int m_crate
Destructor.
std::vector< unsigned int > m_Ex
int module() const
returns module number
Definition JEMEtSums.cxx:52
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
Definition JEMEtSums.cxx:82
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition JEMEtSums.cxx:77
const std::vector< unsigned int > & EtVec() const
returns module ET sum
Definition JEMEtSums.cxx:72
int crate() const
returns crate number
Definition JEMEtSums.cxx:47
int peak() const
returns peak slice number
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...