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