Skip to content

Commit 498ee88

Browse files
committed
Please consider the following formatting changes
1 parent 316551a commit 498ee88

2 files changed

Lines changed: 43 additions & 38 deletions

File tree

PWGHF/HFC/DataModel/DMesonPairsTables.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -121,22 +121,22 @@ DECLARE_SOA_COLUMN(TimestampHad, timestampHad, int64_t); //! Timestamp of the as
121121
} // namespace hf_correlation_d_meson_had
122122

123123
// Definition of the D meson table for D-had correlations. Contains the info needed at Data level.
124-
DECLARE_SOA_TABLE(DMesonCandInfo, "AOD", "DMESONCANDINFO", \
125-
hf_correlation_d_meson_had::PtD, \
126-
hf_correlation_d_meson_had::EtaD, \
127-
hf_correlation_d_meson_had::PhiD, \
128-
hf_correlation_d_meson_had::MD, \
129-
hf_correlation_d_meson_had::PoolBinD, \
130-
hf_correlation_d_meson_had::GIndexColD, \
131-
hf_correlation_d_meson_had::TimestampD);
124+
DECLARE_SOA_TABLE(DMesonCandInfo, "AOD", "DMESONCANDINFO",
125+
hf_correlation_d_meson_had::PtD,
126+
hf_correlation_d_meson_had::EtaD,
127+
hf_correlation_d_meson_had::PhiD,
128+
hf_correlation_d_meson_had::MD,
129+
hf_correlation_d_meson_had::PoolBinD,
130+
hf_correlation_d_meson_had::GIndexColD,
131+
hf_correlation_d_meson_had::TimestampD);
132132

133-
DECLARE_SOA_TABLE(AssocHadInfo, "AOD", "ASSOCHADINFO", \
134-
hf_correlation_d_meson_had::PtHad, \
135-
hf_correlation_d_meson_had::EtaHad, \
136-
hf_correlation_d_meson_had::PhiHad, \
137-
hf_correlation_d_meson_had::PoolBinHad, \
138-
hf_correlation_d_meson_had::GIndexColHad, \
139-
hf_correlation_d_meson_had::TimestampHad);
133+
DECLARE_SOA_TABLE(AssocHadInfo, "AOD", "ASSOCHADINFO",
134+
hf_correlation_d_meson_had::PtHad,
135+
hf_correlation_d_meson_had::EtaHad,
136+
hf_correlation_d_meson_had::PhiHad,
137+
hf_correlation_d_meson_had::PoolBinHad,
138+
hf_correlation_d_meson_had::GIndexColHad,
139+
hf_correlation_d_meson_had::TimestampHad);
140140

141141
} // namespace o2::aod
142142

PWGHF/HFC/TableProducer/correlatorDMesonPairs.cxx

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ struct HfCorrelatorD0HadronsSelection {
9898

9999
// Process function to select collisions with at least one D0 candidate passing the selection criteria
100100
void processD0SelectionData(SelCollisions::iterator const& collision,
101-
CandidatesD0Data const& candidates)
101+
CandidatesD0Data const& candidates)
102102
{
103103
bool isSel8 = !useSel8 || collision.sel8();
104104
bool isNoSameBunchPileUp = !selNoSameBunchPileUpColl ||
105-
collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup);
105+
collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup);
106106
bool isD0Found = !doSelD0Collision;
107107

108108
if (doSelD0Collision) {
@@ -804,27 +804,32 @@ struct HfCorrelatorDMesonPairs {
804804
if (applyMixedEvent) {
805805
// Loop on the associated tracks for offline event mixing
806806
for (const auto& track : tracks) {
807-
// apply track selection
808-
if (track.collisionId() != gCollisionId) continue;
809-
810-
// Manual trackFilter check
811-
if (std::abs(track.eta()) >= etaTrackMax) continue;
812-
if (track.pt() <= ptTrackMin) continue;
813-
if (std::abs(track.dcaXY()) >= dcaXYTrackMax) continue;
814-
if (std::abs(track.dcaZ()) >= dcaZTrackMax) continue;
815-
// Removing D0 daughters by checking track indices
816-
if (daughterTracksCutFlag) {
817-
if ((candidate1.prong0Id() == track.globalIndex()) || (candidate1.prong1Id() == track.globalIndex())) {
818-
continue;
819-
}
820-
}
821-
if (cntD0 == 0) {
822-
entryAssocHad(track.pt(), track.eta(), track.phi(), poolBin, gCollisionId, timeStamp);
823-
registry.fill(HIST("hTracksBin"), poolBin);
824-
registry.fill(HIST("hDcaXYVsPt"), track.dcaXY(), track.pt());
807+
// apply track selection
808+
if (track.collisionId() != gCollisionId)
809+
continue;
810+
811+
// Manual trackFilter check
812+
if (std::abs(track.eta()) >= etaTrackMax)
813+
continue;
814+
if (track.pt() <= ptTrackMin)
815+
continue;
816+
if (std::abs(track.dcaXY()) >= dcaXYTrackMax)
817+
continue;
818+
if (std::abs(track.dcaZ()) >= dcaZTrackMax)
819+
continue;
820+
// Removing D0 daughters by checking track indices
821+
if (daughterTracksCutFlag) {
822+
if ((candidate1.prong0Id() == track.globalIndex()) || (candidate1.prong1Id() == track.globalIndex())) {
823+
continue;
825824
}
826-
} // Hadron Tracks loop
827-
cntD0++;
825+
}
826+
if (cntD0 == 0) {
827+
entryAssocHad(track.pt(), track.eta(), track.phi(), poolBin, gCollisionId, timeStamp);
828+
registry.fill(HIST("hTracksBin"), poolBin);
829+
registry.fill(HIST("hDcaXYVsPt"), track.dcaXY(), track.pt());
830+
}
831+
} // Hadron Tracks loop
832+
cntD0++;
828833
}
829834

830835
// Loop on the second D0 candidate
@@ -886,7 +891,7 @@ struct HfCorrelatorDMesonPairs {
886891
entryD0PairMl(outputMlD0Cand1, outputMlD0barCand1, outputMlD0Cand2, outputMlD0barCand2);
887892
} else {
888893
// Fill entries
889-
fillEntry(isDCand1, isDbarCand1, isDCand2, isDbarCand2, candidateType1, candidateType2, HfHelper::yD0(candidate1), HfHelper::yD0(candidate2),
894+
fillEntry(isDCand1, isDbarCand1, isDCand2, isDbarCand2, candidateType1, candidateType2, HfHelper::yD0(candidate1), HfHelper::yD0(candidate2),
890895
candidate1.eta(), candidate2.eta(), candidate1.phi(), candidate2.phi(),
891896
candidate1.pt(), candidate2.pt(), HfHelper::invMassD0ToPiK(candidate1), HfHelper::invMassD0barToKPi(candidate1),
892897
HfHelper::invMassD0ToPiK(candidate2), HfHelper::invMassD0barToKPi(candidate2));

0 commit comments

Comments
 (0)