ATLAS Offline Software
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 
10 {
11 }
12 
14 {
15 }
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 }
DataVector::reserve
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
ITPConverterFor
Definition: TPConverter.h:37
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
TrackParticleTruthCollectionContainerCnv_p3.h
TrackParticleTruthCollectionContainerCnv_p3::persToTrans
virtual void persToTrans(const TrackParticleTruthCollectionContainer_p3 *persVect, TrackParticleTruthCollectionContainer *transVect, MsgStream &msg)
Definition: TrackParticleTruthCollectionContainerCnv_p3.cxx:30
TrackParticleTruthCollectionContainerCnv_p3::TrackParticleTruthCollectionContainerCnv_p3
TrackParticleTruthCollectionContainerCnv_p3()
Definition: TrackParticleTruthCollectionContainerCnv_p3.cxx:7
skel.it
it
Definition: skel.GENtoEVGEN.py:423
TPConverterBase
Definition: TPConverter.h:738
DataVector< TrackParticleTruthCollection >
DataVector::clear
void clear()
Erase all the elements in the collection.
ITPConverterFor::toPersistent
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Persistify an object and store the persistent represenation in the storage vector of the top-level pe...
Definition: TPConverter.h:119
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.
TrackParticleTruthCollectionContainerCnv_p3::transToPers
virtual void transToPers(const TrackParticleTruthCollectionContainer *transVect, TrackParticleTruthCollectionContainer_p3 *persVect, MsgStream &msg)
Definition: TrackParticleTruthCollectionContainerCnv_p3.cxx:17
TrackParticleTruthCollectionContainerCnv_p3::~TrackParticleTruthCollectionContainerCnv_p3
virtual ~TrackParticleTruthCollectionContainerCnv_p3()
Definition: TrackParticleTruthCollectionContainerCnv_p3.cxx:13
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
TrackParticleTruthCollectionContainer_p3
Definition: TrackParticleTruthCollectionContainer_p3.h:17
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.
ITPConverterFor::createTransFromPStore
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
Create transient representation of a persistent object, stored in the the top-level persistent object...
Definition: TPConverter.h:172