Skip to content

Commit 1411eb3

Browse files
authored
Update correct build correlatorHfeHadrons.cxx
1 parent f60db5c commit 1411eb3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

PWGHF/HFC/TableProducer/correlatorHfeHadrons.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ struct HfCorrelatorHfeHadrons {
292292
double etaHadron = 0;
293293
double deltaPhi = 0;
294294
double deltaEta = 0;
295-
ptElectron = electronMc.ptTrack();
296-
phiElectron = electronMc.phiTrack();
297-
etaElectron = electronMc.etaTrack();
295+
ptElectron = electronMc.ptTrackMc();
296+
phiElectron = electronMc.phiTrackMc();
297+
etaElectron = electronMc.etaTrackMc();
298298
for (const auto& particleMc : mcParticles) {
299299
if (particleMc.globalIndex() == electronMc.trackId()) {
300300

@@ -321,7 +321,7 @@ struct HfCorrelatorHfeHadrons {
321321
deltaPhi = RecoDecay::constrainAngle(phiElectron - phiHadron, -o2::constants::math::PIHalf);
322322
deltaEta = etaElectron - etaHadron;
323323
bool isNonHfeCorr = false;
324-
if (electronMc.isNonHfe()) {
324+
if (electronMc.isNonHfeMc()) {
325325

326326
registry.fill(HIST("hMCgenNonHfEHCorrel"), ptElectron, ptHadron, deltaPhi, deltaEta);
327327
isNonHfeCorr = true;
@@ -386,10 +386,10 @@ struct HfCorrelatorHfeHadrons {
386386
int poolBin = corrBinningMcGen.getBin(std::make_tuple(c1.posZ(), c1.multMCFT0A()));
387387
for (auto& [t1, t2] : combinations(CombinationsFullIndexPolicy(tracks1, tracks2))) {
388388
ptHadronMix = t2.pt();
389-
ptElectronMix = t1.ptTrack();
390-
phiElectronMix = t1.phiTrack();
389+
ptElectronMix = t1.ptTrackMc();
390+
phiElectronMix = t1.phiTrackMc();
391391
phiHadronMix = t2.phi();
392-
etaElectronMix = t1.etaTrack();
392+
etaElectronMix = t1.etaTrackMc();
393393
etaHadronMix = t2.eta();
394394
if (t2.eta() < etaTrackMin || t2.eta() > etaTrackMax) {
395395
continue;
@@ -404,7 +404,7 @@ struct HfCorrelatorHfeHadrons {
404404
deltaPhiMix = RecoDecay::constrainAngle(phiElectronMix - phiHadronMix, -o2::constants::math::PIHalf);
405405
deltaEtaMix = etaElectronMix - etaHadronMix;
406406
bool isNonHfeCorr = false;
407-
if (t1.isNonHfe()) {
407+
if (t1.isNonHfeMc()) {
408408
isNonHfeCorr = true;
409409
registry.fill(HIST("hMixEventMcGenNonHfEHCorrl"), ptElectronMix, ptHadronMix, deltaPhiMix, deltaEtaMix);
410410
} else {

0 commit comments

Comments
 (0)