Skip to content

Commit 85fae98

Browse files
authored
[PWGHF] modified function to get EMCal matched track phi and eta (#8557)
1 parent 5b39df2 commit 85fae98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ struct HfTaskElectronWeakBoson {
206206
// LOG(info) << "tr phi1 = " << track.phi();
207207
// LOG(info) << "emc phi = " << phiEmc;
208208
if (nMatch == 0) {
209-
double dEta = match.track_as<TrackEle>().eta() - etaEmc;
210-
double dPhi = match.track_as<TrackEle>().phi() - phiEmc;
209+
double dEta = match.track_as<TrackEle>().trackEtaEmcal() - etaEmc;
210+
double dPhi = match.track_as<TrackEle>().trackPhiEmcal() - phiEmc;
211211
dPhi = RecoDecay::constrainAngle(dPhi, -o2::constants::math::PI);
212212

213213
registry.fill(HIST("hMatchPhi"), phiEmc, match.track_as<TrackEle>().phi());

0 commit comments

Comments
 (0)