|
ACTS
Experiment-independent tracking
|
Material composed from multiple elements with varying factions. More...
#include <Acts/Material/MaterialComposition.hpp>
Public Member Functions | |
| MaterialComposition ()=default | |
| Construct an empty composition corresponding to vacuum. | |
| MaterialComposition (const MaterialComposition &)=default | |
| Copy constructor. | |
| MaterialComposition (MaterialComposition &&)=default | |
| Move constructor. | |
| MaterialComposition (std::vector< ElementFraction > elements) | |
| Constructor from element fractions. | |
| ~MaterialComposition ()=default | |
| auto | begin () const |
| Support range-based iteration over contained elements. | |
| auto | end () const |
| Get iterator to end of elements. | |
| operator bool () const | |
| Check if the composed material is valid, i.e. it is not vacuum. | |
| MaterialComposition & | operator= (const MaterialComposition &)=default |
| Copy assignment operator. | |
| MaterialComposition & | operator= (MaterialComposition &&)=default |
| Move assignment operator. | |
| std::size_t | size () const |
| Return the number of elements. | |
Material composed from multiple elements with varying factions.
|
default |
Construct an empty composition corresponding to vacuum.
|
explicit |
Constructor from element fractions.
Rescales the fractions so they all add up to unity within the accuracy.
| elements | Vector of element fractions that define the composition |
|
default |
Move constructor.
|
default |
Copy constructor.
|
default |
| auto Acts::MaterialComposition::begin | ( | ) | const |
Support range-based iteration over contained elements.
| auto Acts::MaterialComposition::end | ( | ) | const |
Get iterator to end of elements.
|
explicit |
Check if the composed material is valid, i.e. it is not vacuum.
|
default |
Copy assignment operator.
|
default |
Move assignment operator.
| std::size_t Acts::MaterialComposition::size | ( | ) | const |
Return the number of elements.