ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticleTruthCollectionContainerCnv_p3.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
12
16
19 MsgStream &msg)
20{
22 persVect->clear();
23 persVect->reserve( transVect->size() );
25 it != transVect->end(); ++it ) {
26 persVect->push_back(toPersistent(&cnv, *it, msg ));
27 }
28}
29
32
33 MsgStream &msg )
34{
36 transVect->clear();
37 transVect->reserve( persVect->size() );
38 for( TrackParticleTruthCollectionContainer_p3::const_iterator it = persVect->begin();
39 it != persVect->end(); ++it ) {
40 transVect->push_back(createTransFromPStore( &cnv, *it, msg ) );
41 }
42}
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
DataVector< TrackParticleTruthCollection > TrackParticleTruthCollectionContainer
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
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.
size_type size() const noexcept
Returns the number of elements in the collection.
void clear()
Erase all the elements in the collection.
Common base class for all TP converters, specialized for a given transient type.
Definition TPConverter.h:37
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
virtual void persToTrans(const TrackParticleTruthCollectionContainer_p3 *persVect, TrackParticleTruthCollectionContainer *transVect, MsgStream &msg)
virtual void transToPers(const TrackParticleTruthCollectionContainer *transVect, TrackParticleTruthCollectionContainer_p3 *persVect, MsgStream &msg)
MsgStream & msg
Definition testRead.cxx:32