49 using FractionV = std::vector<std::pair<DDMaterial, double>>;
double a() const
returns the atomic mass
const DDName & name() const
DDMaterial is used to define and access material information.
DDMaterial()
Creates a uninitialized reference-object (see DDLogicalPart documentation for details on reference ob...
DDName is used to identify DDD entities uniquely.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
int addMaterial(const DDMaterial &m, double fm)
adds a material to the mixture proportional to its fraction-mass fm.
double z() const
retruns the atomic number
Container::value_type value_type
FractionV::value_type constituent(int i) const
returns the i-th compound material and its fraction-mass
double density() const
returns the density
int noOfConstituents() const
returns the number of compound materials or 0 for elementary materials
std::vector< std::pair< DDMaterial, double >> FractionV
friend std::ostream & operator<<(std::ostream &, const DDMaterial &)