@@ -781,8 +781,8 @@ struct LFNucleiBATask {
781781 histos.add <TH1>(" tracks/helium/h1antiHeliumSpectra_Z2" , " #it{p}_{T} (#bar{He})" , HistType::kTH1F , {ptHeAxis});
782782
783783 if (enableDebug) {
784- debugHistos.add <TH2>(" tracks/helium/h2HeliumPidTrackingVsPt" , " #it{p}_{T} (He) vs PIDforTracking" , HistType::kTH2F , {{80 , 0 , 8 }, {9 , -0.5 , 8 .5 }});
785- debugHistos.add <TH2>(" tracks/helium/h2antiHeliumPidTrackingVsPt" , " #it{p}_{T} (#bar{He}) vs PIDforTracking" , HistType::kTH2F , {{80 , 0 , 8 }, {9 , -0.5 , 8 .5 }});
784+ debugHistos.add <TH2>(" tracks/helium/h2HeliumPidTrackingVsPt" , " #it{p}_{T} (He) vs PIDforTracking" , HistType::kTH2F , {{80 , 0 , 8 }, {12 , -0.5 , 11 .5 }});
785+ debugHistos.add <TH2>(" tracks/helium/h2antiHeliumPidTrackingVsPt" , " #it{p}_{T} (#bar{He}) vs PIDforTracking" , HistType::kTH2F , {{80 , 0 , 8 }, {12 , -0.5 , 11 .5 }});
786786 }
787787
788788 if (outFlagOptions.doTOFplots && enableCentrality) {
@@ -2165,6 +2165,8 @@ struct LFNucleiBATask {
21652165 spectraGen.add (" helium/histPtRecHe" , " PtRecHe" , HistType::kTH1F , {{800 , 0 .f , 8 .f }});
21662166 spectraGen.add (" helium/histPtShiftHe" , " PtReco-PtGen vs PtReco;#it{p}_{T}(reco); #it{p}_{T}(reco) - #it{p}_{T}(gen)" , HistType::kTH2F , {{800 , 0 .f , 8 .f }, {140 , -1 .f , 1 .4f }});
21672167 spectraGen.add (" helium/histPtShiftHeVsGen" , " PtReco-PtGen vs PtGen;#it{p}_{T}(gen); #it{p}_{T}(reco) - #it{p}_{T}(gen)" , HistType::kTH2F , {{800 , 0 .f , 8 .f }, {140 , -1 .f , 1 .4f }});
2168+ spectraGen.add (" helium/histPtShiftHe_WrongPidAll" , " PtReco-PtGen (He, wrong PIDforTracking) vs PtReco;#it{p}_{T}(reco); #it{p}_{T}(reco) - #it{p}_{T}(gen)" , HistType::kTH2F , {{800 , 0 .f , 8 .f }, {140 , -1 .f , 1 .4f }});
2169+ spectraGen.add (" helium/histPtShiftHe_WrongPidDe" , " PtReco-PtGen (He, wrong PIDforTracking) vs PtReco;#it{p}_{T}(reco); #it{p}_{T}(reco) - #it{p}_{T}(gen)" , HistType::kTH2F , {{800 , 0 .f , 8 .f }, {140 , -1 .f , 1 .4f }});
21682170 spectraGen.add (" helium/histPtShiftHe_WrongPidTr" , " PtReco-PtGen (He, wrong PIDforTracking) vs PtReco;#it{p}_{T}(reco); #it{p}_{T}(reco) - #it{p}_{T}(gen)" , HistType::kTH2F , {{800 , 0 .f , 8 .f }, {140 , -1 .f , 1 .4f }});
21692171
21702172 spectraGen.add (" helium/histPtShiftVsEtaHe" , " PtReco-PtGen vs #eta" , HistType::kTH2F , {{140 , -1 .4f , 1 .4f }, {140 , -1 .f , 1 .4f }});
@@ -2178,6 +2180,8 @@ struct LFNucleiBATask {
21782180 spectraGen.add (" helium/histPtRecantiHe" , " PtRecantiHe" , HistType::kTH1F , {{800 , 0 .f , 8 .f }});
21792181 spectraGen.add (" helium/histPtShiftantiHe" , " PtReco-PtGen vs PtReco; #it{p}_{T}(reco); #it{p}_{T}(reco) - #it{p}_{T}(gen)" , HistType::kTH2F , {{800 , 0 .f , 8 .f }, {140 , -1 .f , 1 .4f }});
21802182 spectraGen.add (" helium/histPtShiftantiHeVsGen" , " PtReco-PtGen vs PtGen; #it{p}_{T}(gen); #it{p}_{T}(reco) - #it{p}_{T}(gen)" , HistType::kTH2F , {{800 , 0 .f , 8 .f }, {140 , -1 .f , 1 .4f }});
2183+ spectraGen.add (" helium/histPtShiftantiHe_WrongPidAll" , " PtReco-PtGen (#bar{H}e, wrong PIDforTracking) vs PtReco;#it{p}_{T}(reco); #it{p}_{T}(reco) - #it{p}_{T}(gen)" , HistType::kTH2F , {{800 , 0 .f , 8 .f }, {140 , -1 .f , 1 .4f }});
2184+ spectraGen.add (" helium/histPtShiftantiHe_WrongPidDe" , " PtReco-PtGen (#bar{H}e, wrong PIDforTracking) vs PtReco;#it{p}_{T}(reco); #it{p}_{T}(reco) - #it{p}_{T}(gen)" , HistType::kTH2F , {{800 , 0 .f , 8 .f }, {140 , -1 .f , 1 .4f }});
21812185 spectraGen.add (" helium/histPtShiftantiHe_WrongPidTr" , " PtReco-PtGen (#bar{H}e, wrong PIDforTracking) vs PtReco;#it{p}_{T}(reco); #it{p}_{T}(reco) - #it{p}_{T}(gen)" , HistType::kTH2F , {{800 , 0 .f , 8 .f }, {140 , -1 .f , 1 .4f }});
21822186 spectraGen.add (" helium/histPtShiftVsEtaantiHe" , " PtReco-PtGen vs #eta" , HistType::kTH2F , {{140 , -1 .4f , 1 .4f }, {140 , -1 .f , 1 .4f }});
21832187
@@ -2466,6 +2470,8 @@ struct LFNucleiBATask {
24662470
24672471 isTritonTPCpid = std::abs (track.tpcNSigmaTr ()) < nsigmaTPCvar.nsigmaTPCTr ;
24682472 bool heliumPID = track.pidForTracking () == o2::track::PID::Helium3 || track.pidForTracking () == o2::track::PID::Alpha;
2473+ bool tritonPID = track.pidForTracking () == o2::track::PID::Triton;
2474+ bool deuteronPID = track.pidForTracking () == o2::track::PID::Deuteron;
24692475
24702476 float shiftPtPos = 0 .f ;
24712477 float shiftPtNeg = 0 .f ;
@@ -2539,7 +2545,7 @@ struct LFNucleiBATask {
25392545 }
25402546 if (enablePtShiftPID && fShiftPtPID ) {
25412547 shiftPtPID = fShiftPtPID ->Eval (2 * track.pt ());
2542- if (!heliumPID && (track.pt () < 2 . 4f )) {
2548+ if (tritonPID && (track.pt () <= 1 . 25f )) {
25432549 hePt = track.pt () - shiftPtPID / 2 .f ;
25442550 antihePt = track.pt () - shiftPtPID / 2 .f ;
25452551 }
@@ -3747,7 +3753,12 @@ struct LFNucleiBATask {
37473753 spectraGen.fill (HIST (" helium/histPtShiftHe" ), 2 .f * hePt, 2 .f * hePt - track.mcParticle ().pt ());
37483754 spectraGen.fill (HIST (" helium/histPtShiftHeVsGen" ), track.mcParticle ().pt (), 2 .f * hePt - track.mcParticle ().pt ());
37493755 if (!heliumPID)
3756+ spectraGen.fill (HIST (" helium/histPtShiftHe_WrongPidAll" ), 2 .f * hePt, 2 .f * hePt - track.mcParticle ().pt ());
3757+ if (tritonPID)
37503758 spectraGen.fill (HIST (" helium/histPtShiftHe_WrongPidTr" ), 2 .f * hePt, 2 .f * hePt - track.mcParticle ().pt ());
3759+ if (deuteronPID)
3760+ spectraGen.fill (HIST (" helium/histPtShiftHe_WrongPidDe" ), 2 .f * hePt, 2 .f * hePt - track.mcParticle ().pt ());
3761+
37513762 spectraGen.fill (HIST (" helium/histPtShiftVsEtaHe" ), track.eta (), 2 .f * hePt - track.mcParticle ().pt ());
37523763 if (track.hasTOF () && outFlagOptions.doTOFplots ) {
37533764 spectraGen.fill (HIST (" helium/TOF/histPtShiftHe" ), 2 .f * hePt, 2 .f * hePt - track.mcParticle ().pt ());
@@ -3826,7 +3837,12 @@ struct LFNucleiBATask {
38263837 spectraGen.fill (HIST (" helium/histPtShiftantiHe" ), 2 .f * antihePt, 2 .f * antihePt - track.mcParticle ().pt ());
38273838 spectraGen.fill (HIST (" helium/histPtShiftantiHeVsGen" ), track.mcParticle ().pt (), 2 .f * antihePt - track.mcParticle ().pt ());
38283839 if (!heliumPID)
3840+ spectraGen.fill (HIST (" helium/histPtShiftantiHe_WrongPidAll" ), 2 .f * antihePt, 2 .f * antihePt - track.mcParticle ().pt ());
3841+ if (tritonPID)
38293842 spectraGen.fill (HIST (" helium/histPtShiftantiHe_WrongPidTr" ), 2 .f * antihePt, 2 .f * antihePt - track.mcParticle ().pt ());
3843+ if (deuteronPID)
3844+ spectraGen.fill (HIST (" helium/histPtShiftantiHe_WrongPidDe" ), 2 .f * antihePt, 2 .f * antihePt - track.mcParticle ().pt ());
3845+
38303846 spectraGen.fill (HIST (" helium/histPtShiftVsEtaantiHe" ), track.eta (), 2 .f * antihePt - track.mcParticle ().pt ());
38313847 if (track.hasTOF () && outFlagOptions.doTOFplots ) {
38323848 spectraGen.fill (HIST (" helium/TOF/histPtShiftantiHe" ), 2 .f * antihePt, 2 .f * antihePt - track.mcParticle ().pt ());
0 commit comments