ATLAS Offline Software
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 
15 using namespace LVL1;
16 
17 /*
18 JEMEtSumCnv_p1::JEMEtSumCnv_p1()
19  : T_AthenaPoolTPCnvBase< JEMEtSum, JEMEtSum_p1 >() {
20 
21 }
22 */
23 
24 void 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 
46 void 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 }
JEMEtSums.h
xAOD::JEMEtSums
JEMEtSums_v2 JEMEtSums
Define the latest version of the JEMEtSums class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/JEMEtSums.h:15
JEMEtSums_p1::m_crate
int m_crate
Destructor.
Definition: JEMEtSums_p1.h:33
JEMEtSums_p1::m_Ey
std::vector< unsigned int > m_Ey
Definition: JEMEtSums_p1.h:38
LVL1::JEMEtSums::EyVec
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
Definition: JEMEtSums.cxx:103
LVL1::JEMEtSums::module
int module() const
returns module number
Definition: JEMEtSums.cxx:73
JEMEtSums_p1::m_peak
int m_peak
Definition: JEMEtSums_p1.h:35
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
JEMEtSumsCnv_p1.h
JEMEtSumsCnv_p1::persToTrans
virtual void persToTrans(const JEMEtSums_p1 *persObj, LVL1::JEMEtSums *transObj, MsgStream &log)
Definition: JEMEtSumsCnv_p1.cxx:24
JEMEtSums_p1
T/P separation for TrigT1Calo::JEMEtSums class.
Definition: JEMEtSums_p1.h:19
JEMEtSums_p1::m_module
int m_module
Definition: JEMEtSums_p1.h:34
LVL1::JEMEtSums::crate
int crate() const
returns crate number
Definition: JEMEtSums.cxx:68
JEMEtSums_p1::m_Et
std::vector< unsigned int > m_Et
Definition: JEMEtSums_p1.h:36
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
JEMEtSums_p1::m_Ex
std::vector< unsigned int > m_Ex
Definition: JEMEtSums_p1.h:37
LVL1::JEMEtSums::peak
int peak() const
returns peak slice number
Definition: JEMEtSums.cxx:133
LVL1::JEMEtSums::ExVec
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition: JEMEtSums.cxx:98
LVL1::JEMEtSums
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMEtSums.h:27
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LVL1::JEMEtSums::EtVec
const std::vector< unsigned int > & EtVec() const
returns module ET sum
Definition: JEMEtSums.cxx:93
JEMEtSumsCnv_p1::transToPers
virtual void transToPers(const LVL1::JEMEtSums *transObj, JEMEtSums_p1 *persObj, MsgStream &log)
Definition: JEMEtSumsCnv_p1.cxx:46