9 #include "Sti/StiMaterial.h"
10 #include "Sti/StiElossCalculator.h"
12 StiMaterial::StiMaterial(){
15 StiMaterial::StiMaterial(
const string &name,
23 set(name,z,a,density,radLength,ionization);
26 StiMaterial::StiMaterial(
const string &name,
33 set(name,z,a,density,X0);
36 StiMaterial::~StiMaterial()
90 ostream& operator<<(ostream& os,
const StiMaterial& m)
92 os <<
"StiMaterial:" << endl
104 assert(strstr(
getName().c_str(),
"Vac"));
StiElossCalculator * _eloss
Keep Energy loss calculator.
StiElossCalculator * getElossCalculator() const
Get Eloss calculator.
double getA() const
Get the effective atomic mass of the material.
double _x0
radiation length in cm.
void set(const string &name, double z, double a, double density, double radLength, double ionization)
double getZ() const
Get the effective atomic number of the material.
double _ionization
Effective ionization (in eV)
double getX0() const
Get the radiation length in centimeter.
double getIonization() const
Dummy method.
void setName(const string &newName)
Set the name of the object.
double getDensity() const
Get the material density in grams/cubic centimeter.
const string & getName() const
Get the name of the object.