39 MsgStream&
msg )
const
41 msg << MSG::DEBUG <<
"Loading JetCollection from persistent state..."
75 msg << MSG::DEBUG <<
"attached JetKeyDescriptor to its instance" <<
endmsg;
81 const std::size_t nJets = pers->size();
82 if (
pool.capacity() -
pool.allocated() < nJets ) {
83 pool.reserve(
pool.allocated() + nJets );
91 msg << MSG::DEBUG <<
"persistant JetCollection has size " << nJets <<
endmsg;
94 for ( JetCollection_p3::const_iterator
106 unsigned int RoIWord;
111 msg << MSG::DEBUG <<
"Note: This jet collection uses RoIWords!" <<
endmsg;
113 (*itr)->set_RoIword( RoIWord );
116 msg << MSG::DEBUG <<
"Loading JetCollection from persistent state [OK]"
123 MsgStream&
msg )
const
131 std::size_t size = trans->
size();
136 JetCollection_p3::iterator persItr = pers->begin();
138 jetCnv.transToPers( *transItr, &(*persItr),
msg );
139 ++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.
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_p3 *pers, MsgStream &msg) const override
Method creating the persistent representation JetCollection_p1 from its transient representation JetC...
virtual void persToTrans(const JetCollection_p3 *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