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