ATLAS Offline Software
CMXEtSumsCnv_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/CMXEtSums_p1.h"
14 
15 using namespace LVL1;
16 
17 /*
18 CMXEtSumsCnv_p1::CMXEtSumsCnv_p1()
19  : T_AthenaPoolTPCnvBase< CMXEtSums, CMXEtSums_p1 >() {
20 
21 }
22 */
23 
24 void CMXEtSumsCnv_p1::persToTrans( const CMXEtSums_p1* persObj, CMXEtSums* transObj, MsgStream &log ) {
25 
26  //log << MSG::INFO << "Converting CMXEtSums from persistent state..." << endmsg;
27 
28  //transObj->clear(); // see if I actually need one of these
29 
30  //
31  // Translate the CMXEtSums
32  //
33  *transObj = CMXEtSums (persObj->m_crate,
34  persObj->m_source,
35  persObj->m_Et,
36  persObj->m_Ex,
37  persObj->m_Ey,
38  persObj->m_EtError,
39  persObj->m_ExError,
40  persObj->m_EyError,
41  persObj->m_peak);
42 
43  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converted CMXEtSums from persistent state [OK]" << endmsg;
44 
45  return;
46 
47 }
48 
49 void CMXEtSumsCnv_p1::transToPers( const CMXEtSums* transObj, CMXEtSums_p1* persObj, MsgStream &log ) {
50 
51  //log << MSG::INFO << "Creating persistent state of CMXEtSums..." << endmsg;
52 
53  persObj->m_crate = transObj->crate();
54  persObj->m_source = transObj->source();
55  persObj->m_peak = transObj->peak();
56  persObj->m_Et = transObj->EtVec();
57  persObj->m_Ex = transObj->ExVec();
58  persObj->m_Ey = transObj->EyVec();
59  persObj->m_EtError = transObj->EtErrorVec();
60  persObj->m_ExError = transObj->ExErrorVec();
61  persObj->m_EyError = transObj->EyErrorVec();
62 
63  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Created persistent state of CMXEtSums [OK]" << endmsg;
64 
65  return;
66 
67 }
LVL1::CMXEtSums::ExVec
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:140
LVL1::CMXEtSums::source
int source() const
returns data source
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:100
CMXEtSums_p1::m_source
int m_source
Definition: CMXEtSums_p1.h:27
CMXEtSumsCnv_p1.h
CMXEtSums_p1::m_EyError
std::vector< int > m_EyError
Definition: CMXEtSums_p1.h:34
LVL1::CMXEtSums::peak
int peak() const
returns peak slice number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:191
CMXEtSums_p1::m_crate
int m_crate
Destructor.
Definition: CMXEtSums_p1.h:26
CMXEtSums.h
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::CMXEtSums::ExErrorVec
const std::vector< int > & ExErrorVec() const
returns module Ex errors
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:155
LVL1::CMXEtSums::EtErrorVec
const std::vector< int > & EtErrorVec() const
returns module ET errors
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:150
LVL1::CMXEtSums::EtVec
const std::vector< unsigned int > & EtVec() const
Access multi-slice data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:135
CMXEtSums_p1::m_ExError
std::vector< int > m_ExError
Definition: CMXEtSums_p1.h:33
CMXEtSums_p1::m_Ex
std::vector< unsigned int > m_Ex
Definition: CMXEtSums_p1.h:30
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CMXEtSums_p1::m_peak
int m_peak
Definition: CMXEtSums_p1.h:28
CMXEtSums_p1::m_Ey
std::vector< unsigned int > m_Ey
Definition: CMXEtSums_p1.h:31
CMXEtSumsCnv_p1::transToPers
virtual void transToPers(const LVL1::CMXEtSums *transObj, CMXEtSums_p1 *persObj, MsgStream &log)
Definition: CMXEtSumsCnv_p1.cxx:49
xAOD::CMXEtSums
CMXEtSums_v1 CMXEtSums
Define the latest version of the CMXEtSums class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/CMXEtSums.h:20
LVL1::CMXEtSums::EyErrorVec
const std::vector< int > & EyErrorVec() const
returns module Ey errors
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:160
LVL1::CMXEtSums
CMXEtSums object stores Et sums from the Energy CMXs.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:27
CMXEtSums_p1::m_Et
std::vector< unsigned int > m_Et
Definition: CMXEtSums_p1.h:29
CMXEtSumsCnv_p1::persToTrans
virtual void persToTrans(const CMXEtSums_p1 *persObj, LVL1::CMXEtSums *transObj, MsgStream &log)
Definition: CMXEtSumsCnv_p1.cxx:24
LVL1::CMXEtSums::EyVec
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:145
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LVL1::CMXEtSums::crate
int crate() const
Data accessors.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:95
CMXEtSums_p1
T/P separation for TrigT1Calo::CMXEtSums class.
Definition: CMXEtSums_p1.h:12
CMXEtSums_p1::m_EtError
std::vector< int > m_EtError
Definition: CMXEtSums_p1.h:32