#include <Material.h>
◆ Material() [1/4]
Trk::Material::Material |
( |
| ) |
|
|
inline |
◆ Material() [2/4]
Trk::Material::Material |
( |
float |
iX0, |
|
|
float |
iL0, |
|
|
float |
iA, |
|
|
float |
iZ, |
|
|
float |
iRho, |
|
|
float |
idEdX = 0. , |
|
|
MaterialComposition * |
mc = nullptr |
|
) |
| |
|
inline |
Constructor with arguments.
Definition at line 140 of file Material.h.
154 zOaTr = iA > 0 ? iZ / iA * iRho : 0.;
◆ Material() [3/4]
Copy Constructor.
Definition at line 158 of file Material.h.
166 composition(amc.composition ?
new MaterialComposition(*amc.composition)
◆ Material() [4/4]
Trk::Material::Material |
( |
Material && |
amc | ) |
|
|
inline |
Move Constructor.
Definition at line 170 of file Material.h.
179 amc.composition =
nullptr;
◆ ~Material()
virtual Trk::Material::~Material |
( |
| ) |
|
|
inlinevirtual |
Destructor - delete the composition if there.
Definition at line 183 of file Material.h.
◆ averageZ()
float Trk::Material::averageZ |
( |
| ) |
const |
|
inline |
Definition at line 227 of file Material.h.
227 {
return (*this).Z; }
◆ operator=() [1/2]
Assignment operator.
Definition at line 188 of file Material.h.
199 amc.composition ?
new MaterialComposition(*amc.composition) : nullptr;
◆ operator=() [2/2]
Move Assignment operator.
Definition at line 205 of file Material.h.
217 amc.composition =
nullptr;
◆ scale()
Material * Trk::Material::scale |
( |
float |
sf | ) |
const |
|
inline |
◆ toString()
std::string Trk::Material::toString |
( |
| ) |
const |
|
inline |
spit out as a string
Definition at line 230 of file Material.h.
231 std::ostringstream sout;
232 sout << std::setiosflags(std::ios::fixed) << std::setprecision(4);
233 sout <<
"(" <<
X0 <<
" | " <<
L0 <<
" | " <<
A <<
" | " <<
Z <<
" | " <<
rho
◆ x0()
float Trk::Material::x0 |
( |
| ) |
const |
|
inline |
Definition at line 226 of file Material.h.
226 {
return (*this).X0; }
◆ zOverAtimesRho()
float Trk::Material::zOverAtimesRho |
( |
| ) |
const |
|
inline |
access to members
Definition at line 225 of file Material.h.
225 {
return (*this).zOaTr; }
◆ composition
◆ dEdX
float Trk::Material::dEdX |
◆ L0
◆ rho
◆ X0
◆ zOaTr
float Trk::Material::zOaTr |
The documentation for this class was generated from the following file: