CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 29 of file RazorComputer.cc.

Function Documentation

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

Definition at line 31 of file RazorComputer.cc.

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

Referenced by RazorComputer::compute().

31  {
32  double A = ja.P();
33  double B = jb.P();
34  double az = ja.Pz();
35  double bz = jb.Pz();
36 
37  double temp = sqrt((A+B)*(A+B)-(az+bz)*(az+bz));
38 
39  return temp;
40  }
T sqrt(T t)
Definition: SSEVec.h:48
double razor::CalcMTR ( const LorentzVector j1,
const LorentzVector j2,
const pat::MET met 
)

Definition at line 41 of file RazorComputer.cc.

References reco::LeafCandidate::et(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), mathSSE::sqrt(), and groupFilesInBlocks::temp.

Referenced by RazorComputer::compute().

41  {
42 
43  double temp = met.et()*(j1.Pt()+j2.Pt()) - met.px()*(j1.X()+j2.X()) - met.py()*(j1.Y()+j2.Y());
44  temp /= 2.;
45 
46  temp = sqrt(temp);
47 
48  return temp;
49  }
virtual double et() const
transverse energy
T sqrt(T t)
Definition: SSEVec.h:48
virtual double px() const
x coordinate of momentum vector
virtual double py() const
y coordinate of momentum vector