From fff67ae55dc303319eeb902373cc9e36a11ef797 Mon Sep 17 00:00:00 2001 From: Archita-Dash Date: Mon, 23 Dec 2024 15:47:02 +0100 Subject: [PATCH] obtaining track eta and phi info from the Emcal surface and not from the PV --- PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx b/PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx index 43542d28919..bc57db97205 100644 --- a/PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx +++ b/PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx @@ -193,8 +193,8 @@ struct EmcalClusterHadronicCorrectionTask { // c) If you want to do systematic studies -> perform the above two checks a) and b), and then subtract 70% energy instead of 100% // Perform dEta/dPhi matching - double dEta = match.track_as().eta() - cluster.eta(); - double dPhi = TVector2::Phi_mpi_pi(match.track_as().phi() - cluster.phi()); + double dEta = match.track_as().etaEmcal() - cluster.eta(); + double dPhi = TVector2::Phi_mpi_pi(match.track_as().phiEmcal() - cluster.phi()); // Apply the eta and phi matching thresholds // dEta and dPhi cut : ensures that the matched track is within the desired eta/phi window