MINT2
Public Member Functions | Protected Attributes | List of all members
SpinSumV Class Reference

#include <SpinSumV.h>

Public Member Functions

 SpinSumV (const TLorentzVector &p, double mR)
 
TLorentzVector Dot (const TLorentzVector &rhs) const
 
double Sandwich (const TLorentzVector &lhs, const TLorentzVector &rhs) const
 

Protected Attributes

TLorentzVector _p
 
double _mR
 

Detailed Description

Definition at line 10 of file SpinSumV.h.

Constructor & Destructor Documentation

◆ SpinSumV()

SpinSumV::SpinSumV ( const TLorentzVector &  p,
double  mR 
)
inline

Definition at line 15 of file SpinSumV.h.

16  : _p(p)
17  , _mR(mR)
18  {}
double _mR
Definition: SpinSumV.h:13
TLorentzVector _p
Definition: SpinSumV.h:12

Member Function Documentation

◆ Dot()

TLorentzVector SpinSumV::Dot ( const TLorentzVector &  rhs) const
inline

Definition at line 20 of file SpinSumV.h.

20  {
21  /*
22  std::cout << " rhs = " << rhs
23  << ", _p = " << _p
24  << ", _mR " << _mR
25  << " _p.Dot(rhs) " << _p.Dot(rhs)
26  << " _mR * _mR " << _mR*_mR
27  << ", ( _p.Dot(rhs) / _mR*_mR ); " << ( _p.Dot(rhs) / _mR*_mR )
28  << std::endl;
29  */
30  return -rhs + _p * ( _p.Dot(rhs) / (_mR*_mR) );
31  }
double _mR
Definition: SpinSumV.h:13
TLorentzVector _p
Definition: SpinSumV.h:12

◆ Sandwich()

double SpinSumV::Sandwich ( const TLorentzVector &  lhs,
const TLorentzVector &  rhs 
) const
inline

Definition at line 32 of file SpinSumV.h.

33  {
34  return lhs.Dot(this->Dot(rhs));
35  }
TLorentzVector Dot(const TLorentzVector &rhs) const
Definition: SpinSumV.h:20

Member Data Documentation

◆ _mR

double SpinSumV::_mR
protected

Definition at line 13 of file SpinSumV.h.

◆ _p

TLorentzVector SpinSumV::_p
protected

Definition at line 12 of file SpinSumV.h.


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