Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UtilDimuon Namespace Reference

Functions

void GetX1X2 (const SQDimuon *dim, double &x1, double &x2)
 
void GetX1X2 (const SQDimuon *dim, float &x1, float &x2)
 
double GetX1 (const SQDimuon *dim)
 
double GetX2 (const SQDimuon *dim)
 
void CalcVar (const SQDimuon *dim, double &mass, double &pT, double &x1, double &x2, double &xF, double &costh, double &phi)
 Calculate the key kinematic variables of dimuon. More...
 
void CalcVar (const TLorentzVector &p_pos, const TLorentzVector &p_neg, double &mass, double &pT, double &x1, double &x2, double &xF, double &costh, double &phi)
 Calculate the key kinematic variables of dimuon. More...
 

Function Documentation

void UtilDimuon::CalcVar ( const SQDimuon dim,
double &  mass,
double &  pT,
double &  x1,
double &  x2,
double &  xF,
double &  costh,
double &  phi 
)

Calculate the key kinematic variables of dimuon.

Typical usage:

double mass, pT, x1, x2, xF, costh, phi;
UtilDimuon::CalcVar(dim, mass, pT, x1, x2, xF, costh, phi);

The costh and phi values are of the Collins-Soper frame. Please look into this function to check the formulae used. The formulae were taken from SQMCDimuon::calcVariable() on 2020-11-05.

Definition at line 52 of file UtilDimuon.cc.

References SQDimuon::get_mom_neg(), and SQDimuon::get_mom_pos().

Referenced by SQPrimaryParticleGen::generateDimuon(), SQPrimaryParticleGen::generateDrellYan(), SQPrimaryParticleGen::generateJPsi(), SQPrimaryParticleGen::generatePsip(), and AnaSimDst::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void UtilDimuon::CalcVar ( const TLorentzVector &  p_pos,
const TLorentzVector &  p_neg,
double &  mass,
double &  pT,
double &  x1,
double &  x2,
double &  xF,
double &  costh,
double &  phi 
)

Calculate the key kinematic variables of dimuon.

Definition at line 59 of file UtilDimuon.cc.

References DPGEN::bv_cms, DPGEN::ebeam, DPGEN::mp, DPGEN::p_beam(), DPGEN::p_cms, DPGEN::p_target(), DPGEN::s, and DPGEN::sqrts.

+ Here is the call graph for this function:

double UtilDimuon::GetX1 ( const SQDimuon dim)

Definition at line 26 of file UtilDimuon.cc.

References GetX1X2().

+ Here is the call graph for this function:

void UtilDimuon::GetX1X2 ( const SQDimuon dim,
double &  x1,
double &  x2 
)

Definition at line 6 of file UtilDimuon.cc.

References E_BEAM, SQDimuon::get_mom_neg(), SQDimuon::get_mom_pos(), M_P, DPGEN::p_beam(), DPGEN::p_cms, and DPGEN::p_target().

Referenced by GetX1(), GetX1X2(), and GetX2().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void UtilDimuon::GetX1X2 ( const SQDimuon dim,
float &  x1,
float &  x2 
)

Definition at line 18 of file UtilDimuon.cc.

References GetX1X2().

+ Here is the call graph for this function:

double UtilDimuon::GetX2 ( const SQDimuon dim)

Definition at line 33 of file UtilDimuon.cc.

References GetX1X2().

+ Here is the call graph for this function: