ATLAS Offline Software
RingerRingsCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
9 
11  RingerRings_p1 *pers,
12  MsgStream &log) const {
13 
14  log << MSG::DEBUG << "RingerRingsCnv_p1::tranToPers" << endmsg;
15 
16  if ( (!trans) || (!pers) )
17  return;
18 
19  pers->m_numberOfRings = trans->size();
20  pers->m_rings.clear();
21  for (unsigned int i = 0; i < trans->size(); ++i) {
22  pers->m_rings.push_back(trans->at(i));
23  }
24 }
25 
27  RingerRings *trans,
28  MsgStream &log) const {
29 
30  log << MSG::DEBUG << "RingerRingsCnv_p1::persToTrans" << endmsg;
31 
32  if ( (!pers) || (!trans) )
33  return;
34 
35  trans->rings().clear();
36  for (unsigned int i = 0; i < pers->m_rings.size(); ++i){
37  trans->rings().push_back(pers->m_rings[i]);
38  }
39 }
40 
RingerRings::at
float & at(const unsigned int i)
Definition: RingerRings.cxx:35
RingerRings_p1.h
RingerRingsCnv_p1.h
lumiFormat.i
int i
Definition: lumiFormat.py:85
RingerRings.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
RingerRings_p1::m_rings
std::vector< float > m_rings
Definition: RingerRings_p1.h:49
RingerRings::size
unsigned int size() const
Definition: RingerRings.cxx:43
RingerRingsCnv_p1::persToTrans
void persToTrans(const RingerRings_p1 *persObj, RingerRings *transObj, MsgStream &log) const override
Definition: RingerRingsCnv_p1.cxx:26
RingerRings_p1
Definition: RingerRings_p1.h:22
RingerRings
This class carries the generated Rings.
Definition: RingerRings.h:18
RingerRingsCnv_p1::transToPers
void transToPers(const RingerRings *transObj, RingerRings_p1 *persObj, MsgStream &log) const override
Definition: RingerRingsCnv_p1.cxx:10
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
RingerRings_p1::m_numberOfRings
unsigned int m_numberOfRings
Definition: RingerRings_p1.h:48
RingerRings::rings
std::vector< float > & rings()
Acessor methods.
Definition: RingerRings.cxx:23