ATLAS Offline Software
CMMRoICnv_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/CMMRoI_p1.h"
14 
15 using namespace LVL1;
16 
17 /*
18 CMMRoICnv_p1::CMMRoICnv_p1()
19  : T_AthenaPoolTPCnvBase< CMMRoI, CMMRoI_p1 >() {
20 
21 }
22 */
23 
24 void CMMRoICnv_p1::persToTrans( const CMMRoI_p1* persObj, CMMRoI* transObj, MsgStream &log ) {
25 
26  //log << MSG::INFO << "Converting CMMRoI from persistent state..." << endmsg;
27 
28  //transObj->clear(); // see if I actually need one of these
29 
30  //
31  // Translate the CMMRoI
32  //
33  *transObj = CMMRoI (persObj->m_jetEtRoiWord,
34  persObj->m_energyRoiWord0,
35  persObj->m_energyRoiWord1,
36  persObj->m_energyRoiWord2);
37 
38  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converted CMMRoI from persistent state [OK]" << endmsg;
39 
40  return;
41 
42 }
43 
44 void CMMRoICnv_p1::transToPers( const CMMRoI* transObj, CMMRoI_p1* persObj, MsgStream &log ) {
45 
46  //log << MSG::INFO << "Creating persistent state of CMMRoI..." << endmsg;
47 
48  persObj->m_jetEtRoiWord = transObj->jetEtRoiWord();
49  persObj->m_energyRoiWord0 = transObj->energyRoiWord0();
50  persObj->m_energyRoiWord1 = transObj->energyRoiWord1();
51  persObj->m_energyRoiWord2 = transObj->energyRoiWord2();
52 
53  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Created persistent state of CMMRoI [OK]" << endmsg;
54 
55  return;
56 
57 }
xAOD::CMMRoI
CMMRoI_v1 CMMRoI
Define the latest version of the CMMRoI class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/CMMRoI.h:14
CMMRoICnv_p1::persToTrans
virtual void persToTrans(const CMMRoI_p1 *persObj, LVL1::CMMRoI *transObj, MsgStream &log)
Definition: CMMRoICnv_p1.cxx:24
LVL1::CMMRoI::energyRoiWord2
uint32_t energyRoiWord2() const
Return packed Energy RoI word 2.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:200
CMMRoI.h
CMMRoI_p1::m_energyRoiWord2
uint32_t m_energyRoiWord2
Definition: CMMRoI_p1.h:36
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
CMMRoI_p1::m_energyRoiWord0
uint32_t m_energyRoiWord0
Definition: CMMRoI_p1.h:34
LVL1::CMMRoI::energyRoiWord0
uint32_t energyRoiWord0() const
Return packed Energy RoI word 0.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:190
CMMRoICnv_p1::transToPers
virtual void transToPers(const LVL1::CMMRoI *transObj, CMMRoI_p1 *persObj, MsgStream &log)
Definition: CMMRoICnv_p1.cxx:44
LVL1::CMMRoI::energyRoiWord1
uint32_t energyRoiWord1() const
Return packed Energy RoI word 1.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:195
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CMMRoI_p1::m_energyRoiWord1
uint32_t m_energyRoiWord1
Definition: CMMRoI_p1.h:35
CMMRoI_p1
T/P separation for TrigT1Calo::CMMRoI class.
Definition: CMMRoI_p1.h:19
CMMRoICnv_p1.h
LVL1::CMMRoI::jetEtRoiWord
uint32_t jetEtRoiWord() const
Return packed Jet-Et RoI word.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:185
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CMMRoI_p1::m_jetEtRoiWord
uint32_t m_jetEtRoiWord
Destructor.
Definition: CMMRoI_p1.h:33
LVL1::CMMRoI
CMM RoI data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:21