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