Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/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. | |
std::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 92 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 92 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 99 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 99 of file MaterialComposition.hpp
References fixGDML::element, m_elements, Acts::Experimental::detail::BlueprintHelper::sort(), and physmon_ckf_tracking::u.
|
default |
|
default |
|
default |
|
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 |
Definition at line 122 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 122 of file MaterialComposition.hpp
References m_elements.
|
inline |
Check if the composed material is valid, i.e. it is not vacuum.
Definition at line 125 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 125 of file MaterialComposition.hpp
References m_elements.
|
default |
|
default |
|
inline |
Return the number of elements.
Definition at line 127 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 127 of file MaterialComposition.hpp
References m_elements.
|
friend |
Definition at line 132 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 132 of file MaterialComposition.hpp
|
private |
Definition at line 130 of file MaterialComposition.hpp.
View newest version in sPHENIX GitHub at line 130 of file MaterialComposition.hpp
Referenced by begin(), end(), MaterialComposition(), operator bool(), and size().