38 MsgStream&
msg )
const
40 msg << MSG::DEBUG <<
"Loading JetCollection from persistent state..."
83 msg << MSG::DEBUG <<
"attached JetKeyDescriptor to its instance" <<
endmsg;
89 const std::size_t nJets = pers->size();
90 if (
pool.capacity() -
pool.allocated() < nJets ) {
91 pool.reserve(
pool.allocated() + nJets );
100 for ( JetCollection_p2::const_iterator
102 itrEnd = pers->end();
112 unsigned int RoIWord;
117 msg << MSG::DEBUG <<
"Note: This jet collection uses RoIWords!" <<
endmsg;
119 (*itr)->set_RoIword( RoIWord );
122 msg << MSG::DEBUG <<
"Loading JetCollection from persistent state [OK]"
129 MsgStream&
msg )
const
137 std::size_t size = trans->
size();
142 JetCollection_p2::iterator persItr = pers->begin();
144 jetCnv.transToPers( *transItr, &(*persItr),
msg );
145 ++persItr; ++transItr; --size;
This file contains the class definition for the DataLinkCnv_p1 class and DataLinkVectorCnv_p1 class.
static const JetCnv_p1 jetCnv
static const JetKeyDescriptorCnv_p1 jetkeyCnv
bool isDefault() const
Test to see if we're in the default state.
virtual void persToTrans(const PersDLink_t *pers, DLink_t *trans, MsgStream &log) const override
virtual void transToPers(const DLink_t *trans, PersDLink_t *pers, MsgStream &log) const override
Object reference supporting deferred reading from StoreGate.
void toDefaultObject(IProxyDict *sg=0)
Set the link to the default object of this type.
const_pointer cptr() const
Dereference the link.
bool isValid() const
Test to see if the link is dereferencable.
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_p2 *pers, MsgStream &msg) const override
Method creating the persistent representation JetCollection_p1 from its transient representation JetC...
virtual void persToTrans(const JetCollection_p2 *pers, JetCollection *trans, MsgStream &msg) const override
Method creating the transient representation of JetCollection from its persistent representation JetC...
JetCollection::OrderedVar ordered() const
DataLink< JetKeyDescriptor > m_keyStore
link to the JetKeyDescriptor is mandatory for persistency. Access done through the JetKeyDescriptorIn...
void setOrdered(JetCollection::OrderedVar ordered)
DataVector< Jet >::iterator iterator
JetKeyDescriptorInstance * keyDesc() const
const JetKeyDescriptor * m_ConstStores
JetKeyDescriptor * m_Stores
static JetKeyDescriptorInstance * instance()
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts