Skip to content

Commit a146de3

Browse files
authored
PWGHF: Fix types in selection flags for D* and Lc->pKpi (#4424)
1 parent 2b916ff commit a146de3

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

PWGHF/D2H/Tasks/taskCharmPolarisation.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct TaskPolarisationCharmHadrons {
6666
uint8_t nMassHypos{0u};
6767

6868
Configurable<bool> selectionFlagDstarToD0Pi{"selectionFlagDstarToD0Pi", true, "Selection Flag for D* decay to D0 Pi"};
69-
Configurable<bool> selectionFlagLcToPKPi{"selectionFlagLcToPKPi", false, "Selection Flag for Lc decay to P K Pi"};
69+
Configurable<int> selectionFlagLcToPKPi{"selectionFlagLcToPKPi", 1, "Selection Flag for Lc decay to P K Pi"};
7070

7171
ConfigurableAxis thnAxisInvMass{"thnAxisInvMass", {100, 1.78, 2.05}, "#it{M} (GeV/#it{c}^{2})"};
7272
ConfigurableAxis thnAxisPt{"thnAxisPt", {100, 0., 100.}, "#it{p}_{T} (GeV/#it{c})"};

PWGHF/TableProducer/candidateSelectorDstarToD0Pi.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -287,19 +287,19 @@ struct HfCandidateSelectorDstarToD0Pi {
287287
{
288288
// LOG(info) << "selector called";
289289
for (const auto& candDstar : rowsDstarCand) {
290-
// final selection flag: 0 - rejected, 1 - accepted
291-
int statusDstar = 0, statusD0Flag = 0, statusTopol = 0, statusCand = 0, statusPID = 0;
290+
// final selection flag: false - rejected, true - accepted
291+
bool statusDstar = false, statusD0Flag = false, statusTopol = false, statusCand = false, statusPID = false;
292292

293-
if (!(candDstar.hfflag() & 1 << aod::hf_cand_2prong::DecayType::D0ToPiK)) {
293+
if (!TESTBIT(candDstar.hfflag(), aod::hf_cand_2prong::DecayType::D0ToPiK)) {
294294
hfSelDstarCandidate(statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
295295
continue;
296296
}
297-
statusD0Flag = 1;
297+
statusD0Flag = true;
298298
if (!selectionDstar(candDstar)) {
299299
hfSelDstarCandidate(statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
300300
continue;
301301
}
302-
statusTopol = 1;
302+
statusTopol = true;
303303
// implement filter bit 4 cut - should be done before this task at the track selection level
304304
// need to add special cuts (additional cuts on decay length and d0 norm)
305305

@@ -309,7 +309,7 @@ struct HfCandidateSelectorDstarToD0Pi {
309309
hfSelDstarCandidate(statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
310310
continue;
311311
}
312-
statusCand = 1;
312+
statusCand = true;
313313

314314
// track-level PID selection
315315
int pidTrackPosKaon = -1;
@@ -350,10 +350,10 @@ struct HfCandidateSelectorDstarToD0Pi {
350350
}
351351

352352
if ((pidDstar == -1 || pidDstar == 1) && topoDstar) {
353-
statusDstar = 1; // identified as dstar
353+
statusDstar = true; // identified as dstar
354354
}
355355

356-
statusPID = 1;
356+
statusPID = true;
357357
hfSelDstarCandidate(statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
358358
}
359359
}

0 commit comments

Comments
 (0)