ATLAS Offline Software
CMXCPTobCnv_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/CMXCPTob_p1.h"
14 
15 using namespace LVL1;
16 
17 /*
18 CMXCPTobCnv_p1::CMXCPTobCnv_p1()
19  : T_AthenaPoolTPCnvBase< CMXCPTob, CMXCPTob_p1 >() {
20 
21 }
22 */
23 
24 void CMXCPTobCnv_p1::persToTrans( const CMXCPTob_p1* persObj, CMXCPTob* transObj, MsgStream &log ) {
25 
26  //log << MSG::INFO << "Converting CMXCPTob from persistent state..." << endmsg;
27 
28  //transObj->clear(); // see if I actually need one of these
29 
30  //
31  // Translate the CMXCPTob
32  //
33  *transObj = CMXCPTob (persObj->m_crate,
34  persObj->m_cmx,
35  persObj->m_cpm,
36  persObj->m_chip,
37  persObj->m_location,
38  persObj->m_energy,
39  persObj->m_isolation,
40  persObj->m_error,
41  persObj->m_presenceMap,
42  persObj->m_peak);
43 
44  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converted CMXCPTob from persistent state [OK]" << endmsg;
45 
46  return;
47 
48 }
49 
50 void CMXCPTobCnv_p1::transToPers( const CMXCPTob* transObj, CMXCPTob_p1* persObj, MsgStream &log ) {
51 
52  //log << MSG::INFO << "Creating persistent state of CMXCPTob..." << endmsg;
53 
54  persObj->m_crate = transObj->crate();
55  persObj->m_cmx = transObj->cmx();
56  persObj->m_cpm = transObj->cpm();
57  persObj->m_chip = transObj->chip();
58  persObj->m_location = transObj->location();
59  persObj->m_peak = transObj->peak();
60  persObj->m_energy = transObj->energyVec();
61  persObj->m_isolation = transObj->isolationVec();
62  persObj->m_error = transObj->errorVec();
63  persObj->m_presenceMap = transObj->presenceMapVec();
64 
65  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Created persistent state of CMXCPTob [OK]" << endmsg;
66 
67  return;
68 
69 }
CMXCPTob_p1::m_presenceMap
std::vector< unsigned int > m_presenceMap
Definition: CMXCPTob_p1.h:42
CMXCPTob_p1::m_error
std::vector< int > m_error
Definition: CMXCPTob_p1.h:41
CMXCPTobCnv_p1.h
CMXCPTob_p1::m_peak
int m_peak
Definition: CMXCPTob_p1.h:38
LVL1::CMXCPTob::cmx
int cmx() const
returns CMX number (0/1)==(Left/Right)==(Tau/Em)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:86
LVL1::CMXCPTob::errorVec
const std::vector< int > & errorVec() const
returns error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:136
xAOD::CMXCPTob
CMXCPTob_v1 CMXCPTob
Define the latest version of the CMXCPTob class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/CMXCPTob.h:17
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::CMXCPTob::isolationVec
const std::vector< int > & isolationVec() const
returns isolation
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:131
CMXCPTob_p1::m_location
int m_location
Definition: CMXCPTob_p1.h:37
CMXCPTobCnv_p1::persToTrans
virtual void persToTrans(const CMXCPTob_p1 *persObj, LVL1::CMXCPTob *transObj, MsgStream &log)
Definition: CMXCPTobCnv_p1.cxx:24
CMXCPTob_p1
T/P separation for TrigT1Calo::CMXCPTob class.
Definition: CMXCPTob_p1.h:19
LVL1::CMXCPTob::energyVec
const std::vector< int > & energyVec() const
For multi-slice readout.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:126
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CMXCPTob_p1::m_energy
std::vector< int > m_energy
Definition: CMXCPTob_p1.h:39
LVL1::CMXCPTob::chip
int chip() const
returns chip number (3 or 4 bits?)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:96
LVL1::CMXCPTob::crate
int crate() const
Data accessors.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:81
CMXCPTob.h
CMXCPTob_p1::m_cmx
int m_cmx
Definition: CMXCPTob_p1.h:34
CMXCPTob_p1::m_isolation
std::vector< int > m_isolation
Definition: CMXCPTob_p1.h:40
LVL1::CMXCPTob::peak
int peak() const
returns peak slice number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:162
LVL1::CMXCPTob::presenceMapVec
const std::vector< unsigned int > & presenceMapVec() const
returns presence maps
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:141
CMXCPTob_p1::m_crate
int m_crate
Destructor.
Definition: CMXCPTob_p1.h:33
LVL1::CMXCPTob::cpm
int cpm() const
returns CPM number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:91
DEBUG
#define DEBUG
Definition: page_access.h:11
CMXCPTob_p1::m_chip
int m_chip
Definition: CMXCPTob_p1.h:36
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CMXCPTobCnv_p1::transToPers
virtual void transToPers(const LVL1::CMXCPTob *transObj, CMXCPTob_p1 *persObj, MsgStream &log)
Definition: CMXCPTobCnv_p1.cxx:50
LVL1::CMXCPTob::location
int location() const
returns location (3 or 2 bits?)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:101
LVL1::CMXCPTob
TOB data received by the merger modules.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:24
CMXCPTob_p1::m_cpm
int m_cpm
Definition: CMXCPTob_p1.h:35