69 #ifndef __gVirtualXRayConfig_h 115 Mixture(
const std::map<int, double>& aWeightSet);
118 Mixture(
const std::map<std::string, double>& aWeightSet);
132 void setMixture(
const std::map<int, double>& aWeightSet);
133 void setMixture(
const std::map<std::string, double>& aWeightSet);
134 void addElement(
const std::string& aName,
double aPercentage);
204 double getMu(
double anEnergy)
const;
215 double getS(
double x)
const;
218 const std::string&
getLabel()
const;
246 std::map<int, double> m_p_weight_set;
268 #endif // __Mixture_h
void addElement(const std::string &aName, double aPercentage)
Class to manage a mixture (e.g. Ti90Al6V4).
double getS(double x) const
bool operator==(const Mixture &aMixture) const
double getMolarMass() const
Accessor on the molar mass of the material.
bool operator!=(const Mixture &aMixture) const
Mixture()
Default Constructor.
double getLinearAttenuationTotal(double anEnergy) const
double getMassAttenuationTotal(double anEnergy) const
void setMixture(const std::map< int, double > &aWeightSet)
const std::string & getLabel() const
double getMu(double anEnergy) const
Mixture & operator=(const Mixture &aMixture)
Copy operator.
Mixture is a class to manage a mixture (e.g. Ti90Al6V4).
void normaliseWeightSet()
Normalise the weight set.
double computeMolarMass()
Update the value of the molar mass of the material.
const std::map< int, double > & getWeightSet() const
double getDensity() const
Get the density of the material.
void setDensity(double aDensity)