ATLAS Offline Software
JEMRoICnv_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/JEMRoI_p1.h"
14 
15 using namespace LVL1;
16 
17 /*
18 JEMRoICnv_p1::JEMRoICnv_p1()
19  : T_AthenaPoolTPCnvBase< JEMRoI, JEMRoI_p1 >() {
20 
21 }
22 */
23 
24 void JEMRoICnv_p1::persToTrans( const JEMRoI_p1* persObj, JEMRoI* transObj, MsgStream &log ) {
25 
26  //log << MSG::INFO << "Converting JEMRoI from persistent state..." << endmsg;
27 
28  //transObj->clear(); // see if I actually need one of these
29 
30  //
31  // Translate the JEMRoI
32  //
33  *transObj = JEMRoI (persObj->m_roiWord);
34 
35  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converted JEMRoI from persistent state [OK]" << endmsg;
36 
37  return;
38 
39 }
40 
41 void JEMRoICnv_p1::transToPers( const JEMRoI* transObj, JEMRoI_p1* persObj, MsgStream &log ) {
42 
43  //log << MSG::INFO << "Creating persistent state of JEMRoI..." << endmsg;
44 
45  persObj->m_roiWord = transObj->roiWord();
46 
47  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Created persistent state of JEMRoI [OK]" << endmsg;
48 
49  return;
50 
51 }
JEMRoICnv_p1::transToPers
virtual void transToPers(const LVL1::JEMRoI *transObj, JEMRoI_p1 *persObj, MsgStream &log)
Definition: JEMRoICnv_p1.cxx:41
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
JEMRoI_p1
T/P separation for TrigT1Calo::JEMRoI class.
Definition: JEMRoI_p1.h:19
JEMRoICnv_p1.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
JEMRoICnv_p1::persToTrans
virtual void persToTrans(const JEMRoI_p1 *persObj, LVL1::JEMRoI *transObj, MsgStream &log)
Definition: JEMRoICnv_p1.cxx:24
JEMRoI.h
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LVL1::JEMRoI
JEM RoI data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:19
LVL1::JEMRoI::roiWord
uint32_t roiWord() const
Return packed RoI word.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:117
JEMRoI_p1::m_roiWord
uint32_t m_roiWord
Destructor.
Definition: JEMRoI_p1.h:33
xAOD::JEMRoI
JEMRoI_v1 JEMRoI
Define the latest version of the JEMRoI class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/JEMRoI.h:14