ATLAS Offline Software
Loading...
Searching...
No Matches
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
9void
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 ) {
18 MuonSpShower* shower = m_cnv.createTransientConst( *it, msg );
19 trans->push_back( shower );
20 }
21 return;
22}
23
24void
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 ) {
32 MuonSpShower_p1* shower_p1 = m_cnv.createPersistentConst( *it, msg );
33 pers->m_showers.push_back( shower_p1 );
34 }
35 return;
36}
37
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
void clear()
Erase all the elements in the collection.
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...
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...
Persisent representation of the transient Rec::MuonSpShowerContainer class.
std::vector< MuonSpShower_p1 * > m_showers
Persisent representation of the transient Rec::MuonSpShower class.
Gaudi Tools.
MsgStream & msg
Definition testRead.cxx:32