Skip to content

Commit b05e432

Browse files
authored
Update correlatorHfeHadrons.cxx
1 parent 6118361 commit b05e432

1 file changed

Lines changed: 3 additions & 23 deletions

File tree

PWGHF/HFC/TableProducer/correlatorHfeHadrons.cxx

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ struct HfCorrelatorHfeHadrons {
109109
registry.add("hMCgenNonHfEHCorrel", "Sparse for Delta phi and Delta eta for McGen Non Hf Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
110110
registry.add("hMCgenInclusiveEHCorrl", "Sparse for Delta phi and Delta eta for McGen Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
111111
registry.add("hptElectron", "hptElectron", {HistType::kTH1D, {axisPt}});
112-
registry.add("hptHadron", "hptHadron", {HistType::kTH1D, {axisPt}});
113-
registry.add("hMCgenptHadron", "hMCgenptHadron", {HistType::kTH1D, {axisPt}});
114-
registry.add("hMCgenptHadronprimary", "hMCgenptHadronprimary", {HistType::kTH1D, {axisPt}});
115112

116113
registry.add("hMixEventInclusiveEHCorrl", "Sparse for mix event Delta phi and Delta eta Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
117114
registry.add("hMixEventLSEHCorrel", "Sparse for mix event Delta phi and Delta eta Like sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
@@ -161,7 +158,6 @@ struct HfCorrelatorHfeHadrons {
161158
continue;
162159
}
163160
registry.fill(HIST("hTracksBin"), poolBin);
164-
registry.fill(HIST("hptHadron"), hTrack.pt());
165161
entryHadron(hTrack.phi(), hTrack.eta(), hTrack.pt(), poolBin, gCollisionId, timeStamp);
166162
}
167163

@@ -317,7 +313,7 @@ struct HfCorrelatorHfeHadrons {
317313
fillCorrelation(collision, electron, tracks, bc);
318314
}
319315

320-
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processData, "Process for Data", false);
316+
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processData, "Process for Data", true);
321317

322318
// ======= Process starts for McRec, Same event ============
323319

@@ -336,25 +332,9 @@ struct HfCorrelatorHfeHadrons {
336332
BinningTypeMcGen corrBinningMcGen{{zBins, multBinsMcGen}, true};
337333
int poolBin = corrBinningMcGen.getBin(std::make_tuple(mcCollision.posZ(), mcCollision.multMCFT0A()));
338334

339-
for (const auto& particleMc : mcParticles) {
340-
if (particleMc.eta() < etaTrackMin || particleMc.eta() > etaTrackMax) {
341-
continue;
342-
}
343-
if (particleMc.pt() < ptTrackMin) {
344-
continue;
345-
}
346-
347-
registry.fill(HIST("hMCgenptHadron"), particleMc.pt());
348-
if (particleMc.isPhysicalPrimary()) {
349-
350-
registry.fill(HIST("hMCgenptHadronprimary"), particleMc.pt());
351-
}
352-
}
353-
354335
double ptElectron = 0;
355336
double phiElectron = 0;
356337
double etaElectron = 0;
357-
358338
for (const auto& electronMc : electron) {
359339
double ptHadron = 0;
360340
double phiHadron = 0;
@@ -402,7 +382,7 @@ struct HfCorrelatorHfeHadrons {
402382
}
403383
}
404384
}
405-
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processMcGen, "Process MC Gen mode", true);
385+
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processMcGen, "Process MC Gen mode", false);
406386
// ====================== Implement Event mixing on Data ===============================
407387

408388
// ====================== Implement Event mixing on Data ===================================
@@ -485,7 +465,7 @@ struct HfCorrelatorHfeHadrons {
485465
}
486466
}
487467
}
488-
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processMcGenMixedEvent, "Process Mixed Event MC Gen mode", true);
468+
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processMcGenMixedEvent, "Process Mixed Event MC Gen mode", false);
489469
};
490470
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
491471
{

0 commit comments

Comments
 (0)