CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

Definition at line 25 of file RazorComputer.cc.

Function Documentation

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
double razor::CalcMTR ( const LorentzVector j1,
const LorentzVector j2,
const pat::MET met 
)

Definition at line 37 of file RazorComputer.cc.

References reco::LeafCandidate::et(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), 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  }
double px() const final
x coordinate of momentum vector
T sqrt(T t)
Definition: SSEVec.h:19
double py() const final
y coordinate of momentum vector
double et() const final
transverse energy