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

#include <SpinHelper.h>

Public Member Functions

__device__ SpinSumT (const gpuLVec &p, fptype mR)
 
__device__ fptype Sandwich (const gpuLVec &lm, const gpuLVec &ln, const gpuLVec &ra, const gpuLVec &rb)
 

Protected Attributes

SpinSumV _sv
 

Detailed Description

Definition at line 99 of file SpinHelper.h.

Constructor & Destructor Documentation

◆ SpinSumT()

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

Definition at line 104 of file SpinHelper.h.

105  : _sv(p, mR) {}

Member Function Documentation

◆ Sandwich()

__device__ fptype GooFit::SpinSumT::Sandwich ( const gpuLVec &  lm,
const gpuLVec &  ln,
const gpuLVec &  ra,
const gpuLVec &  rb 
)
inline

Definition at line 106 of file SpinHelper.h.

References GooFit::SpinSumV::Sandwich().

106  {
107  fptype manb = _sv.Sandwich(lm, ra) * _sv.Sandwich(ln, rb);
108  fptype mbna = _sv.Sandwich(lm, rb) * _sv.Sandwich(ln, ra);
109  fptype mnab = _sv.Sandwich(lm, ln) * _sv.Sandwich(ra, rb);
110 
111  return (1. / 2.) * (manb + mbna) - (1. / 3.) * mnab;
112  }
double fptype
__device__ fptype Sandwich(const gpuLVec &lhs, const gpuLVec &rhs) const
Definition: SpinHelper.h:96

Member Data Documentation

◆ _sv

SpinSumV GooFit::SpinSumT::_sv
protected

Definition at line 101 of file SpinHelper.h.


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