Skip to content
Snippets Groups Projects
Commit 1bb6b2c6 authored by James Catmore's avatar James Catmore Committed by Graeme Stewart
Browse files

Fixing deltaR tool bug (delta phi calculation) (DerivationFrameworkTools-00-00-23)

	* Fixing deltaR tool bug (delta phi calculation)
	* Tagging as DerivationFrameworkTools-00-00-23
parent 1c42ea36
No related branches found
No related tags found
No related merge requests found
......@@ -187,7 +187,7 @@ namespace DerivationFramework {
{
float deltaPhi = fabs(phi1-phi2);
if (deltaPhi>TMath::Pi()) deltaPhi = 2.0*TMath::Pi() - deltaPhi;
float deltaPhiSq = (phi1-phi2)*(phi1-phi2);
float deltaPhiSq = deltaPhi*deltaPhi;
float deltaEtaSq = (eta1-eta2)*(eta1-eta2);
float deltaR = sqrt(deltaPhiSq+deltaEtaSq);
return deltaR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment