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

Charge and momentum interpretation for neutral particles. More...

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

Public Member Functions

 Neutral ()=default
 
template<typename T >
constexpr Neutral (T absQ) noexcept
 
template<typename T >
constexpr T extractCharge (T) const noexcept
 
template<typename T >
constexpr T extractMomentum (T pInv) const noexcept
 

Friends

constexpr bool operator== (Neutral, Neutral) noexcept
 

Detailed Description

Charge and momentum interpretation for neutral particles.

Definition at line 53 of file Charge.hpp.

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

Constructor & Destructor Documentation

Acts::Neutral::Neutral ( )
default
template<typename T >
constexpr Acts::Neutral::Neutral ( 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 59 of file Charge.hpp.

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

References nlohmann::detail::void().

+ Here is the call graph for this function:

Member Function Documentation

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

Definition at line 66 of file Charge.hpp.

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

Referenced by BOOST_AUTO_TEST_CASE().

+ Here is the caller graph for this function:

template<typename T >
constexpr T Acts::Neutral::extractMomentum ( T  pInv) const
inlinenoexcept

Definition at line 70 of file Charge.hpp.

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

References kdfinder::abs().

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== ( Neutral  ,
Neutral   
)
friend

Compare for equality.

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

Definition at line 80 of file Charge.hpp.

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


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