From f4dc8e76e478719a5d838ae1a55f108a63cfa00c Mon Sep 17 00:00:00 2001 From: nzardosh Date: Tue, 22 Sep 2020 02:33:16 +0200 Subject: [PATCH] correcting D0 cuts (#4406) --- Analysis/Tasks/PWGHF/HFD0CandidateSelector.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Analysis/Tasks/PWGHF/HFD0CandidateSelector.cxx b/Analysis/Tasks/PWGHF/HFD0CandidateSelector.cxx index 8061d4538fe78..684512487b612 100644 --- a/Analysis/Tasks/PWGHF/HFD0CandidateSelector.cxx +++ b/Analysis/Tasks/PWGHF/HFD0CandidateSelector.cxx @@ -152,7 +152,7 @@ struct HFD0CandidateSelector { return false; } if (hfCandProng2.decayLengthNormalised() * hfCandProng2.decayLengthNormalised() < 1.0) { - return false; + //return false; //add back when getter fixed } return true; } @@ -182,7 +182,7 @@ struct HFD0CandidateSelector { } } - if (TMath::Abs(trackPion.signed1Pt()) < TMath::Abs(cuts[pTBin][4]) || TMath::Abs(trackKaon.signed1Pt()) < TMath::Abs(cuts[pTBin][3])) { + if (TMath::Abs(trackPion.pt()) < TMath::Abs(cuts[pTBin][4]) || TMath::Abs(trackKaon.pt()) < TMath::Abs(cuts[pTBin][3])) { return false; //cut on daughter pT } if (TMath::Abs(trackPion.dcaprim0()) > cuts[pTBin][6] || TMath::Abs(trackKaon.dcaprim0()) > cuts[pTBin][5]) { @@ -209,7 +209,7 @@ struct HFD0CandidateSelector { template bool validTPCPID(const T& track) { - if (TMath::Abs(track.signed1Pt()) < d_pidTPCMinpT || TMath::Abs(track.signed1Pt()) >= d_pidTPCMaxpT) { + if (TMath::Abs(track.pt()) < d_pidTPCMinpT || TMath::Abs(track.pt()) >= d_pidTPCMaxpT) { return false; } //if (track.TPCNClsFindable() < d_TPCNClsFindablePIDCut) return false; @@ -223,7 +223,7 @@ struct HFD0CandidateSelector { template bool validTOFPID(const T& track) { - if (TMath::Abs(track.signed1Pt()) < d_pidTOFMinpT || TMath::Abs(track.signed1Pt()) >= d_pidTOFMaxpT) { + if (TMath::Abs(track.pt()) < d_pidTOFMinpT || TMath::Abs(track.pt()) >= d_pidTOFMaxpT) { return false; } return true;