NAGASH 0.9.8
Next Generation Analysis System
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
NAGASH::Kinematics Class Reference

Provide some static functions to calculate kinematic variables. More...

#include "NAGASH/Kinematics.h"

Inheritance diagram for NAGASH::Kinematics:
NAGASH::Tool

Public Member Functions

 Kinematics (std::shared_ptr< MSGTool > MSG)
 

Static Public Member Functions

static double CosthStar (const TLorentzVector &Lepton, const TLorentzVector &AntiLepton)
 Calculate the Collins-Soper angle of a two-particle-system.
 
static double DeltaPhi (double, double)
 Calculate the \(\Delta\phi\) between two angles.
 
static double DeltaR (double, double, double, double)
 Calculate the \(\Delta R\) between two particles.
 
static std::vector< double > GetAiPolynominals (double costh, double phi)
 Calculate angular terms corresponding to each angular coefficient.
 
static void GetAiPolynominals (double costh, double phi, std::vector< double > &aipols)
 Calculate angular terms corresponding to each angular coefficient.
 
static void GetBDFAngles (const TLorentzVector &tlv1, const int &charge1, const TLorentzVector &tlv2, double &costh, double &phi)
 Calculate the decay angles in the Beam Direction Frame.
 
static void GetCSFAngles (const TLorentzVector &lep1, const int &charge1, const TLorentzVector &lep2, double ebeam, double &costh, double &phi)
 Calculate the decay angles in the Collins-Soper Frame.
 
static void GetProjections (const TLorentzVector &proj, const TLorentzVector &axis, double &par, double &perp)
 Get the parallel and perpendicular components of a vector corresponding to an axis.
 
static void GetVHFAngles (const TLorentzVector &lep1, const int &charge1, const TLorentzVector &lep2, double &costh, double &phi)
 Calculate the decay angles in the Vector Boson Helicity Frame.
 
static double MT (const TLorentzVector &l1, const TLorentzVector &l2)
 Calculate the transverse momentum of a two-particle-system.
 
static double SumAiPolynominals (std::vector< double > &ai, std::vector< double > &aimom)
 Calculate the angular polynomials.
 

Additional Inherited Members

- Protected Member Functions inherited from NAGASH::Tool
 Tool ()=delete
 
 Tool (const Tool &tool)=delete
 
 Tool (std::shared_ptr< MSGTool > MSG)
 Constructor.
 
 Tool (Tool &&tool)=delete
 
virtual ~Tool ()=default
 
std::shared_ptr< MSGToolMSGUser ()
 return the MSGTool inside.
 
Tooloperator= (const Tool &tool)=delete
 
Tooloperator= (Tool &&tool)=delete
 

Detailed Description

Provide some static functions to calculate kinematic variables.

Definition at line 16 of file Kinematics.h.

Constructor & Destructor Documentation

◆ Kinematics()

NAGASH::Kinematics::Kinematics ( std::shared_ptr< MSGTool MSG)
inline

Definition at line 19 of file Kinematics.h.

Member Function Documentation

◆ CosthStar()

double NAGASH::Kinematics::CosthStar ( const TLorentzVector &  Lepton,
const TLorentzVector &  AntiLepton 
)
inlinestatic

Calculate the Collins-Soper angle of a two-particle-system.

Parameters
Leptonfour-vector of the lepton.
AntiLeptonfour-vector of the anti-lepton.
Returns
the cosine value of the angle.

Definition at line 50 of file Kinematics.h.

◆ DeltaPhi()

double NAGASH::Kinematics::DeltaPhi ( double  phi1,
double  phi2 
)
inlinestatic

Calculate the \(\Delta\phi\) between two angles.

Parameters
phi1angle 1.
phi2angle 2.
Returns
the \(\Delta\phi\) between two them, in the range between \([-\pi,\pi]\).

Definition at line 107 of file Kinematics.h.

◆ DeltaR()

double NAGASH::Kinematics::DeltaR ( double  eta1,
double  phi1,
double  eta2,
double  phi2 
)
inlinestatic

Calculate the \(\Delta R\) between two particles.

