20 for (
size_t im = 0; im < persObj->
table.size(); ++im){
21 auto tMaterial = std::make_unique<Trk::Material>();
32 for (
size_t im = 0; im < transObj->
size(); ++im){
36 persObj->
table.push_back( std::move(pMaterial) );
virtual void persToTrans(const Trk::ElementTable_p1 *persObj, Trk::ElementTable *transObj, MsgStream &log)
MaterialCnv_p1 m_materialCnv
virtual void transToPers(const Trk::ElementTable *transObj, Trk::ElementTable_p1 *persObj, MsgStream &log)
elements & fractions as unsigned char - if filled
std::vector< Material_p1 > table
std::vector< std::string > names
bool contains(unsigned int Z) const
quick check
void addElement(const Material &mat, const std::string &mname="")
Add material to the Table - if the elment is already filled ignore.
size_t size() const
Print the table size.
const Material * element(unsigned int Z) const
Get the material.
const std::string & elementName(unsigned int Z) const
Get the element name.
the persistent object is simply a std::vector<float> where