Skip to content

Commit 471ff5f

Browse files
committed
minor fix for UPC processes
1 parent c585c36 commit 471ff5f

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

PWGHF/D2H/Tasks/taskD0.cxx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,15 +605,13 @@ struct HfTaskD0 {
605605
const auto& zdc = bcForUPC.zdc();
606606
zdcEnergyZNA = zdc.energyCommonZNA();
607607
zdcEnergyZNC = zdc.energyCommonZNC();
608-
}
609-
610-
// Fill QA histograms using the UPC BC for both FIT and ZDC
611-
if (hasZdc) {
612-
registry.fill(HIST("Data/fitInfo/ampFT0A_vs_ampFT0C"), fitInfo.ampFT0A, fitInfo.ampFT0C);
613608
registry.fill(HIST("Data/zdc/energyZNA_vs_energyZNC"), zdcEnergyZNA, zdcEnergyZNC);
614-
registry.fill(HIST("Data/hUpcGapAfterSelection"), gap);
609+
615610
}
616611

612+
registry.fill(HIST("Data/fitInfo/ampFT0A_vs_ampFT0C"), fitInfo.ampFT0A, fitInfo.ampFT0C);
613+
registry.fill(HIST("Data/hUpcGapAfterSelection"), gap);
614+
617615
if (hf_upc::isSingleSidedGap(gap)) {
618616
const auto thisCollId = collision.globalIndex();
619617
const auto& groupedD0Candidates = candidates.sliceBy(candD0PerCollision, thisCollId);

PWGHF/D2H/Tasks/taskDplus.cxx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ struct HfTaskDplus {
213213
registry.add("hPtVsYGenPrompt", "MC particles (matched, prompt);#it{p}_{T}^{gen.}; #it{y}", {HistType::kTH2F, {{vbins, "#it{p}_{T} (GeV/#it{c})"}, {100, -5., 5.}}});
214214
registry.add("hPtVsYGenNonPrompt", "MC particles (matched, non-prompt);#it{p}_{T}^{gen.}; #it{y}", {HistType::kTH2F, {{vbins, "#it{p}_{T} (GeV/#it{c})"}, {100, -5., 5.}}});
215215

216-
if (doprocessDataWithMl || doprocessData || doprocessDataWithMlWithUpc) {
216+
if (doprocessDataWithMl || doprocessData || doprocessDataWithMlWithUpc || doprocessDataWithUpc) {
217217
std::vector<AxisSpec> axes = {thnAxisMass, thnAxisPt};
218218

219219
if (doprocessDataWithMl || doprocessDataWithMlWithUpc) {
@@ -742,14 +742,10 @@ struct HfTaskDplus {
742742
const auto& zdc = bcForUPC.zdc();
743743
zdcEnergyZNA = zdc.energyCommonZNA();
744744
zdcEnergyZNC = zdc.energyCommonZNC();
745-
}
746-
747-
// Fill QA histograms using the UPC BC for both FIT and ZDC
748-
if (hasZdc) {
749-
registry.fill(HIST("Data/fitInfo/ampFT0A_vs_ampFT0C"), fitInfo.ampFT0A, fitInfo.ampFT0C);
750745
registry.fill(HIST("Data/zdc/energyZNA_vs_energyZNC"), zdcEnergyZNA, zdcEnergyZNC);
751-
registry.fill(HIST("Data/hUpcGapAfterSelection"), gap);
752746
}
747+
registry.fill(HIST("Data/fitInfo/ampFT0A_vs_ampFT0C"), fitInfo.ampFT0A, fitInfo.ampFT0C);
748+
registry.fill(HIST("Data/hUpcGapAfterSelection"), gap);
753749

754750
if (hf_upc::isSingleSidedGap(gap)) {
755751
const auto thisCollId = collision.globalIndex();

PWGHF/Utils/utilsUpcHf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ inline auto determineGapType(TCollision const& collision,
117117
/// \return true if single-sided gap, false otherwise
118118
constexpr bool isSingleSidedGap(int gap) noexcept
119119
{
120-
return (gap == TrueGap::SingleGapA || gap == TrueGap::SingleGapC);
120+
return (gap == TrueGap::SingleGapA || gap == TrueGap::SingleGapC || gap == TrueGap::DoubleGap || gap == TrueGap::BadDoubleGap || gap == TrueGap::TrkOutOfRange || gap == TrueGap::NoUpc);
121121
}
122122

123123
/// \brief Get gap type name as string

0 commit comments

Comments
 (0)