GooFit  v2.1.3
Public Member Functions | Protected Attributes | List of all members
GooFit::SpinSumV Class Reference

#include <SpinHelper.h>

Public Member Functions

__device__ SpinSumV (const gpuLVec &p, fptype mR)
 
__device__ gpuLVec Dot (const gpuLVec &rhs) const
 
__device__ fptype Sandwich (const gpuLVec &lhs, const gpuLVec &rhs) const
 

Protected Attributes

gpuLVec _p
 
fptype _mR
 

Detailed Description

Definition at line 86 of file SpinHelper.h.

Constructor & Destructor Documentation

◆ SpinSumV()

__device__ GooFit::SpinSumV::SpinSumV ( const gpuLVec &  p,
fptype  mR 
)
inline

Definition at line 91 of file SpinHelper.h.

92  : _p(p)
93  , _mR(mR) {}

Member Function Documentation

◆ Dot()

__device__ gpuLVec GooFit::SpinSumV::Dot ( const gpuLVec &  rhs) const
inline

Definition at line 95 of file SpinHelper.h.

95 { return -1.0 * rhs + _p * (_p.Dot(rhs) / (_mR * _mR)); }

◆ Sandwich()

__device__ fptype GooFit::SpinSumV::Sandwich ( const gpuLVec &  lhs,
const gpuLVec &  rhs 
) const
inline

Definition at line 96 of file SpinHelper.h.

Referenced by GooFit::SpinSumT::Sandwich().

96 { return lhs.Dot(this->Dot(rhs)); }
__device__ gpuLVec Dot(const gpuLVec &rhs) const
Definition: SpinHelper.h:95

Member Data Documentation

◆ _mR

fptype GooFit::SpinSumV::_mR
protected

Definition at line 89 of file SpinHelper.h.

◆ _p

gpuLVec GooFit::SpinSumV::_p
protected

Definition at line 88 of file SpinHelper.h.


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