EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Core/include/Acts/EventData/Charge.hpp>
Public Member Functions | |
AnyCharge ()=delete | |
Delete default constructor to ensure charge is always explicitely given. | |
template<typename T > | |
constexpr | AnyCharge (T absQ) noexcept |
Construct with the magnitude of the input charge. | |
template<typename T > | |
constexpr T | extractCharge (T qOverP) const noexcept |
template<typename T > | |
constexpr T | extractMomentum (T qOverP) const noexcept |
Private Attributes | |
float | m_magnitude |
Friends | |
constexpr bool | operator== (AnyCharge lhs, AnyCharge rhs) noexcept |
Compare for equality. | |
Charge and momentum interpretation for arbitrarily charged particles.
Only a charge magnitude identical to zero is interpreted as representing a neutral particle. This avoids ambiguities that might arise from using an approximate comparison with an arbitrary epsilon.
Definition at line 120 of file Charge.hpp.
View newest version in sPHENIX GitHub at line 120 of file Charge.hpp
|
delete |
Delete default constructor to ensure charge is always explicitely given.
|
inlinenoexcept |
Construct with the magnitude of the input charge.
Definition at line 126 of file Charge.hpp.
View newest version in sPHENIX GitHub at line 126 of file Charge.hpp
Definition at line 131 of file Charge.hpp.
View newest version in sPHENIX GitHub at line 131 of file Charge.hpp
References m_magnitude, and dfe::static_cast< T >().
Referenced by BOOST_AUTO_TEST_CASE().
Definition at line 135 of file Charge.hpp.
View newest version in sPHENIX GitHub at line 135 of file Charge.hpp
References kdfinder::abs(), m_magnitude, and dfe::static_cast< T >().
Referenced by BOOST_AUTO_TEST_CASE().
Compare for equality.
Definition at line 145 of file Charge.hpp.
View newest version in sPHENIX GitHub at line 145 of file Charge.hpp
|
private |
Definition at line 142 of file Charge.hpp.
View newest version in sPHENIX GitHub at line 142 of file Charge.hpp
Referenced by extractCharge(), and extractMomentum().