From d588bd503c37d1cc5189d01a4ed11e96ea005e03 Mon Sep 17 00:00:00 2001 From: Shyam Kumar Date: Thu, 6 Jun 2024 20:45:27 +0200 Subject: [PATCH] Update Tracking_Performances.C --- benchmarks/tracking_performances/Tracking_Performances.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/tracking_performances/Tracking_Performances.C b/benchmarks/tracking_performances/Tracking_Performances.C index 49b35fba..0122406d 100644 --- a/benchmarks/tracking_performances/Tracking_Performances.C +++ b/benchmarks/tracking_performances/Tracking_Performances.C @@ -88,7 +88,7 @@ void Tracking_Performances(TString filename="tracking_output",TString particle=" Double_t pzrec = prec*TMath::Cos(theta[j]); Double_t pt_rec = sqrt(prec*prec-pzrec*pzrec); Double_t pzmc = pz_mc[j]; - Double_t etamc = -1.0*TMath::Log(TMath::Tan((TMath::ACos(pzmc/pmc))/2)); + Double_t etamc = -1.0*TMath::Log(TMath::Tan((TMath::ACos(pzmc/fabs(pmc)))/2)); Double_t p_resol = (prec-pmc)/pmc; for (int ibin=0; ibin