ATLAS Offline Software
CMXJetTobCnv_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/CMXJetTob_p1.h"
14 
15 using namespace LVL1;
16 
17 /*
18 CMXJetTobCnv_p1::CMXJetTobCnv_p1()
19  : T_AthenaPoolTPCnvBase< CMXJetTob, CMXJetTob_p1 >() {
20 
21 }
22 */
23 
24 void CMXJetTobCnv_p1::persToTrans( const CMXJetTob_p1* persObj, CMXJetTob* transObj, MsgStream &log ) {
25 
26  //log << MSG::INFO << "Converting CMXJetTob from persistent state..." << endmsg;
27 
28  //transObj->clear(); // see if I actually need one of these
29 
30  //
31  // Translate the CMXJetTob
32  //
33  *transObj = CMXJetTob (persObj->m_crate,
34  persObj->m_jem,
35  persObj->m_frame,
36  persObj->m_location,
37  persObj->m_energyLarge,
38  persObj->m_energySmall,
39  persObj->m_error,
40  persObj->m_presenceMap,
41  persObj->m_peak);
42 
43  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converted CMXJetTob from persistent state [OK]" << endmsg;
44 
45  return;
46 
47 }
48 
49 void CMXJetTobCnv_p1::transToPers( const CMXJetTob* transObj, CMXJetTob_p1* persObj, MsgStream &log ) {
50 
51  //log << MSG::INFO << "Creating persistent state of CMXJetTob..." << endmsg;
52 
53  persObj->m_crate = transObj->crate();
54  persObj->m_jem = transObj->jem();
55  persObj->m_frame = transObj->frame();
56  persObj->m_location = transObj->location();
57  persObj->m_peak = transObj->peak();
58  persObj->m_energyLarge = transObj->energyLgVec();
59  persObj->m_energySmall = transObj->energySmVec();
60  persObj->m_error = transObj->errorVec();
61  persObj->m_presenceMap = transObj->presenceMapVec();
62 
63  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Created persistent state of CMXJetTob [OK]" << endmsg;
64 
65  return;
66 
67 }
LVL1::CMXJetTob::peak
int peak() const
returns peak slice number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:155
CMXJetTob_p1::m_energySmall
std::vector< int > m_energySmall
Definition: CMXJetTob_p1.h:32
CMXJetTob_p1::m_peak
int m_peak
Definition: CMXJetTob_p1.h:30
LVL1::CMXJetTob::presenceMapVec
const std::vector< unsigned int > & presenceMapVec() const
returns presence maps
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:134
CMXJetTob_p1::m_jem
int m_jem
Definition: CMXJetTob_p1.h:27
CMXJetTob_p1::m_crate
int m_crate
Destructor.
Definition: CMXJetTob_p1.h:26
LVL1::CMXJetTob::frame
int frame() const
returns frame number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:89
CMXJetTob.h
CMXJetTobCnv_p1.h
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
CMXJetTob_p1::m_error
std::vector< int > m_error
Definition: CMXJetTob_p1.h:33
LVL1::CMXJetTob::energyLgVec
const std::vector< int > & energyLgVec() const
For multi-slice readout.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:119
CMXJetTob_p1::m_energyLarge
std::vector< int > m_energyLarge
Definition: CMXJetTob_p1.h:31
LVL1::CMXJetTob::energySmVec
const std::vector< int > & energySmVec() const
returns energy small window
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:124
xAOD::CMXJetTob
CMXJetTob_v1 CMXJetTob
Define the latest version of the CMXJetTob class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/CMXJetTob.h:17
LVL1::CMXJetTob::jem
int jem() const
returns JEM number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:84
LVL1::CMXJetTob::crate
int crate() const
Data accessors.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:79
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CMXJetTob_p1::m_presenceMap
std::vector< unsigned int > m_presenceMap
Definition: CMXJetTob_p1.h:34
CMXJetTob_p1::m_frame
int m_frame
Definition: CMXJetTob_p1.h:28
LVL1::CMXJetTob::errorVec
const std::vector< int > & errorVec() const
returns error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:129
CMXJetTobCnv_p1::persToTrans
virtual void persToTrans(const CMXJetTob_p1 *persObj, LVL1::CMXJetTob *transObj, MsgStream &log)
Definition: CMXJetTobCnv_p1.cxx:24
CMXJetTob_p1
T/P separation for TrigT1Calo::CMXJetTob class.
Definition: CMXJetTob_p1.h:12
LVL1::CMXJetTob
TOB data received by the merger modules.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:24
DEBUG
#define DEBUG
Definition: page_access.h:11
CMXJetTob_p1::m_location
int m_location
Definition: CMXJetTob_p1.h:29
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LVL1::CMXJetTob::location
int location() const
returns location
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:94
CMXJetTobCnv_p1::transToPers
virtual void transToPers(const LVL1::CMXJetTob *transObj, CMXJetTob_p1 *persObj, MsgStream &log)
Definition: CMXJetTobCnv_p1.cxx:49