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.

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  }

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

Referenced by RazorComputer::compute().

◆ CalcMTR()

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

Definition at line 37 of file RazorComputer.cc.

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  }

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

Referenced by RazorComputer::compute().

groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
BTaggingMonitor_cfi.met
met
Definition: BTaggingMonitor_cfi.py:84
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
A
TtFullHadDaughter::B
static const std::string B
Definition: TtFullHadronicEvent.h:9