49 using FractionV = std::vector<std::pair<DDMaterial, double>>;
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.
int addMaterial(const DDMaterial &m, double fm)
adds a material to the mixture proportional to its fraction-mass fm.
Container::value_type value_type
std::vector< std::pair< DDMaterial, double > > FractionV
double density() const
returns the density
double z() const
retruns the atomic number
const DDName & name() const
FractionV::value_type constituent(int i) const
returns the i-th compound material and its fraction-mass
std::ostream & operator<<(std::ostream &, const DDMaterial &)
int noOfConstituents() const
returns the number of compound materials or 0 for elementary materials
double a() const
returns the atomic mass
friend std::ostream & operator<<(std::ostream &, const DDMaterial &)