diff --git a/PWGLF/Tasks/k1analysis.cxx b/PWGLF/Tasks/k1analysis.cxx index de5684aeb9f..118c25a3e94 100644 --- a/PWGLF/Tasks/k1analysis.cxx +++ b/PWGLF/Tasks/k1analysis.cxx @@ -53,9 +53,9 @@ struct k1analysis { /// PID Selections Configurable cMaxTPCnSigmaPion{"cMaxTPCnSigmaPion", 3.0, "TPC nSigma cut for Pion"}; // TPC Configurable cMaxTOFnSigmaPion{"cMaxTOFnSigmaPion", 3.0, "TOF nSigma cut for Pion"}; // TOF - Configurable nsigmaCutCombinedPion{"nsigmaCutCombinedPion", -999, "Combined nSigma cut for Pion"}; // Combined - Configurable cUseOnlyTOFTrackPi{"cUseOnlyTOFTrackPi", false, "Use only TOF track for PID selection"}; // Use only TOF track for Pion PID selection - Configurable cUseOnlyTOFTrackKa{"cUseOnlyTOFTrackKa", false, "Use only TOF track for PID selection"}; // Use only TOF track for Kaon PID selection + Configurable nsigmaCutCombinedPion{"nsigmaCutCombinedPion", -999, "Combined nSigma cut for Pion"}; // Combined + Configurable cUseOnlyTOFTrackPi{"cUseOnlyTOFTrackPi", false, "Use only TOF track for PID selection"}; // Use only TOF track for Pion PID selection + Configurable cUseOnlyTOFTrackKa{"cUseOnlyTOFTrackKa", false, "Use only TOF track for PID selection"}; // Use only TOF track for Kaon PID selection // Kaon Configurable cMaxTPCnSigmaKaon{"cMaxTPCnSigmaKaon", 3.0, "TPC nSigma cut for Kaon"}; // TPC Configurable cMaxTOFnSigmaKaon{"cMaxTOFnSigmaKaon", 3.0, "TOF nSigma cut for Kaon"}; // TOF @@ -207,11 +207,10 @@ struct k1analysis { if (std::abs(candidate.tofNSigmaPi()) < cMaxTOFnSigmaPion) { tofPIDPassed = true; } - if ((nsigmaCutCombinedPion > 0) && (candidate.tpcNSigmaPi()*candidate.tpcNSigmaPi() + candidate.tofNSigmaPi()*candidate.tofNSigmaPi() < nsigmaCutCombinedPion*nsigmaCutCombinedPion)) { + if ((nsigmaCutCombinedPion > 0) && (candidate.tpcNSigmaPi() * candidate.tpcNSigmaPi() + candidate.tofNSigmaPi() * candidate.tofNSigmaPi() < nsigmaCutCombinedPion * nsigmaCutCombinedPion)) { tofPIDPassed = true; } - } - else { + } else { tofPIDPassed = true; } if (tpcPIDPassed && tofPIDPassed) { @@ -230,11 +229,10 @@ struct k1analysis { if (std::abs(candidate.tofNSigmaKa()) < cMaxTOFnSigmaKaon) { tofPIDPassed = true; } - if ((nsigmaCutCombinedKaon > 0) && (candidate.tpcNSigmaKa()*candidate.tpcNSigmaKa() + candidate.tofNSigmaKa()*candidate.tofNSigmaKa() < nsigmaCutCombinedKaon*nsigmaCutCombinedKaon)) { + if ((nsigmaCutCombinedKaon > 0) && (candidate.tpcNSigmaKa() * candidate.tpcNSigmaKa() + candidate.tofNSigmaKa() * candidate.tofNSigmaKa() < nsigmaCutCombinedKaon * nsigmaCutCombinedKaon)) { tofPIDPassed = true; } - } - else { + } else { tofPIDPassed = true; } if (tpcPIDPassed && tofPIDPassed) { diff --git a/PWGLF/Tasks/k892analysis.cxx b/PWGLF/Tasks/k892analysis.cxx index 2dc63517091..19c62f8be6c 100644 --- a/PWGLF/Tasks/k892analysis.cxx +++ b/PWGLF/Tasks/k892analysis.cxx @@ -63,9 +63,9 @@ struct k892analysis { /// PID Selections Configurable cMaxTPCnSigmaPion{"cMaxTPCnSigmaPion", 3.0, "TPC nSigma cut for Pion"}; // TPC Configurable cMaxTOFnSigmaPion{"cMaxTOFnSigmaPion", 3.0, "TOF nSigma cut for Pion"}; // TOF - Configurable nsigmaCutCombinedPion{"nsigmaCutCombinedPion", -999, "Combined nSigma cut for Pion"}; // Combined - Configurable cUseOnlyTOFTrackPi{"cUseOnlyTOFTrackPi", false, "Use only TOF track for PID selection"}; // Use only TOF track for Pion PID selection - Configurable cUseOnlyTOFTrackKa{"cUseOnlyTOFTrackKa", false, "Use only TOF track for PID selection"}; // Use only TOF track for Kaon PID selection + Configurable nsigmaCutCombinedPion{"nsigmaCutCombinedPion", -999, "Combined nSigma cut for Pion"}; // Combined + Configurable cUseOnlyTOFTrackPi{"cUseOnlyTOFTrackPi", false, "Use only TOF track for PID selection"}; // Use only TOF track for Pion PID selection + Configurable cUseOnlyTOFTrackKa{"cUseOnlyTOFTrackKa", false, "Use only TOF track for PID selection"}; // Use only TOF track for Kaon PID selection // Kaon Configurable cMaxTPCnSigmaKaon{"cMaxTPCnSigmaKaon", 3.0, "TPC nSigma cut for Kaon"}; // TPC Configurable cMaxTOFnSigmaKaon{"cMaxTOFnSigmaKaon", 3.0, "TOF nSigma cut for Kaon"}; // TOF @@ -180,11 +180,10 @@ struct k892analysis { if (std::abs(candidate.tofNSigmaPi()) < cMaxTOFnSigmaPion) { tofPIDPassed = true; } - if ((nsigmaCutCombinedPion > 0) && (candidate.tpcNSigmaPi()*candidate.tpcNSigmaPi() + candidate.tofNSigmaPi()*candidate.tofNSigmaPi() < nsigmaCutCombinedPion*nsigmaCutCombinedPion)) { + if ((nsigmaCutCombinedPion > 0) && (candidate.tpcNSigmaPi() * candidate.tpcNSigmaPi() + candidate.tofNSigmaPi() * candidate.tofNSigmaPi() < nsigmaCutCombinedPion * nsigmaCutCombinedPion)) { tofPIDPassed = true; } - } - else { + } else { tofPIDPassed = true; } if (tpcPIDPassed && tofPIDPassed) { @@ -203,11 +202,10 @@ struct k892analysis { if (std::abs(candidate.tofNSigmaKa()) < cMaxTOFnSigmaKaon) { tofPIDPassed = true; } - if ((nsigmaCutCombinedKaon > 0) && (candidate.tpcNSigmaKa()*candidate.tpcNSigmaKa() + candidate.tofNSigmaKa()*candidate.tofNSigmaKa() < nsigmaCutCombinedKaon*nsigmaCutCombinedKaon)) { + if ((nsigmaCutCombinedKaon > 0) && (candidate.tpcNSigmaKa() * candidate.tpcNSigmaKa() + candidate.tofNSigmaKa() * candidate.tofNSigmaKa() < nsigmaCutCombinedKaon * nsigmaCutCombinedKaon)) { tofPIDPassed = true; } - } - else { + } else { tofPIDPassed = true; } if (tpcPIDPassed && tofPIDPassed) { diff --git a/PWGLF/Tasks/phianalysis.cxx b/PWGLF/Tasks/phianalysis.cxx index 33d1ff95458..4237b5cca0f 100644 --- a/PWGLF/Tasks/phianalysis.cxx +++ b/PWGLF/Tasks/phianalysis.cxx @@ -61,7 +61,7 @@ struct phianalysis { Configurable cMaxDCAzToPVcut{"cMaxDCAzToPVcut", 2.0, "Track DCAz cut to PV Maximum"}; Configurable cMinDCAzToPVcut{"cMinDCAzToPVcut", 0.0, "Track DCAz cut to PV Minimum"}; /// PID Selections - Configurable cUseOnlyTOFTrackKa{"cUseOnlyTOFTrackKa", false, "Use only TOF track for PID selection"}; // Use only TOF track for PID selection + Configurable cUseOnlyTOFTrackKa{"cUseOnlyTOFTrackKa", false, "Use only TOF track for PID selection"}; // Use only TOF track for PID selection // Kaon Configurable cMaxTPCnSigmaKaon{"cMaxTPCnSigmaKaon", 3.0, "TPC nSigma cut for Kaon"}; // TPC Configurable cMaxTOFnSigmaKaon{"cMaxTOFnSigmaKaon", 3.0, "TOF nSigma cut for Kaon"}; // TOF @@ -154,11 +154,10 @@ struct phianalysis { if (std::abs(candidate.tofNSigmaKa()) < cMaxTOFnSigmaKaon) { tofPIDPassed = true; } - if ((nsigmaCutCombinedKaon > 0) && (candidate.tpcNSigmaKa()*candidate.tpcNSigmaKa() + candidate.tofNSigmaKa()*candidate.tofNSigmaKa() < nsigmaCutCombinedKaon*nsigmaCutCombinedKaon)) { + if ((nsigmaCutCombinedKaon > 0) && (candidate.tpcNSigmaKa() * candidate.tpcNSigmaKa() + candidate.tofNSigmaKa() * candidate.tofNSigmaKa() < nsigmaCutCombinedKaon * nsigmaCutCombinedKaon)) { tofPIDPassed = true; } - } - else { + } else { tofPIDPassed = true; } if (tpcPIDPassed && tofPIDPassed) {