9#ifndef LAYERMATERIALMAP_CNV_P1_TRK_H
10#define LAYERMATERIALMAP_CNV_P1_TRK_H
40 std::shared_ptr<const Trk::ElementTable> soeTable(eTable);
44 std::vector<TPObjRef>::const_iterator it = persMap->
lmVector.begin();
45 std::vector<TPObjRef>::const_iterator iEnd = persMap->
lmVector.end();
46 for (
size_t iidx=0 ; it != iEnd; ++it, ++iidx ) {
57 persMap->
lmVector.reserve( transMap->size() );
59 persMap->
idxVector.reserve( transMap->size() );
64 for(
auto& it : (*transMap) ) {
65 persMap->
idxVector.push_back( it.first.value() );
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Common base class for all TP converters, specialized for a given transient type.
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
LayerMaterialMapCnv_p1()
Standard constructor.
~LayerMaterialMapCnv_p1()
Destructor constructor.
ElementTableCnv_p1 m_eTableCnv
virtual void transToPers(const Trk::LayerMaterialMap *transMap, Trk::LayerMaterialMap_p1 *persMap, MsgStream &mlog)
transient to persistent
virtual void persToTrans(const Trk::LayerMaterialMap_p1 *persMap, Trk::LayerMaterialMap *transMap, MsgStream &mlog)
persistent to transient
LayerIndex for the identification of layers in a simplified detector geometry of Cylinders and Discs.
std::vector< TPObjRef > lmVector
std::vector< int > idxVector
ElementTable_p1 elementTable
This class extends the DataVector<Trk::LayerMaterialProperties> by an elementTable;.
const ElementTable * elementTable() const
retrieval method
void updateElementTable(const std::shared_ptr< const ElementTable > &eTable)
update method
This virtual base class encapsulates the logics to build pre/post/full update material for Layer stru...
void updateElementTable(const std::shared_ptr< const ElementTable > &) const
Update the ElementTable.