CMS 3D CMS Logo

Typedefs | Functions
razor Namespace Reference

Typedefs

typedef reco::Candidate::LorentzVector LorentzVector
 

Functions

double CalcMR (const LorentzVector &ja, const LorentzVector &jb)
 
double CalcMTR (const LorentzVector &j1, const LorentzVector &j2, const pat::MET &met)
 

Typedef Documentation

◆ LorentzVector

Definition at line 25 of file RazorComputer.cc.

Function Documentation

◆ CalcMR()

double razor::CalcMR ( const LorentzVector ja,
const LorentzVector jb 
)

Definition at line 27 of file RazorComputer.cc.

References A, B, mathSSE::sqrt(), and groupFilesInBlocks::temp.

Referenced by RazorComputer::compute().

27  {
28  double A = ja.P();
29  double B = jb.P();
30  double az = ja.Pz();
31  double bz = jb.Pz();
32 
33  double temp = sqrt((A + B) * (A + B) - (az + bz) * (az + bz));
34 
35  return temp;
36  }
Definition: APVGainStruct.h:7
T sqrt(T t)
Definition: SSEVec.h:19
Definition: APVGainStruct.h:7

◆ CalcMTR()

double razor::CalcMTR ( const LorentzVector j1,
const LorentzVector j2,
const pat::MET met 
)

Definition at line 37 of file RazorComputer.cc.

References BTaggingMonitor_cfi::met, mathSSE::sqrt(), and groupFilesInBlocks::temp.

Referenced by RazorComputer::compute().

37  {
38  double temp = met.et() * (j1.Pt() + j2.Pt()) - met.px() * (j1.X() + j2.X()) - met.py() * (j1.Y() + j2.Y());
39  temp /= 2.;
40 
41  temp = sqrt(temp);
42 
43  return temp;
44  }
T sqrt(T t)
Definition: SSEVec.h:19