ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/master/Core/include/Acts/Material/MaterialComposition.hpp>
Public Member Functions | |
MaterialComposition ()=default | |
Construct an empty composition corresponding to vacuum. | |
MaterialComposition (std::vector< ElementFraction > elements) | |
MaterialComposition (MaterialComposition &&)=default | |
MaterialComposition (const MaterialComposition &)=default | |
~MaterialComposition ()=default | |
MaterialComposition & | operator= (MaterialComposition &&)=default |
MaterialComposition & | operator= (const MaterialComposition &)=default |
auto | begin () const |
auto | end () const |
operator bool () const | |
Check if the composed material is valid, i.e. it is not vacuum. | |
size_t | size () const |
Return the number of elements. | |
Private Attributes | |
std::vector< ElementFraction > | m_elements |
Friends | |
bool | operator== (const MaterialComposition &lhs, const MaterialComposition &rhs) |
Material composed from multiple elements with varying factions.
Definition at line 91 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 91 of file MaterialComposition.hpp
|
default |
Construct an empty composition corresponding to vacuum.
|
inline |
Constructor from element fractions.
Rescales the fractions so they all add up to unity within the accuracy.
Definition at line 98 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 98 of file MaterialComposition.hpp
References m_elements, scale, G4INCL::CrossSections::total(), and Acts::UnitConstants::u.
|
default |
|
default |
|
default |
|
inline |
Definition at line 120 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 120 of file MaterialComposition.hpp
References m_elements.
|
inline |
Definition at line 121 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 121 of file MaterialComposition.hpp
References m_elements.
|
inline |
Check if the composed material is valid, i.e. it is not vacuum.
Definition at line 124 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 124 of file MaterialComposition.hpp
References m_elements.
|
default |
|
default |
|
inline |
Return the number of elements.
Definition at line 126 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 126 of file MaterialComposition.hpp
References m_elements.
|
friend |
Definition at line 131 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 131 of file MaterialComposition.hpp
|
private |
Definition at line 129 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 129 of file MaterialComposition.hpp
Referenced by begin(), end(), MaterialComposition(), operator bool(), and size().