ATLAS Offline Software
CMXJetHitsCnv_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/CMXJetHits_p1.h"
14 
15 using namespace LVL1;
16 
17 /*
18 CMXJetHitsCnv_p1::CMXJetHitsCnv_p1()
19  : T_AthenaPoolTPCnvBase< CMXJetHits, CMXJetHits_p1 >() {
20 
21 }
22 */
23 
24 void CMXJetHitsCnv_p1::persToTrans( const CMXJetHits_p1* persObj, CMXJetHits* transObj, MsgStream &log ) {
25 
26  //log << MSG::INFO << "Converting CMXJetHits from persistent state..." << endmsg;
27 
28  //transObj->clear(); // see if I actually need one of these
29 
30  //
31  // Translate the CMXJetHits
32  //
33  *transObj = CMXJetHits (persObj->m_crate,
34  persObj->m_source,
35  persObj->m_hits0,
36  persObj->m_hits1,
37  persObj->m_error0,
38  persObj->m_error1,
39  persObj->m_peak);
40 
41  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converted CMXJetHits from persistent state [OK]" << endmsg;
42 
43  return;
44 
45 }
46 
47 void CMXJetHitsCnv_p1::transToPers( const CMXJetHits* transObj, CMXJetHits_p1* persObj, MsgStream &log ) {
48 
49  //log << MSG::INFO << "Creating persistent state of CMXJetHits..." << endmsg;
50 
51  persObj->m_crate = transObj->crate();
52  persObj->m_source = transObj->source();
53  persObj->m_peak = transObj->peak();
54  persObj->m_hits0 = transObj->hitsVec0();
55  persObj->m_hits1 = transObj->hitsVec1();
56  persObj->m_error0 = transObj->errorVec0();
57  persObj->m_error1 = transObj->errorVec1();
58 
59  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Created persistent state of CMXJetHits [OK]" << endmsg;
60 
61  return;
62 
63 }
CMXJetHits_p1::m_peak
int m_peak
Definition: CMXJetHits_p1.h:28
CMXJetHits_p1::m_source
int m_source
Definition: CMXJetHits_p1.h:27
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::CMXJetHits::hitsVec1
const std::vector< unsigned int > & hitsVec1() const
returns hits1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:123
LVL1::CMXJetHits::hitsVec0
const std::vector< unsigned int > & hitsVec0() const
For multi-slice readout.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:118
LVL1::CMXJetHits::peak
int peak() const
returns peak slice number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:154
CMXJetHits_p1::m_error0
std::vector< int > m_error0
Definition: CMXJetHits_p1.h:31
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CMXJetHitsCnv_p1::persToTrans
virtual void persToTrans(const CMXJetHits_p1 *persObj, LVL1::CMXJetHits *transObj, MsgStream &log)
Definition: CMXJetHitsCnv_p1.cxx:24
LVL1::CMXJetHits::errorVec1
const std::vector< int > & errorVec1() const
returns error1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:133
CMXJetHits_p1::m_crate
int m_crate
Destructor.
Definition: CMXJetHits_p1.h:26
CMXJetHits.h
CMXJetHitsCnv_p1::transToPers
virtual void transToPers(const LVL1::CMXJetHits *transObj, CMXJetHits_p1 *persObj, MsgStream &log)
Definition: CMXJetHitsCnv_p1.cxx:47
LVL1::CMXJetHits::source
int source() const
returns source of data
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:93
LVL1::CMXJetHits::errorVec0
const std::vector< int > & errorVec0() const
returns error0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:128
CMXJetHitsCnv_p1.h
CMXJetHits_p1::m_hits1
std::vector< unsigned int > m_hits1
Definition: CMXJetHits_p1.h:30
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LVL1::CMXJetHits::crate
int crate() const
Data accessors.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:88
CMXJetHits_p1::m_hits0
std::vector< unsigned int > m_hits0
Definition: CMXJetHits_p1.h:29
LVL1::CMXJetHits
Summary of JEP (Jet) hits produced by the merger modules.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetHits.h:24
xAOD::CMXJetHits
CMXJetHits_v1 CMXJetHits
Define the latest version of the CMXJetHits class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/CMXJetHits.h:20
CMXJetHits_p1
T/P separation for TrigT1Calo::CMXJetHits class.
Definition: CMXJetHits_p1.h:12
CMXJetHits_p1::m_error1
std::vector< int > m_error1
Definition: CMXJetHits_p1.h:32