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
52 changes: 26 additions & 26 deletions EventFiltering/PWGHF/HFFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -814,37 +814,37 @@ struct HfFilter { // Main struct for HF triggers
}
} // end beauty selection

// 2-prong femto
bool isProtonForCharm2Prong = helper.isSelectedTrack4Femto(track, trackParThird, activateQA, hPrDePID[0], hPrDePID[1], kProtonForFemto);
bool isDeuteronForCharm2Prong = helper.isSelectedTrack4Femto(track, trackParThird, activateQA, hPrDePID[2], hPrDePID[3], kDeuteronForFemto);

if (track.collisionId() == thisCollId) {
if (isProtonForCharm2Prong && !keepEvent[kFemto2P] && enableFemtoChannels->get(0u, 0u) && isD0CharmTagged) {
float relativeMomentum = helper.computeRelativeMomentum(pVecThird, pVec2Prong, massD0);
if (applyOptimisation) {
optimisationTreeFemto(thisCollId, o2::constants::physics::Pdg::kD0, pt2Prong, scores[0], scores[1], scores[2], relativeMomentum, track.tpcNSigmaPr(), track.tofNSigmaPr(), track.tpcNSigmaDe(), track.tofNSigmaDe());
}
if (relativeMomentum < femtoMaxRelativeMomentum) {
keepEvent[kFemto2P] = true;
if (activateQA) {
hCharmProtonKstarDistr[kD0]->Fill(relativeMomentum);
}
// 2-prong femto
bool isProtonForCharm2Prong = helper.isSelectedTrack4Femto(track, trackParThird, activateQA, hPrDePID[0], hPrDePID[1], kProtonForFemto);
bool isDeuteronForCharm2Prong = helper.isSelectedTrack4Femto(track, trackParThird, activateQA, hPrDePID[2], hPrDePID[3], kDeuteronForFemto);

if (track.collisionId() == thisCollId) {
if (isProtonForCharm2Prong && !keepEvent[kFemto2P] && enableFemtoChannels->get(0u, 0u) && isD0CharmTagged) {
float relativeMomentum = helper.computeRelativeMomentum(pVecThird, pVec2Prong, massD0);
if (applyOptimisation) {
optimisationTreeFemto(thisCollId, o2::constants::physics::Pdg::kD0, pt2Prong, scores[0], scores[1], scores[2], relativeMomentum, track.tpcNSigmaPr(), track.tofNSigmaPr(), track.tpcNSigmaDe(), track.tofNSigmaDe());
}
if (relativeMomentum < femtoMaxRelativeMomentum) {
keepEvent[kFemto2P] = true;
if (activateQA) {
hCharmProtonKstarDistr[kD0]->Fill(relativeMomentum);
}
}
}

if (isDeuteronForCharm2Prong && !keepEvent[kFemto2P] && enableFemtoChannels->get(1u, 0u) && isD0CharmTagged) {
float relativeMomentum = helper.computeRelativeMomentum(pVecThird, pVec2Prong, massD0);
if (applyOptimisation) {
optimisationTreeFemto(thisCollId, o2::constants::physics::Pdg::kD0, pt2Prong, scores[0], scores[1], scores[2], relativeMomentum, track.tpcNSigmaPr(), track.tofNSigmaPr(), track.tpcNSigmaDe(), track.tofNSigmaDe());
}
if (relativeMomentum < femtoMaxRelativeMomentum) {
keepEvent[kFemto2P] = true;
if (activateQA) {
hCharmDeuteronKstarDistr[kD0]->Fill(relativeMomentum);
}
if (isDeuteronForCharm2Prong && !keepEvent[kFemto2P] && enableFemtoChannels->get(1u, 0u) && isD0CharmTagged) {
float relativeMomentum = helper.computeRelativeMomentum(pVecThird, pVec2Prong, massD0);
if (applyOptimisation) {
optimisationTreeFemto(thisCollId, o2::constants::physics::Pdg::kD0, pt2Prong, scores[0], scores[1], scores[2], relativeMomentum, track.tpcNSigmaPr(), track.tofNSigmaPr(), track.tpcNSigmaDe(), track.tofNSigmaDe());
}
if (relativeMomentum < femtoMaxRelativeMomentum) {
keepEvent[kFemto2P] = true;
if (activateQA) {
hCharmDeuteronKstarDistr[kD0]->Fill(relativeMomentum);
}
}
} // end femto charm 2prong selection
}
} // end femto charm 2prong selection

// Beauty with JPsi
if (preselJPsiToMuMu) {
Expand Down
Loading