9#ifndef MATERIAKSTEPCOLLECTION_CNV_P1_TRK_H
10#define MATERIAKSTEPCOLLECTION_CNV_P1_TRK_H
33 transVect->
reserve( persVect->size() );
35 Trk::MaterialStepCollection_p1::const_iterator it = persVect->begin();
36 Trk::MaterialStepCollection_p1::const_iterator iEnd = persVect->end();
37 for ( ; it != iEnd; ++it ) {
46 persVect->resize( transVect->
size() );
51 for( ; it != iEnd; ++it ) {
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
DataModel_detail::const_iterator< DataVector > const_iterator
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.
virtual void transToPers(const Trk::MaterialStepCollection *transVect, Trk::MaterialStepCollection_p1 *persVect, MsgStream &log)
transient to persistent
virtual void persToTrans(const Trk::MaterialStepCollection_p1 *persVect, Trk::MaterialStepCollection *transVect, MsgStream &log)
persistent to transient
MaterialStepCnv_p1 m_materialStepCnv
MaterialStepCollectionCnv_p1()
Standard constructor.
the persistent object is simply a std::vector<float> where
DataVector< Trk::MaterialStep > MaterialStepCollection