Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PWGHF/D2H/Tasks/taskCharmPolarisation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct TaskPolarisationCharmHadrons {
uint8_t nMassHypos{0u};

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

ConfigurableAxis thnAxisInvMass{"thnAxisInvMass", {100, 1.78, 2.05}, "#it{M} (GeV/#it{c}^{2})"};
ConfigurableAxis thnAxisPt{"thnAxisPt", {100, 0., 100.}, "#it{p}_{T} (GeV/#it{c})"};
Expand Down
16 changes: 8 additions & 8 deletions PWGHF/TableProducer/candidateSelectorDstarToD0Pi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -287,19 +287,19 @@ struct HfCandidateSelectorDstarToD0Pi {
{
// LOG(info) << "selector called";
for (const auto& candDstar : rowsDstarCand) {
// final selection flag: 0 - rejected, 1 - accepted
int statusDstar = 0, statusD0Flag = 0, statusTopol = 0, statusCand = 0, statusPID = 0;
// final selection flag: false - rejected, true - accepted
bool statusDstar = false, statusD0Flag = false, statusTopol = false, statusCand = false, statusPID = false;

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

Expand All @@ -309,7 +309,7 @@ struct HfCandidateSelectorDstarToD0Pi {
hfSelDstarCandidate(statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
continue;
}
statusCand = 1;
statusCand = true;

// track-level PID selection
int pidTrackPosKaon = -1;
Expand Down Expand Up @@ -350,10 +350,10 @@ struct HfCandidateSelectorDstarToD0Pi {
}

if ((pidDstar == -1 || pidDstar == 1) && topoDstar) {
statusDstar = 1; // identified as dstar
statusDstar = true; // identified as dstar
}

statusPID = 1;
statusPID = true;
hfSelDstarCandidate(statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
}
}
Expand Down