Skip to content

Commit

Permalink
Fixed bug in ZJetProduct::GetTransverseAngleCosine
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrHorizontal authored Aug 12, 2020
1 parent 73c753a commit 82f6c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compile/interface/ZJetProduct.h
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ class ZJetProduct : public KappaProduct
static double GetTransverseAngleCosine(const RMFLV* lvProj, const RMFLV* lvRef)
{
double scalPtSqRef = lvRef->Px() * lvRef->Px() + lvRef->Py() * lvRef->Py();
double scalPtSqProj = lvProj->Px() * lvProj->Px() + lvProj->Py() + lvProj->Py();
double scalPtSqProj = lvProj->Px() * lvProj->Px() + lvProj->Py() * lvProj->Py();
double scalPtProd = lvRef->Px() * lvProj->Px() + lvRef->Py() * lvProj->Py();
if(scalPtSqRef == 0 || scalPtSqProj == 0) return 0;
return scalPtProd / (sqrt(scalPtSqRef) * sqrt(scalPtSqProj));
Expand Down

0 comments on commit 82f6c70

Please sign in to comment.