ATLAS Offline Software
MuonSpShowerContainerCnv_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 
7 
8 
9 void
12  MsgStream& msg ) const
13 {
14  using namespace Rec;
15  trans->clear();
16  std::vector<MuonSpShower_p1*>::const_iterator it = pers->m_showers.begin(), itEnd = pers->m_showers.end();
17  for ( ; it!=itEnd; ++it ) {
19  trans->push_back( shower );
20  }
21  return;
22 }
23 
24 void
27  MsgStream& msg) const
28 {
29  pers->m_ownshowers = true;
30  Rec::MuonSpShowerContainer::const_iterator it = trans->begin(), itEnd = trans->end();
31  for ( ; it!=itEnd; ++it ) {
33  pers->m_showers.push_back( shower_p1 );
34  }
35  return;
36 }
37 
MuonSpShowerContainer_p1
Persisent representation of the transient Rec::MuonSpShowerContainer class.
Definition: MuonSpShowerContainer_p1.h:14
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
MuonSpShowerContainerCnv_p1::transToPers
virtual void transToPers(const Rec::MuonSpShowerContainer *trans, MuonSpShowerContainer_p1 *pers, MsgStream &msg) const override
Method creating the persistent representation MuonSpShowerContainer_p1 from its transient representat...
Definition: MuonSpShowerContainerCnv_p1.cxx:25
MuonSpShowerContainer_p1::m_ownshowers
bool m_ownshowers
Definition: MuonSpShowerContainer_p1.h:28
Rec::MuonSpShowerContainer
Definition: MuonSpShowerContainer.h:23
skel.it
it
Definition: skel.GENtoEVGEN.py:423
MuonSpShowerContainerCnv_p1.h
MuonSpShowerCnv_p1.h
Rec::MuonSpShower
Definition: MuonSpShower.h:39
Rec
Name: MuonSpContainer.h Package : offline/Reconstruction/MuonIdentification/muonEvent.
Definition: FakeTrackBuilder.h:10
TPConverterConstBase::createPersistentConst
virtual PERS * createPersistentConst(const TRANS *transObj, MsgStream &log) const
MuonSpShowerContainerCnv_p1::persToTrans
virtual void persToTrans(const MuonSpShowerContainer_p1 *pers, Rec::MuonSpShowerContainer *trans, MsgStream &msg) const override
Method creating the transient representation of MuonSpShowerContainer from its persistent representat...
Definition: MuonSpShowerContainerCnv_p1.cxx:10
DataVector::clear
void clear()
Erase all the elements in the collection.
MuonSpShowerContainerCnv_p1::m_cnv
MuonSpShowerCnv_p1 m_cnv
Definition: MuonSpShowerContainerCnv_p1.h:52
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
MuonSpShowerContainer_p1::m_showers
std::vector< MuonSpShower_p1 * > m_showers
Definition: MuonSpShowerContainer_p1.h:27
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
MuonSpShower_p1
Persisent representation of the transient Rec::MuonSpShower class.
Definition: MuonSpShower_p1.h:14
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
TPConverterConstBase::createTransientConst
virtual TRANS * createTransientConst(const PERS *persObj, MsgStream &log) const