34 MsgStream&
msg )
const
43 const std::size_t nJets = pers->size();
44 if (
pool.capacity() -
pool.allocated() < nJets ) {
45 pool.reserve(
pool.allocated() + nJets );
54 for ( JetCollection_p1::const_iterator
70 msg << MSG::DEBUG <<
"Note: This jet collection uses RoIWords!" <<
endmsg;
72 (*itr)->set_RoIword( RoIWord );
81 MsgStream&
msg )
const
89 std::size_t size = trans->
size();
94 JetCollection_p1::iterator persItr = pers->begin();
96 jetCnv.transToPers( *transItr, &(*persItr),
msg );
97 ++persItr; ++transItr; --size;
static const JetCnv_p1 jetCnv
a typed memory pool that saves time spent allocation small object.
DataModel_detail::const_iterator< DataVector > const_iterator
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
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.
virtual void transToPers(const JetCollection *trans, JetCollection_p1 *pers, MsgStream &msg) const override
Method creating the persistent representation JetCollection_p1 from its transient representation JetC...
virtual void persToTrans(const JetCollection_p1 *pers, JetCollection *trans, MsgStream &msg) const override
Method creating the transient representation of JetCollection from its persistent representation JetC...
JetCollection::OrderedVar ordered() const
void setOrdered(JetCollection::OrderedVar ordered)
DataVector< Jet >::iterator iterator
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts