ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecTPCnv
src
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
5
#include "
RecTPCnv/MuonSpShowerContainerCnv_p1.h
"
6
#include "
RecTPCnv/MuonSpShowerCnv_p1.h
"
7
8
9
void
10
MuonSpShowerContainerCnv_p1::persToTrans
(
const
MuonSpShowerContainer_p1
* pers,
11
Rec::MuonSpShowerContainer
* trans,
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
24
void
25
MuonSpShowerContainerCnv_p1::transToPers
(
const
Rec::MuonSpShowerContainer
* trans,
26
MuonSpShowerContainer_p1
* pers,
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
MuonSpShowerCnv_p1.h
MuonSpShowerContainerCnv_p1.h
DataVector< MuonSpShower >::const_iterator
DataModel_detail::const_iterator< DataVector > const_iterator
Definition
DataVector.h:838
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
DataVector::clear
void clear()
Erase all the elements in the collection.
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
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
MuonSpShowerContainerCnv_p1::m_cnv
MuonSpShowerCnv_p1 m_cnv
Definition
MuonSpShowerContainerCnv_p1.h:52
MuonSpShowerContainer_p1
Persisent representation of the transient Rec::MuonSpShowerContainer class.
Definition
MuonSpShowerContainer_p1.h:14
MuonSpShowerContainer_p1::m_ownshowers
bool m_ownshowers
Definition
MuonSpShowerContainer_p1.h:28
MuonSpShowerContainer_p1::m_showers
std::vector< MuonSpShower_p1 * > m_showers
Definition
MuonSpShowerContainer_p1.h:27
MuonSpShower_p1
Persisent representation of the transient Rec::MuonSpShower class.
Definition
MuonSpShower_p1.h:14
Rec::MuonSpShowerContainer
Definition
MuonSpShowerContainer.h:23
Rec::MuonSpShower
Definition
MuonSpShower.h:27
Rec
namespace for combined reconstruction tools and interfaces
Definition
FakeTrackBuilder.h:10
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0