Parameters
eta1the \(\eta\) of the first particle.
phi1the \(\phi\) of the first particle.
eta2the \(\eta\) of the second particle.
phi2the \(\phi\) of the second particle.
Returns
\(\Delta R\) value.

Definition at line 98 of file Kinematics.h.

◆ GetAiPolynominals() [1/2]

std::vector< double > Kinematics::GetAiPolynominals ( double  costh,
double  phi 
)
static

Calculate angular terms corresponding to each angular coefficient.

Parameters
[in]costhCosine value of the decay angle.
[in]phiPhi value of the decay angle.
Returns
aipols Output terms in the form of a vector.

Definition at line 119 of file Kinematics.cxx.

◆ GetAiPolynominals() [2/2]

void Kinematics::GetAiPolynominals ( double  costh,
double  phi,
std::vector< double > &  aipols 
)
static

Calculate angular terms corresponding to each angular coefficient.

Parameters
[in]costhCosine value of the decay angle.
[in]phiPhi value of the decay angle.
[out]aipolsOutput terms in the form of a vector.

Definition at line 91 of file Kinematics.cxx.

◆ GetBDFAngles()

void Kinematics::GetBDFAngles ( const TLorentzVector &  lep1,
const int &  charge1,
const TLorentzVector &  lep2,
double &  costh,
double &  phi 
)
static

Calculate the decay angles in the Beam Direction Frame.

Parameters
[in]lep1four-vector of lepton one.
[in]charge1charge of lepton one.
[in]lep2four-vector of lepton two.
[out]costh\(\cos\theta_{BD}\).
[out]phi\(\phi_{BD}\).

Definition at line 56 of file Kinematics.cxx.

◆ GetCSFAngles()

void Kinematics::GetCSFAngles ( const TLorentzVector &  lep1,
const int &  charge1,
const TLorentzVector &  lep2,
double  ebeam,
double &  costh,
double &  phi 
)
static

Calculate the decay angles in the Collins-Soper Frame.

Parameters
[in]lep1four-vector of lepton one.
[in]charge1charge of lepton one.
[in]lep2four-vector of lepton two.
[in]ebeamenergy of the beam.
[out]costh\(\cos\theta_{CS}\).
[out]phi\(\phi_{CS}\).

Definition at line 13 of file Kinematics.cxx.

◆ GetProjections()

void NAGASH::Kinematics::GetProjections ( const TLorentzVector &  proj,
const TLorentzVector &  axis,
double &  par,
double &  perp 
)
inlinestatic

Get the parallel and perpendicular components of a vector corresponding to an axis.

Parameters
[in]projthe vector to be projected.
[in]axisthe axis.
[out]parthe parallel component of the vector.
[out]perpthe perpendicular component of the vector.

Definition at line 70 of file Kinematics.h.

◆ GetVHFAngles()

void Kinematics::GetVHFAngles ( const TLorentzVector &  lep1,
const int &  charge1,
const TLorentzVector &  lep2,
double &  costh,
double &  phi 
)
static

Calculate the decay angles in the Vector Boson Helicity Frame.

Parameters
[in]lep1four-vector of lepton one.
[in]charge1charge of lepton one.
[in]lep2four-vector of lepton two.
[out]costh\(\cos\theta_{VH}\).
[out]phi\(\phi_{VH}\).

Definition at line 74 of file Kinematics.cxx.

◆ MT()

double NAGASH::Kinematics::MT ( const TLorentzVector &  l1,
const TLorentzVector &  l2 
)
inlinestatic

Calculate the transverse momentum of a two-particle-system.

Parameters
l1four-vector of particle one.
l2four-vector particle two.
Returns
the transverse momentum value.

Definition at line 41 of file Kinematics.h.

◆ SumAiPolynominals()

double NAGASH::Kinematics::SumAiPolynominals ( std::vector< double > &  ai,
std::vector< double > &  aimom 
)
inlinestatic

Calculate the angular polynomials.

Parameters
aithe \(A_i\)s
aimomthe value of each angular term.
Returns

Definition at line 80 of file Kinematics.h.


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