From 6d5de0c1a0bbe5b4d9b0b7d41b3c0ad0ed5c6dcf Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 9 Jun 2023 21:52:48 +0000 Subject: [PATCH] Please consider the following formatting changes --- .../TableProducer/candidateCreatorToXiPi.cxx | 4 +- .../TableProducer/candidateSelectorToXiPi.cxx | 181 +++++++++--------- 2 files changed, 92 insertions(+), 93 deletions(-) diff --git a/PWGHF/TableProducer/candidateCreatorToXiPi.cxx b/PWGHF/TableProducer/candidateCreatorToXiPi.cxx index 574d0f379ed..d56365a53a5 100644 --- a/PWGHF/TableProducer/candidateCreatorToXiPi.cxx +++ b/PWGHF/TableProducer/candidateCreatorToXiPi.cxx @@ -175,8 +175,8 @@ struct HfCandidateCreatorToXiPi { } // use invariant mass cut to select cascades candidates - if(doCascadeInvMassCut) { - if(std::abs(casc.mXi() - massXiFromPDG) > (nSigmaInvMassCut * sigmaInvMassCascade)) { + if (doCascadeInvMassCut) { + if (std::abs(casc.mXi() - massXiFromPDG) > (nSigmaInvMassCut * sigmaInvMassCascade)) { continue; } } diff --git a/PWGHF/TableProducer/candidateSelectorToXiPi.cxx b/PWGHF/TableProducer/candidateSelectorToXiPi.cxx index 953c3d967ea..63f196ec7a8 100644 --- a/PWGHF/TableProducer/candidateSelectorToXiPi.cxx +++ b/PWGHF/TableProducer/candidateSelectorToXiPi.cxx @@ -188,7 +188,6 @@ struct HfCandidateSelectorToXiPi { registry.add("hSelMassLam", "hSelMassLam;status;entries", {HistType::kTH1F, {{5, 0., 5.}}}); registry.add("hSelMassCasc", "hSelMassCasc;status;entries", {HistType::kTH1F, {{5, 0., 5.}}}); registry.add("hSelMassOme", "hSelMassOme;status;entries", {HistType::kTH1F, {{5, 0., 5.}}}); - } void process(aod::HfCandToXiPi const& candidates, MyTrackInfo const&) @@ -233,13 +232,13 @@ struct HfCandidateSelectorToXiPi { trackPiFromLam = trackV0PosDau; trackPrFromLam = trackV0NegDau; registry.fill(HIST("hSelSignDec"), 1); - //hSelSignDec->Fill(1); + // hSelSignDec->Fill(1); } else if (signDecay == 0) { resultSelections = false; registry.fill(HIST("hSelSignDec"), 0); - //hSelSignDec->Fill(0); + // hSelSignDec->Fill(0); } else { - //hSelSignDec->Fill(1); + // hSelSignDec->Fill(1); registry.fill(HIST("hSelSignDec"), 1); } @@ -250,133 +249,133 @@ struct HfCandidateSelectorToXiPi { double etaPiFromOme = candidate.etaPiFromOme(); if (std::abs(etaV0PosDau) > etaTrackMax) { resultSelections = false; - //hSelEtaPosV0Dau->Fill(0); + // hSelEtaPosV0Dau->Fill(0); registry.fill(HIST("hSelEtaPosV0Dau"), 0); } else { - //hSelEtaPosV0Dau->Fill(1); + // hSelEtaPosV0Dau->Fill(1); registry.fill(HIST("hSelEtaPosV0Dau"), 1); } if (std::abs(etaV0NegDau) > etaTrackMax) { resultSelections = false; - //hSelEtaNegV0Dau->Fill(0); + // hSelEtaNegV0Dau->Fill(0); registry.fill(HIST("hSelEtaNegV0Dau"), 0); } else { - //hSelEtaNegV0Dau->Fill(1); + // hSelEtaNegV0Dau->Fill(1); registry.fill(HIST("hSelEtaNegV0Dau"), 1); } if (std::abs(etaPiFromCasc) > etaTrackMax) { resultSelections = false; - //hSelEtaPiFromCasc->Fill(0); + // hSelEtaPiFromCasc->Fill(0); registry.fill(HIST("hSelEtaPiFromCasc"), 0); } else { - //hSelEtaPiFromCasc->Fill(1); + // hSelEtaPiFromCasc->Fill(1); registry.fill(HIST("hSelEtaPiFromCasc"), 1); } if (std::abs(etaPiFromOme) > etaTrackMax) { resultSelections = false; - //hSelEtaPiFromOme->Fill(0); + // hSelEtaPiFromOme->Fill(0); registry.fill(HIST("hSelEtaPiFromOme"), 0); } else { - //hSelEtaPiFromOme->Fill(1); + // hSelEtaPiFromOme->Fill(1); registry.fill(HIST("hSelEtaPiFromOme"), 1); } // minimum radius cut (LFcut) if (RecoDecay::sqrtSumOfSquares(candidate.xDecayVtxCascade(), candidate.yDecayVtxCascade()) < radiusCascMin) { resultSelections = false; - //hSelRadCasc->Fill(0); + // hSelRadCasc->Fill(0); registry.fill(HIST("hSelRadCasc"), 0); } else { - //hSelRadCasc->Fill(1); + // hSelRadCasc->Fill(1); registry.fill(HIST("hSelRadCasc"), 1); } if (RecoDecay::sqrtSumOfSquares(candidate.xDecayVtxV0(), candidate.yDecayVtxV0()) < radiusV0Min) { resultSelections = false; - //hSelRadV0->Fill(0); + // hSelRadV0->Fill(0); registry.fill(HIST("hSelRadV0"), 0); } else { - //hSelRadV0->Fill(1); + // hSelRadV0->Fill(1); registry.fill(HIST("hSelRadV0"), 1); } // cosPA (LFcut) if (candidate.cosPACasc() < cosPACascMin) { resultSelections = false; - //hSelCosPACasc->Fill(0); + // hSelCosPACasc->Fill(0); registry.fill(HIST("hSelCosPACasc"), 0); } else { - //hSelCosPACasc->Fill(1); + // hSelCosPACasc->Fill(1); registry.fill(HIST("hSelCosPACasc"), 1); } if (candidate.cosPAV0() < cosPAV0Min) { resultSelections = false; - //hSelCosPAV0->Fill(0); + // hSelCosPAV0->Fill(0); registry.fill(HIST("hSelCosPAV0"), 0); } else { - //hSelCosPAV0->Fill(1); + // hSelCosPAV0->Fill(1); registry.fill(HIST("hSelCosPAV0"), 1); } // cascade and v0 daughters dca cut (LF cut) if (candidate.dcaCascDau() > dcaCascDauMax) { resultSelections = false; - //hSelDCACascDau->Fill(0); + // hSelDCACascDau->Fill(0); registry.fill(HIST("hSelDCACascDau"), 0); } else { - //hSelDCACascDau->Fill(1); + // hSelDCACascDau->Fill(1); registry.fill(HIST("hSelDCACascDau"), 1); } - + if (candidate.dcaV0Dau() > dcaV0DauMax) { resultSelections = false; - //hSelDCAV0Dau->Fill(0); + // hSelDCAV0Dau->Fill(0); registry.fill(HIST("hSelDCAV0Dau"), 0); } else { - //hSelDCAV0Dau->Fill(1); + // hSelDCAV0Dau->Fill(1); registry.fill(HIST("hSelDCAV0Dau"), 1); } // dca omegac daughters cut if (candidate.dcaOmegacDau() > dcaOmegacDauMax) { resultSelections = false; - //hSelDCAOmeDau->Fill(0); + // hSelDCAOmeDau->Fill(0); registry.fill(HIST("hSelDCAOmeDau"), 0); } else { - //hSelDCAOmeDau->Fill(1); + // hSelDCAOmeDau->Fill(1); registry.fill(HIST("hSelDCAOmeDau"), 1); } // cut on primary pion dcaXY and dcaZ if ((std::abs(candidate.impactParPrimaryPiXY()) < impactParameterXYPriPiMin) || (std::abs(candidate.impactParPrimaryPiXY()) > impactParameterXYPriPiMax)) { resultSelections = false; - //hSelDCAXYPrimPi->Fill(0); + // hSelDCAXYPrimPi->Fill(0); registry.fill(HIST("hSelDCAXYPrimPi"), 0); } else { - //hSelDCAXYPrimPi->Fill(1); + // hSelDCAXYPrimPi->Fill(1); registry.fill(HIST("hSelDCAXYPrimPi"), 1); } if ((std::abs(candidate.impactParPrimaryPiZ()) < impactParameterZPriPiMin) || (std::abs(candidate.impactParPrimaryPiZ()) > impactParameterZPriPiMax)) { resultSelections = false; - //hSelDCAZPrimPi->Fill(0); + // hSelDCAZPrimPi->Fill(0); registry.fill(HIST("hSelDCAZPrimPi"), 0); } else { - //hSelDCAZPrimPi->Fill(1); + // hSelDCAZPrimPi->Fill(1); registry.fill(HIST("hSelDCAZPrimPi"), 1); } // cut on cascade dcaXY and dcaZ if ((std::abs(candidate.impactParCascXY()) < impactParameterXYCascMin) || (std::abs(candidate.impactParCascXY()) > impactParameterXYCascMax)) { resultSelections = false; - //hSelDCAXYCasc->Fill(0); + // hSelDCAXYCasc->Fill(0); registry.fill(HIST("hSelDCAXYCasc"), 0); } else { - //hSelDCAXYCasc->Fill(1); + // hSelDCAXYCasc->Fill(1); registry.fill(HIST("hSelDCAXYCasc"), 1); } if ((std::abs(candidate.impactParCascZ()) < impactParameterZCascMin) || (std::abs(candidate.impactParCascZ()) > impactParameterZCascMax)) { resultSelections = false; - //hSelDCAZCasc->Fill(0); + // hSelDCAZCasc->Fill(0); registry.fill(HIST("hSelDCAZCasc"), 0); } else { - //hSelDCAZCasc->Fill(1); + // hSelDCAZCasc->Fill(1); registry.fill(HIST("hSelDCAZCasc"), 1); } @@ -385,138 +384,138 @@ struct HfCandidateSelectorToXiPi { double ptPiFromOme = RecoDecay::sqrtSumOfSquares(candidate.pxPrimaryPi(), candidate.pyPrimaryPi()); if (std::abs(ptPiFromCasc) < ptPiFromCascMin) { resultSelections = false; - //hSelPtPiFromCasc->Fill(0); + // hSelPtPiFromCasc->Fill(0); registry.fill(HIST("hSelPtPiFromCasc"), 0); } else { - //hSelPtPiFromCasc->Fill(1); + // hSelPtPiFromCasc->Fill(1); registry.fill(HIST("hSelPtPiFromCasc"), 1); } if (std::abs(ptPiFromOme) < ptPiFromOmeMin) { resultSelections = false; - //hSelPtPiFromOme->Fill(0); + // hSelPtPiFromOme->Fill(0); registry.fill(HIST("hSelPtPiFromOme"), 0); } else { - //hSelPtPiFromOme->Fill(1); + // hSelPtPiFromOme->Fill(1); registry.fill(HIST("hSelPtPiFromOme"), 1); } // TPC clusters selections if (trackPiFromOmeg.tpcNClsFound() < nClustersTpcMin) { resultSelections = false; - //hSelNClsTPCPiFromOme->Fill(0); + // hSelNClsTPCPiFromOme->Fill(0); registry.fill(HIST("hSelNClsTPCPiFromOme"), 0); } else { - //hSelNClsTPCPiFromOme->Fill(1); + // hSelNClsTPCPiFromOme->Fill(1); registry.fill(HIST("hSelNClsTPCPiFromOme"), 1); } if (trackPiFromLam.tpcNClsFound() < nClustersTpcMin) { resultSelections = false; - //hSelNClsTPCPiFromLam->Fill(0); + // hSelNClsTPCPiFromLam->Fill(0); registry.fill(HIST("hSelNClsTPCPiFromLam"), 0); } else { - //hSelNClsTPCPiFromLam->Fill(1); + // hSelNClsTPCPiFromLam->Fill(1); registry.fill(HIST("hSelNClsTPCPiFromLam"), 1); } if (trackPrFromLam.tpcNClsFound() < nClustersTpcMin) { resultSelections = false; - //hSelNClsTPCPrFromLam->Fill(0); + // hSelNClsTPCPrFromLam->Fill(0); registry.fill(HIST("hSelNClsTPCPrFromLam"), 0); } else { - //hSelNClsTPCPrFromLam->Fill(1); + // hSelNClsTPCPrFromLam->Fill(1); registry.fill(HIST("hSelNClsTPCPrFromLam"), 1); } if (trackPiFromCasc.tpcNClsFound() < nClustersTpcMin) { resultSelections = false; - //hSelNClsTPCPiFromCasc->Fill(0); + // hSelNClsTPCPiFromCasc->Fill(0); registry.fill(HIST("hSelNClsTPCPiFromCasc"), 0); } else { - //hSelNClsTPCPiFromCasc->Fill(1); + // hSelNClsTPCPiFromCasc->Fill(1); registry.fill(HIST("hSelNClsTPCPiFromCasc"), 1); } // TPC crossed rows selection if (trackPiFromOmeg.tpcNClsCrossedRows() < nTpcCrossedRowsMin) { resultSelections = false; - //hSelNCrossRowsTPCPiFromOme->Fill(0); + // hSelNCrossRowsTPCPiFromOme->Fill(0); registry.fill(HIST("hSelNCrossRowsTPCPiFromOme"), 0); } else { - //hSelNCrossRowsTPCPiFromOme->Fill(1); + // hSelNCrossRowsTPCPiFromOme->Fill(1); registry.fill(HIST("hSelNCrossRowsTPCPiFromOme"), 1); } if (trackPiFromLam.tpcNClsCrossedRows() < nTpcCrossedRowsMin) { resultSelections = false; - //hSelNCrossRowsTPCPiFromLam->Fill(0); + // hSelNCrossRowsTPCPiFromLam->Fill(0); registry.fill(HIST("hSelNCrossRowsTPCPiFromLam"), 0); } else { - //hSelNCrossRowsTPCPiFromLam->Fill(1); + // hSelNCrossRowsTPCPiFromLam->Fill(1); registry.fill(HIST("hSelNCrossRowsTPCPiFromLam"), 1); } if (trackPrFromLam.tpcNClsCrossedRows() < nTpcCrossedRowsMin) { resultSelections = false; - //hSelNCrossRowsTPCPrFromLam->Fill(0); + // hSelNCrossRowsTPCPrFromLam->Fill(0); registry.fill(HIST("hSelNCrossRowsTPCPrFromLam"), 0); } else { - //hSelNCrossRowsTPCPrFromLam->Fill(1); + // hSelNCrossRowsTPCPrFromLam->Fill(1); registry.fill(HIST("hSelNCrossRowsTPCPrFromLam"), 1); } if (trackPiFromCasc.tpcNClsCrossedRows() < nTpcCrossedRowsMin) { resultSelections = false; - //hSelNCrossRowsTPCPiFromCasc->Fill(0); + // hSelNCrossRowsTPCPiFromCasc->Fill(0); registry.fill(HIST("hSelNCrossRowsTPCPiFromCasc"), 0); } else { - //hSelNCrossRowsTPCPiFromCasc->Fill(1); + // hSelNCrossRowsTPCPiFromCasc->Fill(1); registry.fill(HIST("hSelNCrossRowsTPCPiFromCasc"), 1); } // further TPC selection if (trackPiFromOmeg.tpcCrossedRowsOverFindableCls() < tpcCrossedRowsOverFindableClustersRatioMin) { resultSelections = false; - //hSelCrossRowsOverFindClsTPCAllTracks->Fill(0); + // hSelCrossRowsOverFindClsTPCAllTracks->Fill(0); registry.fill(HIST("hSelCrossRowsOverFindClsTPCAllTracks"), 0); } else { - //hSelCrossRowsOverFindClsTPCAllTracks->Fill(1); + // hSelCrossRowsOverFindClsTPCAllTracks->Fill(1); registry.fill(HIST("hSelCrossRowsOverFindClsTPCAllTracks"), 1); } if (trackPiFromCasc.tpcCrossedRowsOverFindableCls() < tpcCrossedRowsOverFindableClustersRatioMin) { resultSelections = false; - //hSelCrossRowsOverFindClsTPCAllTracks->Fill(2); + // hSelCrossRowsOverFindClsTPCAllTracks->Fill(2); registry.fill(HIST("hSelCrossRowsOverFindClsTPCAllTracks"), 2); } else { - //hSelCrossRowsOverFindClsTPCAllTracks->Fill(3); + // hSelCrossRowsOverFindClsTPCAllTracks->Fill(3); registry.fill(HIST("hSelCrossRowsOverFindClsTPCAllTracks"), 3); } if (trackPiFromLam.tpcCrossedRowsOverFindableCls() < tpcCrossedRowsOverFindableClustersRatioMin) { resultSelections = false; - //hSelCrossRowsOverFindClsTPCAllTracks->Fill(4); + // hSelCrossRowsOverFindClsTPCAllTracks->Fill(4); registry.fill(HIST("hSelCrossRowsOverFindClsTPCAllTracks"), 4); } else { - //hSelCrossRowsOverFindClsTPCAllTracks->Fill(5); + // hSelCrossRowsOverFindClsTPCAllTracks->Fill(5); registry.fill(HIST("hSelCrossRowsOverFindClsTPCAllTracks"), 5); } if (trackPrFromLam.tpcCrossedRowsOverFindableCls() < tpcCrossedRowsOverFindableClustersRatioMin) { resultSelections = false; - //hSelCrossRowsOverFindClsTPCAllTracks->Fill(6); + // hSelCrossRowsOverFindClsTPCAllTracks->Fill(6); registry.fill(HIST("hSelCrossRowsOverFindClsTPCAllTracks"), 6); } else { - //hSelCrossRowsOverFindClsTPCAllTracks->Fill(7); + // hSelCrossRowsOverFindClsTPCAllTracks->Fill(7); registry.fill(HIST("hSelCrossRowsOverFindClsTPCAllTracks"), 7); } // ITS clusters selection if (trackPiFromOmeg.itsNCls() < nClustersItsMin) { resultSelections = false; - //hSelNClsITSPiFromOme->Fill(0); + // hSelNClsITSPiFromOme->Fill(0); registry.fill(HIST("hSelNClsITSPiFromOme"), 0); } else { - //hSelNClsITSPiFromOme->Fill(1); + // hSelNClsITSPiFromOme->Fill(1); registry.fill(HIST("hSelNClsITSPiFromOme"), 1); } if (trackPiFromOmeg.itsNClsInnerBarrel() < nClustersItsInnBarrMin) { resultSelections = false; - //hSelNClsITSInnerPiFromOme->Fill(0); + // hSelNClsITSInnerPiFromOme->Fill(0); registry.fill(HIST("hSelNClsITSInnerPiFromOme"), 0); } else { - //hSelNClsITSInnerPiFromOme->Fill(1); + // hSelNClsITSInnerPiFromOme->Fill(1); registry.fill(HIST("hSelNClsITSInnerPiFromOme"), 1); } @@ -547,7 +546,7 @@ struct HfCandidateSelectorToXiPi { if (pidProton == TrackSelectorPID::Status::PIDAccepted && pidPiFromLam == TrackSelectorPID::Status::PIDAccepted) { statusPidLambda = true; if (resultSelections) { - //hTest->Fill(0.5); + // hTest->Fill(0.5); registry.fill(HIST("hTest"), 0.5); } } @@ -555,7 +554,7 @@ struct HfCandidateSelectorToXiPi { if (pidProton == TrackSelectorPID::Status::PIDAccepted && pidPiFromLam == TrackSelectorPID::Status::PIDAccepted && pidPiFromCasc == TrackSelectorPID::Status::PIDAccepted) { statusPidCascade = true; if (resultSelections) { - //hTest->Fill(1.5); + // hTest->Fill(1.5); registry.fill(HIST("hTest"), 1.5); } } @@ -563,7 +562,7 @@ struct HfCandidateSelectorToXiPi { if (pidProton == TrackSelectorPID::Status::PIDAccepted && pidPiFromLam == TrackSelectorPID::Status::PIDAccepted && pidPiFromCasc == TrackSelectorPID::Status::PIDAccepted && pidPiFromOme == TrackSelectorPID::Status::PIDAccepted) { statusPidOmegac = true; if (resultSelections) { - //hTest->Fill(2.5); + // hTest->Fill(2.5); registry.fill(HIST("hTest"), 2.5); } } @@ -579,40 +578,40 @@ struct HfCandidateSelectorToXiPi { if (std::abs(invMassLambda - massLambdaFromPDG) < (nSigmaInvMassCut * sigmaInvMassLambda)) { statusInvMassLambda = true; - //hSelMassLam->Fill(1); + // hSelMassLam->Fill(1); registry.fill(HIST("hSelMassLam"), 1); if (statusPidLambda && statusPidCascade && statusPidOmegac && resultSelections) { - //hTest->Fill(3.5); + // hTest->Fill(3.5); registry.fill(HIST("hTest"), 3.5); } } else { - //hSelMassLam->Fill(0); + // hSelMassLam->Fill(0); registry.fill(HIST("hSelMassLam"), 0); } if (std::abs(invMassCascade - massXiFromPDG) < (nSigmaInvMassCut * sigmaInvMassCascade)) { statusInvMassCascade = true; - //hSelMassCasc->Fill(1); + // hSelMassCasc->Fill(1); registry.fill(HIST("hSelMassCasc"), 1); if (statusPidLambda && statusPidCascade && statusPidOmegac && statusInvMassLambda && resultSelections) { - //hTest->Fill(4.5); + // hTest->Fill(4.5); registry.fill(HIST("hTest"), 4.5); } } else { - //hSelMassCasc->Fill(0); + // hSelMassCasc->Fill(0); registry.fill(HIST("hSelMassCasc"), 0); } if ((invMassOmegac >= invMassOmegacMin) && (invMassOmegac <= invMassOmegacMax)) { statusInvMassOmegac = true; - //hSelMassOme->Fill(1); + // hSelMassOme->Fill(1); registry.fill(HIST("hSelMassOme"), 1); if (statusPidLambda && statusPidCascade && statusPidOmegac && statusInvMassLambda && statusInvMassCascade && resultSelections) { - //hTest->Fill(5.5); + // hTest->Fill(5.5); registry.fill(HIST("hTest"), 5.5); } } else { - //hSelMassOme->Fill(0); + // hSelMassOme->Fill(0); registry.fill(HIST("hSelMassOme"), 0); } @@ -622,51 +621,51 @@ struct HfCandidateSelectorToXiPi { if (resultSelections) { if (!statusPidLambda) { - //hSelPID->Fill(0.5); + // hSelPID->Fill(0.5); registry.fill(HIST("hSelPID"), 0.5); } if (statusPidLambda) { - //hSelPID->Fill(1.5); + // hSelPID->Fill(1.5); registry.fill(HIST("hSelPID"), 1.5); } if (!statusPidCascade) { - //hSelPID->Fill(2.5); + // hSelPID->Fill(2.5); registry.fill(HIST("hSelPID"), 2.5); } if (statusPidCascade) { - //hSelPID->Fill(3.5); + // hSelPID->Fill(3.5); registry.fill(HIST("hSelPID"), 3.5); } if (!statusPidOmegac) { - //hSelPID->Fill(4.5); + // hSelPID->Fill(4.5); registry.fill(HIST("hSelPID"), 4.5); } if (statusPidOmegac) { - //hSelPID->Fill(5.5); + // hSelPID->Fill(5.5); registry.fill(HIST("hSelPID"), 5.5); } if (!statusInvMassLambda) { - //hSelPID->Fill(6.5); + // hSelPID->Fill(6.5); registry.fill(HIST("hSelPID"), 6.5); } if (statusInvMassLambda) { - //hSelPID->Fill(7.5); + // hSelPID->Fill(7.5); registry.fill(HIST("hSelPID"), 7.5); } if (!statusInvMassCascade) { - //hSelPID->Fill(8.5); + // hSelPID->Fill(8.5); registry.fill(HIST("hSelPID"), 8.5); } if (statusInvMassCascade) { - //hSelPID->Fill(9.5); + // hSelPID->Fill(9.5); registry.fill(HIST("hSelPID"), 9.5); } if (!statusInvMassOmegac) { - //hSelPID->Fill(10.5); + // hSelPID->Fill(10.5); registry.fill(HIST("hSelPID"), 10.5); } if (statusInvMassOmegac) { - //hSelPID->Fill(11.5); + // hSelPID->Fill(11.5); registry.fill(HIST("hSelPID"), 11.5); } }