GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T > Class Template Reference

Public Member Functions

 SumHelicityAmpVminusARes ()
 
 ~SumHelicityAmpVminusARes ()
 
T & operator() (BosonPolarization lambda_k, NucleonPolarization lambda_2, NucleonPolarization lambda_1)
 
template<typename S = T, enable_if_t< is_complex< S >{}> * = nullptr>
auto Re (BosonPolarization lambda_k, NucleonPolarization lambda_2, NucleonPolarization lambda_1) -> typename S::value_type
 
template<typename S = T, enable_if_t< is_complex< S >{}> * = nullptr>
auto Im (BosonPolarization lambda_k, NucleonPolarization lambda_2, NucleonPolarization lambda_1) -> typename S::value_type
 
template<typename S = T, enable_if_t<!is_complex< S >{}> * = nullptr>
auto Re (BosonPolarization lambda_k, NucleonPolarization lambda_2, NucleonPolarization lambda_1) -> S
 
template<typename S = T, enable_if_t<!is_complex< S >{}> * = nullptr>
auto Im (BosonPolarization lambda_k, NucleonPolarization lambda_2, NucleonPolarization lambda_1) -> S
 

Private Attributes

std::vector< T > array
 

Detailed Description

template<typename T>
class genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >

Definition at line 324 of file MKSPPPXSec2020.h.

Constructor & Destructor Documentation

Definition at line 328 of file MKSPPPXSec2020.h.

Definition at line 329 of file MKSPPPXSec2020.h.

329 {}

Member Function Documentation

template<typename T>
template<typename S = T, enable_if_t< is_complex< S >{}> * = nullptr>
auto genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::Im ( BosonPolarization  lambda_k,
NucleonPolarization  lambda_2,
NucleonPolarization  lambda_1 
) -> typename S::value_type
inline

Definition at line 342 of file MKSPPPXSec2020.h.

References genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::operator()().

343  {
344  return this->operator()(lambda_k, lambda_2, lambda_1).imag();
345  }
T & operator()(BosonPolarization lambda_k, NucleonPolarization lambda_2, NucleonPolarization lambda_1)
template<typename T>
template<typename S = T, enable_if_t<!is_complex< S >{}> * = nullptr>
auto genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::Im ( BosonPolarization  lambda_k,
NucleonPolarization  lambda_2,
NucleonPolarization  lambda_1 
) -> S
inline

Definition at line 352 of file MKSPPPXSec2020.h.

353  {
354  return 0;
355  }
template<typename T>
T& genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::operator() ( BosonPolarization  lambda_k,
NucleonPolarization  lambda_2,
NucleonPolarization  lambda_1 
)
inline

Definition at line 330 of file MKSPPPXSec2020.h.

References genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::array.

Referenced by genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::Im(), and genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::Re().

331  {
332  int indx = 2*(2*lambda_k+lambda_2)+lambda_1;
333  return array[indx];
334  }
template<typename T>
template<typename S = T, enable_if_t< is_complex< S >{}> * = nullptr>
auto genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::Re ( BosonPolarization  lambda_k,
NucleonPolarization  lambda_2,
NucleonPolarization  lambda_1 
) -> typename S::value_type
inline

Definition at line 337 of file MKSPPPXSec2020.h.

References genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::operator()().

338  {
339  return this->operator()(lambda_k, lambda_2, lambda_1).real();
340  }
T & operator()(BosonPolarization lambda_k, NucleonPolarization lambda_2, NucleonPolarization lambda_1)
template<typename T>
template<typename S = T, enable_if_t<!is_complex< S >{}> * = nullptr>
auto genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::Re ( BosonPolarization  lambda_k,
NucleonPolarization  lambda_2,
NucleonPolarization  lambda_1 
) -> S
inline

Definition at line 347 of file MKSPPPXSec2020.h.

References genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::operator()().

348  {
349  return this->operator()(lambda_k, lambda_2, lambda_1);
350  }
T & operator()(BosonPolarization lambda_k, NucleonPolarization lambda_2, NucleonPolarization lambda_1)

Member Data Documentation

template<typename T>
std::vector<T> genie::MKSPPPXSec2020::SumHelicityAmpVminusARes< T >::array
private

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