Skip to content
Merged
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
29 changes: 15 additions & 14 deletions PWGHF/HFC/TableProducer/derivedDataCreatorCorrelationsReduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -266,20 +266,21 @@ struct HfDerivedDataCreatorCorrelationsReduced {
/// Cut on rapidity of the candidate
/// \param candidate is the charm hadron candidate
template <CandidateType CandType, typename TCand>
bool cutCandRapidity(const TCand& candidate) {
double y = 0.0;
if constexpr (CandType == CandidateType::DsToKKPi || CandType == CandidateType::DsToPiKK) {
y = HfHelper::yDs(candidate);
} else if constexpr (CandType == CandidateType::DplusToPiKPi) {
y = HfHelper::yDplus(candidate);
} else if constexpr (CandType == CandidateType::D0ToPiK || CandType == CandidateType::D0ToKPi) {
y = HfHelper::yD0(candidate);
} else if constexpr (CandType == CandidateType::LcToPKPi) {
y = HfHelper::yLc(candidate);
} else {
return true;
}
return std::fabs(y) < yCandMax;
bool cutCandRapidity(const TCand& candidate)
{
double y = 0.0;
if constexpr (CandType == CandidateType::DsToKKPi || CandType == CandidateType::DsToPiKK) {
y = HfHelper::yDs(candidate);
} else if constexpr (CandType == CandidateType::DplusToPiKPi) {
y = HfHelper::yDplus(candidate);
} else if constexpr (CandType == CandidateType::D0ToPiK || CandType == CandidateType::D0ToKPi) {
y = HfHelper::yD0(candidate);
} else if constexpr (CandType == CandidateType::LcToPKPi) {
y = HfHelper::yLc(candidate);
} else {
return true;
}
return std::fabs(y) < yCandMax;
}

/// Check event selections for collision and fill the collision table
Expand Down
Loading