@@ -206,8 +206,11 @@ struct FemtoUniverseEfficiencyBase {
206206 trackHistoPartOneRec.init (&qaRegistry, confTempFitVarpTBins, confTempFitVarDCABins, confIsMCReco, confPDGCodePartOne, confIsDebug);
207207 registryMCOrigin.add (" part1/hRecoPt" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
208208 registryMCOrigin.add (" part1/hTruthPt" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
209- registryTOFMatch.add (" part1/hTofMatchPtBeforePID" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
210- registryTOFMatch.add (" part1/hTofMatchPtAfterPID" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
209+ registryTOFMatch.add (" part1/hTofMatchPtBeforePIDAllPart" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
210+ registryTOFMatch.add (" part1/hTofMatchPtBeforePIDPartWithTof" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
211+ registryTOFMatch.add (" part1/hTofMatchPtAfterPIDAllPart" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
212+ registryTOFMatch.add (" part1/hTofMatchPtAfterPIDPartWithTof" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
213+ registryTOFMatch.add (" part1/hTofMatchPtAfterPIDPrimaryWithTof" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
211214 registryTOFMatch.add (" part1/hTpcPt" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
212215 registryPDG.add (" part1/PDGvspT" , " PDG;#it{p}_{T} (GeV/c); PDG" , {HistType::kTH2F , {{confTempFitVarpTBins}, {16001 , -8000.5 , 8000.5 }}});
213216 registryPDG.add (" part1/PDGvspTall" , " PDG;#it{p}_{T} (GeV/c); PDG" , {HistType::kTH2F , {{confTempFitVarpTBins}, {16001 , -8000.5 , 8000.5 }}});
@@ -234,8 +237,11 @@ struct FemtoUniverseEfficiencyBase {
234237 trackHistoPartTwoRec.init (&qaRegistry, confTempFitVarpTBins, confTempFitVarDCABins, confIsMCReco, confPDGCodePartTwo, confIsDebug);
235238 registryMCOrigin.add (" part2/hRecoPt" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
236239 registryMCOrigin.add (" part2/hTruthPt" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
237- registryTOFMatch.add (" part2/hTofMatchPtBeforePID" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
238- registryTOFMatch.add (" part2/hTofMatchPtAfterPID" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
240+ registryTOFMatch.add (" part2/hTofMatchPtBeforePIDAllPart" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
241+ registryTOFMatch.add (" part2/hTofMatchPtBeforePIDPartWithTof" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
242+ registryTOFMatch.add (" part2/hTofMatchPtAfterPIDAllPart" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
243+ registryTOFMatch.add (" part2/hTofMatchPtAfterPIDPartWithTof" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
244+ registryTOFMatch.add (" part2/hTofMatchPtAfterPIDPrimaryWithTof" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
239245 registryTOFMatch.add (" part2/hTpcPt" , " ;#it{p}_{T} (GeV/c); Entries" , {HistType::kTH1F , {{confTempFitVarpTBins}}});
240246 registryPDG.add (" part2/PDGvspT" , " PDG;#it{p}_{T} (GeV/c); PDG" , {HistType::kTH2F , {{confTempFitVarpTBins}, {16001 , -8000.5 , 8000.5 }}});
241247 registryPDG.add (" part2/PDGvspTall" , " PDG;#it{p}_{T} (GeV/c); PDG" , {HistType::kTH2F , {{confTempFitVarpTBins}, {16001 , -8000.5 , 8000.5 }}});
@@ -644,7 +650,11 @@ struct FemtoUniverseEfficiencyBase {
644650 continue ;
645651 }
646652 registryCuts.fill (HIST (" part1/cutsVspT" ), part.pt (), 3 );
647- registryTOFMatch.fill (HIST (" part1/hTofMatchPtBeforePID" ), part.pt ());
653+ // TOF Matching efficiency before PID
654+ registryTOFMatch.fill (HIST (" part1/hTofMatchPtBeforePIDAllPart" ), part.pt ());
655+ if (part.mLambda () == 1 ) {
656+ registryTOFMatch.fill (HIST (" part1/hTofMatchPtBeforePIDPartWithTof" ), part.pt ());
657+ }
648658
649659 if (!ConfTracksPid.trkUsePassPIDSelection ) {
650660 if (!isParticleNSigma (confPDGCodePartOne, static_cast <bool >(part.mLambda ()), part.p (), trackCuts.getNsigmaTPC (part, o2::track::PID ::Proton), trackCuts.getNsigmaTOF (part, o2::track::PID ::Proton), trackCuts.getNsigmaTPC (part, o2::track::PID ::Pion), trackCuts.getNsigmaTOF (part, o2::track::PID ::Pion), trackCuts.getNsigmaTPC (part, o2::track::PID ::Kaon), trackCuts.getNsigmaTOF (part, o2::track::PID ::Kaon), trackCuts.getNsigmaTPC (part, o2::track::PID ::Deuteron), trackCuts.getNsigmaTOF (part, o2::track::PID ::Deuteron))) {
@@ -660,9 +670,10 @@ struct FemtoUniverseEfficiencyBase {
660670 }
661671 registryCuts.fill (HIST (" part1/cutsVspT" ), part.pt (), 4 );
662672
663- // TOF Matching efficiency
673+ // TOF Matching efficiency after PID
674+ registryTOFMatch.fill (HIST (" part1/hTofMatchPtAfterPIDAllPart" ), part.pt ());
664675 if (part.mLambda () == 1 ) {
665- registryTOFMatch.fill (HIST (" part1/hTofMatchPtAfterPID " ), part.pt ());
676+ registryTOFMatch.fill (HIST (" part1/hTofMatchPtAfterPIDPartWithTof " ), part.pt ());
666677 } else {
667678 registryTOFMatch.fill (HIST (" part1/hTpcPt" ), part.pt ());
668679 }
@@ -672,6 +683,11 @@ struct FemtoUniverseEfficiencyBase {
672683
673684 registryPDG.fill (HIST (" part1/PDGvspTall" ), part.pt (), mcParticle.pdgMCTruth ());
674685
686+ // Primary particles which have TOF after PID
687+ if (part.mLambda () == 1 && mcParticle.partOriginMCTruth () == aod::femtouniverse_mc_particle::ParticleOriginMCTruth::kPrimary ) {
688+ registryTOFMatch.fill (HIST (" part1/hTofMatchPtAfterPIDPrimaryWithTof" ), part.pt ());
689+ }
690+
675691 if (fillSecTrkContHistos) {
676692 if (mcParticle.partOriginMCTruth () == aod::femtouniverse_mc_particle::ParticleOriginMCTruth::kPrimary ) {
677693 registrySecTrkCont.fill (HIST (" part1/hDCAxy_Primary" ), part.pt (), part.tempFitVar ());
@@ -723,7 +739,11 @@ struct FemtoUniverseEfficiencyBase {
723739 continue ;
724740 }
725741 registryCuts.fill (HIST (" part2/cutsVspT" ), part.pt (), 3 );
726- registryTOFMatch.fill (HIST (" part2/hTofMatchPtBeforePID" ), part.pt ());
742+ // TOF Matching efficiency before PID
743+ registryTOFMatch.fill (HIST (" part2/hTofMatchPtBeforePIDAllPart" ), part.pt ());
744+ if (part.mLambda () == 1 ) {
745+ registryTOFMatch.fill (HIST (" part2/hTofMatchPtBeforePIDPartWithTof" ), part.pt ());
746+ }
727747
728748 if (!ConfTracksPid.trkUsePassPIDSelection ) {
729749 if (!isParticleNSigma (confPDGCodePartTwo, static_cast <bool >(part.mLambda ()), part.p (), trackCuts.getNsigmaTPC (part, o2::track::PID ::Proton), trackCuts.getNsigmaTOF (part, o2::track::PID ::Proton), trackCuts.getNsigmaTPC (part, o2::track::PID ::Pion), trackCuts.getNsigmaTOF (part, o2::track::PID ::Pion), trackCuts.getNsigmaTPC (part, o2::track::PID ::Kaon), trackCuts.getNsigmaTOF (part, o2::track::PID ::Kaon), trackCuts.getNsigmaTPC (part, o2::track::PID ::Deuteron), trackCuts.getNsigmaTOF (part, o2::track::PID ::Deuteron))) {
@@ -739,9 +759,10 @@ struct FemtoUniverseEfficiencyBase {
739759 }
740760 registryCuts.fill (HIST (" part2/cutsVspT" ), part.pt (), 4 );
741761
742- // TOF Matching efficiency
762+ // TOF Matching efficiency after PID
763+ registryTOFMatch.fill (HIST (" part2/hTofMatchPtAfterPIDAllPart" ), part.pt ());
743764 if (part.mLambda () == 1 ) {
744- registryTOFMatch.fill (HIST (" part2/hTofMatchPtAfterPID " ), part.pt ());
765+ registryTOFMatch.fill (HIST (" part2/hTofMatchPtAfterPIDPartWithTof " ), part.pt ());
745766 } else {
746767 registryTOFMatch.fill (HIST (" part2/hTpcPt" ), part.pt ());
747768 }
@@ -751,6 +772,11 @@ struct FemtoUniverseEfficiencyBase {
751772
752773 registryPDG.fill (HIST (" part2/PDGvspTall" ), part.pt (), mcParticle.pdgMCTruth ());
753774
775+ // Primary particles which have TOF after PID
776+ if (part.mLambda () == 1 && mcParticle.partOriginMCTruth () == aod::femtouniverse_mc_particle::ParticleOriginMCTruth::kPrimary ) {
777+ registryTOFMatch.fill (HIST (" part2/hTofMatchPtAfterPIDPrimaryWithTof" ), part.pt ());
778+ }
779+
754780 if (fillSecTrkContHistos) {
755781 if (mcParticle.partOriginMCTruth () == aod::femtouniverse_mc_particle::ParticleOriginMCTruth::kPrimary ) {
756782 registrySecTrkCont.fill (HIST (" part2/hDCAxy_Primary" ), part.pt (), part.tempFitVar ());
0 commit comments