|
ATLAS Offline Software
|
Go to the documentation of this file.
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( pMaterial );
const std::string & elementName(unsigned int Z) const
Get the element name.
bool contains(unsigned int Z) const
quick check
virtual void persToTrans(const Trk::Material_p1 *persObj, Trk::Material *transObj, MsgStream &log)
const Material * element(unsigned int Z) const
Get the material.
virtual void transToPers(const Trk::ElementTable *transObj, Trk::ElementTable_p1 *persObj, MsgStream &log)
std::vector< Material_p1 > table
std::vector< std::string > names
MaterialCnv_p1 m_materialCnv
virtual void persToTrans(const Trk::ElementTable_p1 *persObj, Trk::ElementTable *transObj, MsgStream &log)
virtual void transToPers(const Trk::Material *transObj, Trk::Material_p1 *persObj, MsgStream &log)
size_t size() const
Print the table size.
void addElement(const Material &mat, const std::string &mname="")
Add material to the Table - if the elment is already filled ignore.