Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions PWGHF/HFC/TableProducer/correlatorHfeHadrons.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,17 @@ struct HfCorrelatorHfeHadrons {
int gCollisionId = collision.globalIndex();
int64_t timeStamp = bc.timestamp();

// Add hadron Table For Mix Event Electron Hadron correlation
for (const auto& hTrack : tracks) {
registry.fill(HIST("hTracksBin"), poolBin);
entryHadron(hTrack.phi(), hTrack.eta(), hTrack.pt(), poolBin, gCollisionId, timeStamp);
}

// Construct Deta Phi between electrons and hadrons

double ptElectron = -999;
double phiElectron = -999;
double etaElectron = -999;
int nElectron = 0;

for (const auto& eTrack : electron) {
ptElectron = eTrack.ptTrack();
Expand Down Expand Up @@ -209,10 +214,7 @@ struct HfCorrelatorHfeHadrons {
if (ptCondition && (ptElectron < ptHadron)) {
continue;
}
if (nElectron == 0) {
registry.fill(HIST("hTracksBin"), poolBin);
entryHadron(phiHadron, etaHadron, ptHadron, poolBin, gCollisionId, timeStamp);
}

deltaPhi = RecoDecay::constrainAngle(phiElectron - phiHadron, -o2::constants::math::PIHalf);
deltaEta = etaElectron - etaHadron;
registry.fill(HIST("hInclusiveEHCorrel"), ptElectron, ptHadron, deltaPhi, deltaEta);
Expand All @@ -236,7 +238,7 @@ struct HfCorrelatorHfeHadrons {
entryElectronHadronPair(deltaPhi, deltaEta, ptElectron, ptHadron, poolBin, nElHadLSCorr, nElHadUSCorr);

} // end Hadron Track loop
nElectron++;

} // end Electron loop
}

Expand Down
4 changes: 2 additions & 2 deletions PWGHF/HFL/TableProducer/electronSelectionWithTpcEmcal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ struct HfElectronSelectionWithTpcEmcal {
timeEmcCluster = emcCluster.time();
cellEmcCluster = emcCluster.nCells();

deltaPhiMatch = matchTrack.trackPhiEmcal() - phiMatchEmcCluster;
deltaEtaMatch = matchTrack.trackEtaEmcal() - etaMatchEmcCluster;
deltaPhiMatch = ematchTrack.deltaPhi();
deltaEtaMatch = ematchTrack.deltaEta();

// Track and EMCal cluster Matching
if (std::abs(timeEmcCluster) > timeEmcClusterMax) {
Expand Down
Loading