ATLAS Offline Software
CscMcDataCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 void CscMcDataCnv_p1::persToTrans(const Muon::CscMcData_p1 * persObj, CscMcData * transObj, MsgStream & log){
9  log << MSG::DEBUG << "CscMcDataCnv_p1::persToTrans" << endmsg;
10 
11  *transObj = CscMcData(persObj->m_energy,
12  persObj->m_ypos,
13  persObj->m_zpos);
14  transObj->setCharge (persObj->m_charge);
15 
16  log << MSG::VERBOSE << "\tconverting m_energy:\t" << persObj->m_energy << "\tto\t" << transObj->energy() << endmsg;
17  log << MSG::VERBOSE << "\tconverting m_ypos:\t" << persObj->m_ypos << "\tto\t" << transObj->ypos() << endmsg;
18  log << MSG::VERBOSE << "\tconverting m_zpos:\t" << persObj->m_zpos << "\tto\t" << transObj->zpos() << endmsg;
19  log << MSG::VERBOSE << "\tconverting m_charge:\t" << persObj->m_charge << "\tto\t" << transObj->charge() << endmsg;
20 }
21 
22 void CscMcDataCnv_p1::transToPers( const CscMcData * transObj, Muon::CscMcData_p1 * persObj, MsgStream & log){
23  log << MSG::DEBUG << "CscMcDataCnv_p1::transToPers" << endmsg;
24  persObj->m_energy = transObj->energy();
25  persObj->m_ypos = transObj->ypos();
26  persObj->m_zpos = transObj->zpos();
27  persObj->m_charge = transObj->charge();
28  log << MSG::VERBOSE << "\tconverting m_energy:\t" << transObj->energy() << "\tto\t" << persObj->m_energy << endmsg;
29  log << MSG::VERBOSE << "\tconverting m_ypos:\t" << transObj->ypos() << "\tto\t" << persObj->m_ypos << endmsg;
30  log << MSG::VERBOSE << "\tconverting m_zpos:\t" << transObj->zpos() << "\tto\t" << persObj->m_zpos << endmsg;
31  log << MSG::VERBOSE << "\tconverting m_charge:\t" << transObj->charge() << "\tto\t" << persObj->m_charge << endmsg;
32 }
Muon::CscMcData_p1::m_energy
float m_energy
Definition: CscMcData_p1.h:14
Muon::CscMcData_p1::m_charge
float m_charge
Definition: CscMcData_p1.h:17
Muon::CscMcData_p1::m_ypos
float m_ypos
Definition: CscMcData_p1.h:15
CscMcDataCnv_p1.h
CscMcData
Definition: CscSimData.h:23
CscMcData::ypos
float ypos() const
Definition: CscSimData.h:30
Muon::CscMcData_p1
Definition: CscMcData_p1.h:9
CscMcData::setCharge
void setCharge(float chg)
Definition: CscSimData.h:28
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CscMcDataCnv_p1::transToPers
void transToPers(const CscMcData *transObj, Muon::CscMcData_p1 *persObj, MsgStream &log)
Definition: CscMcDataCnv_p1.cxx:22
CscMcData::charge
float charge() const
Definition: CscSimData.h:32
CscMcDataCnv_p1::persToTrans
void persToTrans(const Muon::CscMcData_p1 *persObj, CscMcData *transObj, MsgStream &log)
Definition: CscMcDataCnv_p1.cxx:8
Muon::CscMcData_p1::m_zpos
float m_zpos
Definition: CscMcData_p1.h:16
CscMcData::energy
float energy() const
Definition: CscSimData.h:29
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CscSimData.h
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:14
CscMcData::zpos
float zpos() const
Definition: CscSimData.h:31