@@ -998,6 +998,7 @@ struct LFNucleiBATask {
998998 histos.add <TH2>(" tracks/helium/h2HeliumSpectraTrueVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
999999 histos.add <TH2>(" tracks/helium/h2HeliumSpectraTrueWPIDVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
10001000 histos.add <TH2>(" tracks/helium/h2HeliumSpectraTruePrimVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
1001+ histos.add <TH2>(" tracks/helium/h2HeliumSpectraTruePrimGenVsMult_Z2" , " #it{p}_{T}(gen) (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
10011002 histos.add <TH2>(" tracks/helium/h2HeliumSpectraTrueSecVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
10021003 }
10031004
@@ -1011,6 +1012,7 @@ struct LFNucleiBATask {
10111012 histos.add <TH2>(" tracks/helium/h2antiHeliumSpectraTrueVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
10121013 histos.add <TH2>(" tracks/helium/h2antiHeliumSpectraTrueWPIDVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
10131014 histos.add <TH2>(" tracks/helium/h2antiHeliumSpectraTruePrimVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
1015+ histos.add <TH2>(" tracks/helium/h2antiHeliumSpectraTruePrimGenVsMult_Z2" , " #it{p}_{T}(gen) (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
10141016 histos.add <TH2>(" tracks/helium/h2antiHeliumSpectraTrueSecVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
10151017 }
10161018
@@ -1020,8 +1022,11 @@ struct LFNucleiBATask {
10201022 if (enableCentrality) {
10211023 histos.add <TH2>(" tracks/helium/TOF/h2HeliumSpectraTrueWPIDVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
10221024 histos.add <TH2>(" tracks/helium/TOF/h2HeliumSpectraTruePrimVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
1025+ histos.add <TH2>(" tracks/helium/TOF/h2HeliumSpectraTruePrimGenVsMult_Z2" , " #it{p}_{T}(gen) (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
1026+
10231027 histos.add <TH2>(" tracks/helium/TOF/h2antiHeliumSpectraTrueWPIDVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
10241028 histos.add <TH2>(" tracks/helium/TOF/h2antiHeliumSpectraTruePrimVsMult_Z2" , " #it{p}_{T} (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
1029+ histos.add <TH2>(" tracks/helium/TOF/h2antiHeliumSpectraTruePrimGenVsMult_Z2" , " #it{p}_{T}(gen) (He)" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
10251030 }
10261031 }
10271032 if (outFlagOptions.enableEffPlots ) {
@@ -2150,6 +2155,7 @@ struct LFNucleiBATask {
21502155 spectraGen.add (" helium/histPtGenHe" , " PtGenHe" , HistType::kTH1F , {{800 , 0 .f , 8 .f }});
21512156 spectraGen.add (" helium/histPtRecHe" , " PtRecHe" , HistType::kTH1F , {{800 , 0 .f , 8 .f }});
21522157 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 }, {400 , -4 .f , 4 .f }});
2158+ 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 }, {400 , -4 .f , 4 .f }});
21532159 spectraGen.add (" helium/histPtShiftVsEtaHe" , " PtReco-PtGen vs #eta" , HistType::kTH2F , {{200 , -2 .f , 2 .f }, {400 , -4 .f , 4 .f }});
21542160
21552161 spectraGen.add (" helium/histPGenHe" , " PGenHe" , HistType::kTH1F , {{800 , 0 .f , 8 .f }});
@@ -2160,6 +2166,7 @@ struct LFNucleiBATask {
21602166 spectraGen.add (" helium/histPtGenantiHe" , " PtGenantiHe" , HistType::kTH1F , {{800 , 0 .f , 8 .f }});
21612167 spectraGen.add (" helium/histPtRecantiHe" , " PtRecantiHe" , HistType::kTH1F , {{800 , 0 .f , 8 .f }});
21622168 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 }, {400 , -4 .f , 4 .f }});
2169+ 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 }, {400 , -4 .f , 4 .f }});
21632170 spectraGen.add (" helium/histPtShiftVsEtaantiHe" , " PtReco-PtGen vs #eta" , HistType::kTH2F , {{200 , -2 .f , 2 .f }, {400 , -4 .f , 4 .f }});
21642171
21652172 spectraGen.add (" helium/histPGenantiHe" , " PGenantiHe" , HistType::kTH1F , {{800 , 0 .f , 8 .f }});
@@ -3707,6 +3714,7 @@ struct LFNucleiBATask {
37073714 spectraGen.fill (HIST (" helium/histPtGenHe" ), std::abs (track.mcParticle ().pt ()));
37083715 spectraGen.fill (HIST (" helium/histPtRecHe" ), 2 .f * hePt);
37093716 spectraGen.fill (HIST (" helium/histPtShiftHe" ), 2 .f * hePt, 2 .f * hePt - track.mcParticle ().pt ());
3717+ spectraGen.fill (HIST (" helium/histPtShiftHeVsGen" ), track.mcParticle ().pt (), 2 .f * hePt - track.mcParticle ().pt ());
37103718 spectraGen.fill (HIST (" helium/histPtShiftVsEtaHe" ), track.eta (), 2 .f * hePt - track.mcParticle ().pt ());
37113719
37123720 spectraGen.fill (HIST (" helium/histPGenHe" ), std::abs (track.mcParticle ().p ()));
@@ -3774,12 +3782,13 @@ struct LFNucleiBATask {
37743782 }
37753783 }
37763784 }
3777- if (isHeWoTPCpid ) {
3785+ if (isAntiHeWoTPCpid ) {
37783786 if (isPhysPrim) {
37793787 if constexpr (!IsFilteredData) {
37803788 spectraGen.fill (HIST (" helium/histPtGenantiHe" ), std::abs (track.mcParticle ().pt ()));
37813789 spectraGen.fill (HIST (" helium/histPtRecantiHe" ), 2 .f * antihePt);
37823790 spectraGen.fill (HIST (" helium/histPtShiftantiHe" ), 2 .f * antihePt, 2 .f * antihePt - track.mcParticle ().pt ());
3791+ spectraGen.fill (HIST (" helium/histPtShiftantiHeVsGen" ), track.mcParticle ().pt (), 2 .f * antihePt - track.mcParticle ().pt ());
37833792 spectraGen.fill (HIST (" helium/histPtShiftVsEtaantiHe" ), track.eta (), 2 .f * antihePt - track.mcParticle ().pt ());
37843793
37853794 spectraGen.fill (HIST (" helium/histPGenantiHe" ), std::abs (track.mcParticle ().p ()));
@@ -5811,13 +5820,19 @@ struct LFNucleiBATask {
58115820 }
58125821 if (isPhysPrim) {
58135822 histos.fill (HIST (" tracks/helium/h1HeliumSpectraTruePrim_Z2" ), 2 * hePt);
5814- if (enableCentrality)
5823+ if (enableCentrality) {
58155824 histos.fill (HIST (" tracks/helium/h2HeliumSpectraTruePrimVsMult_Z2" ), 2 * hePt, centFT0M);
5825+ if constexpr (!IsFilteredData)
5826+ histos.fill (HIST (" tracks/helium/h2HeliumSpectraTruePrimGenVsMult_Z2" ), track.mcParticle ().pt (), centFT0M);
5827+ }
58165828 if (std::abs (track.tpcNSigmaHe ()) < nsigmaTPCvar.nsigmaTPCHe ) {
58175829 if (track.hasTOF () && outFlagOptions.doTOFplots ) {
58185830 histos.fill (HIST (" tracks/helium/TOF/h1HeliumSpectraTruePrim_Z2" ), 2 * hePt);
5819- if (enableCentrality)
5831+ if (enableCentrality) {
58205832 histos.fill (HIST (" tracks/helium/TOF/h2HeliumSpectraTruePrimVsMult_Z2" ), 2 * hePt, centFT0M);
5833+ if constexpr (!IsFilteredData)
5834+ histos.fill (HIST (" tracks/helium/TOF/h2HeliumSpectraTruePrimGenVsMult_Z2" ), track.mcParticle ().pt (), centFT0M);
5835+ }
58215836 }
58225837 }
58235838
@@ -5886,14 +5901,20 @@ struct LFNucleiBATask {
58865901 }
58875902 if (isPhysPrim) {
58885903 histos.fill (HIST (" tracks/helium/h1antiHeliumSpectraTruePrim_Z2" ), 2 * antihePt);
5889- if (enableCentrality)
5904+ if (enableCentrality) {
58905905 histos.fill (HIST (" tracks/helium/h2antiHeliumSpectraTruePrimVsMult_Z2" ), 2 * antihePt, centFT0M);
5906+ if constexpr (!IsFilteredData)
5907+ histos.fill (HIST (" tracks/helium/h2antiHeliumSpectraTruePrimGenVsMult_Z2" ), track.mcParticle ().pt (), centFT0M);
5908+ }
58915909
58925910 if (std::abs (track.tpcNSigmaHe ()) < nsigmaTPCvar.nsigmaTPCHe ) {
58935911 if (track.hasTOF () && outFlagOptions.doTOFplots ) {
58945912 histos.fill (HIST (" tracks/helium/TOF/h1antiHeliumSpectraTruePrim_Z2" ), 2 * antihePt);
5895- if (enableCentrality)
5913+ if (enableCentrality) {
58965914 histos.fill (HIST (" tracks/helium/TOF/h2antiHeliumSpectraTruePrimVsMult_Z2" ), 2 * antihePt, centFT0M);
5915+ if constexpr (!IsFilteredData)
5916+ histos.fill (HIST (" tracks/helium/TOF/h2antiHeliumSpectraTruePrimGenVsMult_Z2" ), track.mcParticle ().pt (), centFT0M);
5917+ }
58975918 }
58985919 }
58995920
0 commit comments