18 const std::vector<CaloShowerContainer_p1::CaloShower>& persCont=pers->
m_container;
19 trans->
resize(persCont.size());
23 for (;it!=it_e;++it,++i) {
35 std::vector<CaloShowerContainer_p1::CaloShower>& persCont=pers->
m_container;
36 persCont.resize(trans->
size());
39 std::vector<CaloShowerContainer_p1::CaloShower>::size_type i=0;
40 for(;it!=it_e;++it,++i) {
41 m_momentStoreCnv.transToPers(&((*it)->getMomentStore()),&(persCont[i].m_momentStore));
42 m_samplingDataCnv.transToPers(&((*it)->getSamplingStore()),&(persCont[i].m_samplingStore));
CaloSamplingDataCnv_p1 m_samplingDataCnv
virtual void transToPers(const CaloShowerContainer *, CaloShowerContainer_p1 *, MsgStream &log) const override final
virtual void persToTrans(const CaloShowerContainer_p1 *, CaloShowerContainer *, MsgStream &log) const override final
CaloClusterMomentStoreCnv_p1 m_momentStoreCnv
CaloShowerContainerCnv_p1()
std::vector< CaloShower > m_container
std::vector< CaloShower >::const_iterator const_iterator
Container class for CaloShower.
Data class for cluster variables associated with a CaloCluster.
const moment_store & getMomentStore() const
Access cluster moment store.
const sampling_store & getSamplingStore() const
Retrieves the non-modifiable sampling data store.
DataModel_detail::const_iterator< DataVector > const_iterator
void resize(size_type sz)
Resizes the collection to the specified number of elements.
typename DataVectorBase< CaloShower >::Base::size_type size_type
const T * at(size_type n) const
Access an element, as an rvalue.
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.