Skip to content

Commit 690b3f1

Browse files
committed
o2-linter fix
1 parent 50d4c32 commit 690b3f1

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ struct HfDataCreatorCharmHadPiReduced {
625625
std::vector<int> arrDaughDsIndex;
626626
std::array<int, 2> arrPDGDaughDs;
627627
RecoDecay::getDaughters(particlesMc.rawIteratorAt(indexRec), &arrDaughDsIndex, std::array{0}, 1);
628-
if (arrDaughDsIndex.size() == 2) {
628+
if (arrDaughDsIndex.size() == NDaughtersDs) {
629629
for (auto iProng = 0u; iProng < arrDaughDsIndex.size(); ++iProng) {
630630
auto daughI = particlesMc.rawIteratorAt(arrDaughDsIndex[iProng]);
631631
arrPDGDaughDs[iProng] = std::abs(daughI.pdgCode());

PWGHF/D2H/Tasks/taskB0Reduced.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ DECLARE_SOA_COLUMN(AbsEtaBach, absEtaBach, float);
4242
DECLARE_SOA_COLUMN(ItsNClsBach, itsNClsBach, int); //! Number of ITS clusters of bachelor pion
4343
DECLARE_SOA_COLUMN(TpcNClsCrossedRowsBach, tpcNClsCrossedRowsBach, int); //! Number of TPC crossed rows of prongs of bachelor pion
4444
DECLARE_SOA_COLUMN(TpcChi2NClBach, tpcChi2NClBach, float); //! Maximum TPC chi2 of prongs of D-meson daughter candidate
45-
DECLARE_SOA_COLUMN(PtDmesProngMin, ptProngDmesMin, float); //! Minimum pT of prongs of D-meson daughter candidate (GeV/c)
46-
DECLARE_SOA_COLUMN(AbsEtaDmesProngMin, absEtaProngDmesMin, float); //! Minimum absolute pseudorapidity of prongs of D-meson daughter candidate
45+
DECLARE_SOA_COLUMN(PtDmesProngMin, ptDmesProngMin, float); //! Minimum pT of prongs of D-meson daughter candidate (GeV/c)
46+
DECLARE_SOA_COLUMN(AbsEtaDmesProngMin, absEtaDmesProngMin, float); //! Minimum absolute pseudorapidity of prongs of D-meson daughter candidate
4747
DECLARE_SOA_COLUMN(ItsNClsDmesProngMin, itsNClsDmesProngMin, int); //! Minimum number of ITS clusters of prongs of D-meson daughter candidate
4848
DECLARE_SOA_COLUMN(TpcNClsCrossedRowsDmesProngMin, tpcNClsCrossedRowsDmesProngMin, int); //! Minimum number of TPC crossed rows of prongs of D-meson daughter candidate
4949
DECLARE_SOA_COLUMN(TpcChi2NClDmesProngMax, tpcChi2NClDmesProngMax, float); //! Maximum TPC chi2 of prongs of D-meson daughter candidate
@@ -175,14 +175,13 @@ struct HfTaskB0Reduced {
175175
Configurable<float> ptMaxForDownSample{"ptMaxForDownSample", 10., "Maximum pt for the application of the downsampling factor"};
176176

177177
HfHelper hfHelper;
178-
179-
Filter filterSelectCandidates = (aod::hf_sel_candidate_b0::isSelB0ToDPi >= selectionFlagB0);
180-
181178
HistogramRegistry registry{"registry"};
182179

183180
using TracksPion = soa::Join<HfRedTracks, HfRedTracksPid>;
184181
using CandsDplus = soa::Join<HfRed3Prongs, HfRedPidDau0s, HfRedPidDau1s, HfRedPidDau2s>;
185182

183+
Filter filterSelectCandidates = (aod::hf_sel_candidate_b0::isSelB0ToDPi >= selectionFlagB0);
184+
186185
void init(InitContext&)
187186
{
188187
std::array<bool, 3> processFuncData{doprocessData, doprocessDataWithDmesMl, doprocessDataWithB0Ml};

PWGHF/D2H/Tasks/taskBsReduced.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,12 @@ struct HfTaskBsReduced {
126126
Configurable<float> ptMaxForDownSample{"ptMaxForDownSample", 10., "Maximum pt for the application of the downsampling factor"};
127127

128128
HfHelper hfHelper;
129-
130-
Filter filterSelectCandidates = (aod::hf_sel_candidate_bs::isSelBsToDsPi >= selectionFlagBs);
131-
132129
HistogramRegistry registry{"registry"};
133130

134131
using TracksPion = soa::Join<HfRedTracks, HfRedTracksPid>;
135132

133+
Filter filterSelectCandidates = (aod::hf_sel_candidate_bs::isSelBsToDsPi >= selectionFlagBs);
134+
136135
void init(InitContext&)
137136
{
138137
std::array<bool, 3> processFuncData{doprocessData, doprocessDataWithDmesMl, doprocessDataWithBsMl};

0 commit comments

Comments
 (0)