EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::SinglyCharged Struct Reference

Charge and momentum interpretation for particles with +-e charge. More...

#include <acts/blob/sPHENIX/Core/include/Acts/EventData/Charge.hpp>

Public Member Functions

 SinglyCharged ()=default
 
template<typename T >
constexpr SinglyCharged (T absQ) noexcept
 
template<typename T >
constexpr T extractCharge (T qOverP) const noexcept
 
template<typename T >
constexpr T extractMomentum (T qOverP) const noexcept
 

Friends

constexpr bool operator== (SinglyCharged, SinglyCharged) noexcept
 

Detailed Description

Charge and momentum interpretation for particles with +-e charge.

Definition at line 84 of file Charge.hpp.

View newest version in sPHENIX GitHub at line 84 of file Charge.hpp

Constructor & Destructor Documentation

Acts::SinglyCharged::SinglyCharged ( )
default
template<typename T >
constexpr Acts::SinglyCharged::SinglyCharged ( T  absQ)
inlinenoexcept

Construct and verify the input charge magnitude (in debug builds).

This constructor is only provided to allow consistent construction.

Definition at line 90 of file Charge.hpp.

View newest version in sPHENIX GitHub at line 90 of file Charge.hpp

References Acts::UnitConstants::e, dfe::static_cast< T >(), and nlohmann::detail::void().

+ Here is the call graph for this function:

Member Function Documentation

template<typename T >
constexpr T Acts::SinglyCharged::extractCharge ( T  qOverP) const
inlinenoexcept

Definition at line 98 of file Charge.hpp.

View newest version in sPHENIX GitHub at line 98 of file Charge.hpp

References Acts::UnitConstants::e, and dfe::static_cast< T >().

Referenced by BOOST_AUTO_TEST_CASE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename T >
constexpr T Acts::SinglyCharged::extractMomentum ( T  qOverP) const
inlinenoexcept

Definition at line 102 of file Charge.hpp.

View newest version in sPHENIX GitHub at line 102 of file Charge.hpp

References kdfinder::abs(), Acts::UnitConstants::e, and dfe::static_cast< T >().

Referenced by BOOST_AUTO_TEST_CASE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

constexpr bool operator== ( SinglyCharged  ,
SinglyCharged   
)
friend

Compare for equality.

This is always true as SinglyCharged has no internal state. Must be available to provide a consistent interface.

Definition at line 110 of file Charge.hpp.

View newest version in sPHENIX GitHub at line 110 of file Charge.hpp


The documentation for this struct was generated from the following file: