18#ifndef TRIGCALOEVENTTPCNV_TRIGEMCLUSTERCONTAINER_CNV_P1_H
19#define TRIGCALOEVENTTPCNV_TRIGEMCLUSTERCONTAINER_CNV_P1_H
37 log << MSG::DEBUG <<
"TrigEMClusterContainerCnv::persToTrans" <<
endmsg;
40 transVect->
reserve( persVect->size() );
42 for( TrigEMClusterContainer_p1::const_iterator
43 it = persVect->begin(),
44 iEnd = persVect->end();
49 log << MSG::WARNING <<
"TrigEMClusterContainerCnv::persToTrans failed for an element " <<
endmsg;
52 log << MSG::WARNING <<
"TrigEMClusterContainerCnv::persToTrans cannot convert NULL persVect" <<
endmsg;
59 persVect->reserve( transVect->
size() );
62 it = transVect->
begin(),
63 iEnd = transVect->
end();
67 persVect->push_back(
a );
69 log << MSG::WARNING <<
"TrigEMClusterContainerCnv::transToPers failed for an element " << *it <<
" "
TPPtrVectorCnv< TRANS, PERS, CONV > T_AthenaPoolTPPtrVectorCnv
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.
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
This class is an object reference used in Athena persistent data model.
CONV * m_elementCnv
pointer to the TP converter used for vector elements
virtual void persToTrans(const TrigEMClusterContainer_p1 *persVect, TrigEMClusterContainer *transVect, MsgStream &log)
virtual void transToPers(const TrigEMClusterContainer *transVect, TrigEMClusterContainer_p1 *persVect, MsgStream &log)
TrigEMClusterContainerCnv_p1()
Container from TrigEMCluster type objects.
Class with calibrated variables for egamma clustering.