|
ATLAS Offline Software
|
Go to the documentation of this file.
18 #ifndef TRIGCALOEVENTTPCNV_TRIGEMCLUSTERCONTAINER_CNV_P1_H
19 #define TRIGCALOEVENTTPCNV_TRIGEMCLUSTERCONTAINER_CNV_P1_H
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() );
63 iEnd = transVect->
end();
67 persVect->push_back(
a );
69 log << MSG::WARNING <<
"TrigEMClusterContainerCnv::transToPers failed for an element " << *
it <<
" "
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
Const iterator class for DataVector/DataList.
TrigEMClusterContainerCnv_p1()
Class with calibrated variables for egamma clustering.
Container from TrigEMCluster type objects.
virtual void persToTrans(const TrigEMClusterContainer_p1 *persVect, TrigEMClusterContainer *transVect, MsgStream &log)
void clear()
Erase all the elements in the collection.
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...
virtual void transToPers(const TrigEMClusterContainer *transVect, TrigEMClusterContainer_p1 *persVect, MsgStream &log)
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.
CONV * m_elementCnv
pointer to the TP converter used for vector elements
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
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...