Class Reference for E1039 Core & Analysis Software
UtilDimuon.h
Go to the documentation of this file.
1 #ifndef _UTIL_DIMUON__H_
2 #define _UTIL_DIMUON__H_
3 class SQDimuon;
4 class SQDimuonVector;
5 class TVector3;
6 class TLorentzVector;
7 
8 namespace UtilDimuon {
9  SQDimuon* FindDimuonByID(const SQDimuonVector* vec, const int id_dim, const bool do_assert=false);
10 
11  void GetX1X2(const SQDimuon* dim, double& x1, double& x2);
12  void GetX1X2(const SQDimuon* dim, float& x1, float& x2);
13  double GetX1(const SQDimuon* dim);
14  double GetX2(const SQDimuon* dim);
15 
16  void CalcVar(const SQDimuon* dim, double& mass, double& pT, double& x1, double& x2, double& xF);
17  void CalcVar(const TLorentzVector& p_pos, const TLorentzVector& p_neg, double& mass, double& pT, double& x1, double& x2, double& xF);
18 
19  void CalcVar(const SQDimuon* dim, double& mass, double& pT, double& x1, double& x2, double& xF, double& costh, double& phi);
20  void CalcVar(const TLorentzVector& p_pos, const TLorentzVector& p_neg, double& mass, double& pT, double& x1, double& x2, double& xF, double& costh, double& phi);
21 
22  void Lab2CollinsSoper(const SQDimuon* dim, double& costh, double& phi);
23  void Lab2CollinsSoper(const TLorentzVector& p1, const TLorentzVector& p2, double& costh, double& phi);
24  void Lab2CollinsSoper(const TVector3& p1, const TVector3& p2, double& costh, double& phi);
25  void Lab2CollinsSoper(const double px1, const double py1, const double pz1,
26  const double px2, const double py2, const double pz2, double& costh, double& phi);
27 }
28 
29 #endif /* _UTIL_DIMUON__H_ */
An SQ interface class to hold a list of SQDimuon objects.
An SQ interface class to hold one true or reconstructed dimuon.
Definition: SQDimuon.h:8
void GetX1X2(const SQDimuon *dim, double &x1, double &x2)
OBSOLETE: Use CalcVar() instead.
Definition: UtilDimuon.cc:25
SQDimuon * FindDimuonByID(const SQDimuonVector *vec, const int id_dim, const bool do_assert=false)
Find a dimuon by dimuon ID in the given dimuon list.
Definition: UtilDimuon.cc:12
double GetX1(const SQDimuon *dim)
OBSOLETE: Use CalcVar() instead.
Definition: UtilDimuon.cc:47
void CalcVar(const SQDimuon *dim, double &mass, double &pT, double &x1, double &x2, double &xF)
Calculate the key kinematic variables of dimuon.
Definition: UtilDimuon.cc:70
double GetX2(const SQDimuon *dim)
OBSOLETE: Use CalcVar() instead.
Definition: UtilDimuon.cc:55
void Lab2CollinsSoper(const SQDimuon *dim, double &costh, double &phi)
Convert the momenta of muon pair from Lab frame to Collins-Soper frame.
Definition: UtilDimuon.cc:125