Skip to content

Commit 58f18a6

Browse files
authored
[PWGHF] Fix derived data issue for HF correlations (#8608)
1 parent eb44a5c commit 58f18a6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

PWGHF/HFC/DataModel/DerivedDataCorrelationTables.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ DECLARE_SOA_COLUMN(Multiplicity, multiplicity, float); //! Event multiplicity
2626
DECLARE_SOA_COLUMN(PosZ, posZ, float); //! Primary vertex z position
2727

2828
} // namespace hf_collisions_reduced
29+
2930
DECLARE_SOA_TABLE(HfcRedCollisions, "AOD", "HFCREDCOLLISION", //! Table with collision info
3031
soa::Index<>,
3132
aod::hf_collisions_reduced::Multiplicity,
@@ -44,7 +45,7 @@ DECLARE_SOA_COLUMN(EtaCand, etaCand, float); //! Eta of the candida
4445
DECLARE_SOA_COLUMN(PtCand, ptCand, float); //! Pt of the candidate
4546
DECLARE_SOA_COLUMN(InvMassDs, invMassDs, float); //! Invariant mass of Ds candidate
4647
} // namespace hf_candidate_reduced
47-
DECLARE_SOA_TABLE(DsCandReduced, "AOD", "DSCANDREDUCED", //! Table with Ds candidate info (rectangular selection)
48+
DECLARE_SOA_TABLE(DsCandReduceds, "AOD", "DSCANDREDUCED", //! Table with Ds candidate info (rectangular selection)
4849
soa::Index<>,
4950
aod::hf_candidate_reduced::HfcRedCollisionId,
5051
aod::hf_candidate_reduced::PhiCand,
@@ -59,7 +60,7 @@ DECLARE_SOA_COLUMN(EtaAssocTrack, etaAssocTrack, float); //! Eta of the track
5960
DECLARE_SOA_COLUMN(PhiAssocTrack, phiAssocTrack, float); //! Phi of the track
6061
DECLARE_SOA_COLUMN(PtAssocTrack, ptAssocTrack, float); //! Pt of the track
6162
} // namespace hf_assoc_track_reduced
62-
DECLARE_SOA_TABLE(AssocTrackRed, "AOD", "ASSOCTRACKRED", //! Table with associated track info
63+
DECLARE_SOA_TABLE(AssocTrackReds, "AOD", "ASSOCTRACKRED", //! Table with associated track info
6364
soa::Index<>,
6465
aod::hf_candidate_reduced::HfcRedCollisionId,
6566
aod::hf_assoc_track_reduced::PhiAssocTrack,

PWGHF/HFC/TableProducer/correlatorDsHadrons.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ struct HfCorrelatorDsHadronsSelCollision {
7979
bool isSel8 = true;
8080
bool isNosameBunchPileUp = true;
8181
if (doSelDsCollision) {
82+
isDsFound = false; // if candidate table is empty for-loop is not performed
8283
for (const auto& candidate : candidates) {
8384
if (std::abs(hfHelper.yDs(candidate)) > yCandMax || candidate.pt() < ptCandMin) {
8485
isDsFound = false;
@@ -89,9 +90,11 @@ struct HfCorrelatorDsHadronsSelCollision {
8990
}
9091
}
9192
if (useSel8) {
93+
isSel8 = false;
9294
isSel8 = collision.sel8();
9395
}
9496
if (selNoSameBunchPileUpColl) {
97+
isNosameBunchPileUp = false;
9598
isNosameBunchPileUp = static_cast<bool>(collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup));
9699
}
97100
isSelColl = isDsFound && isSel8 && isNosameBunchPileUp;
@@ -139,8 +142,8 @@ struct HfCorrelatorDsHadrons {
139142
Produces<aod::DsCandGenInfo> entryDsCandGenInfo;
140143
Produces<aod::TrackRecoInfo> entryTrackRecoInfo;
141144
Produces<aod::HfcRedCollisions> collReduced;
142-
Produces<aod::DsCandReduced> candReduced;
143-
Produces<aod::AssocTrackRed> assocTrackReduced;
145+
Produces<aod::DsCandReduceds> candReduced;
146+
Produces<aod::AssocTrackReds> assocTrackReduced;
144147

145148
Configurable<bool> fillHistoData{"fillHistoData", true, "Flag for filling histograms in data processes"};
146149
Configurable<bool> fillHistoMcRec{"fillHistoMcRec", true, "Flag for filling histograms in MC Rec processes"};

0 commit comments

Comments
 (0)