@@ -216,6 +216,7 @@ struct Phik0shortanalysis {
216216 // Event information
217217 dataEventHist.add (" hVertexZ" , " hVertexZ" , kTH1F , {vertexZAxis});
218218 dataEventHist.add (" hMultiplicityPercent" , " Multiplicity Percentile" , kTH1F , {multAxis});
219+ dataEventHist.add (" hMultiplicityPercentWithPhi" , " Multiplicity Percentile in Events with a Phi Candidate" , kTH1F , {multAxis});
219220
220221 // Number of MC events per selection for Rec and Gen
221222 mcEventHist.add (" hRecMCEventSelection" , " hRecMCEventSelection" , kTH1F , {{8 , -0 .5f , 7 .5f }});
@@ -283,6 +284,9 @@ struct Phik0shortanalysis {
283284 dataPhiK0SHist.add (" h4PhiK0SSEFCut" , " 2D Invariant mass of Phi and K0Short for Same Event Deltay < FirstCut" , kTHnSparseF , {binnedmultAxis, binnedptK0SAxis, massK0SAxis, sigmassPhiAxis});
284285 dataPhiK0SHist.add (" h4PhiK0SSESCut" , " 2D Invariant mass of Phi and K0Short for Same Event Deltay < SecondCut" , kTHnSparseF , {binnedmultAxis, binnedptK0SAxis, massK0SAxis, sigmassPhiAxis});
285286
287+ // K0S rapidity in Data
288+ dataPhiK0SHist.add (" h3K0SRapidityData" , " K0Short rapidity for Data" , kTH3F , {binnedmultAxis, binnedptK0SAxis, yAxis});
289+
286290 // RecMC K0S coupled to Phi
287291 mcPhiK0SHist.add (" h3RecMCPhiK0SInc" , " RecoMC K0Short coupled to Phi Inclusive" , kTH3F , {binnedmultAxis, binnedptK0SAxis, massK0SAxis});
288292 mcPhiK0SHist.add (" h3RecMCPhiK0SFCut" , " RecoMC K0Short coupled to Phi Deltay < FirstCut" , kTH3F , {binnedmultAxis, binnedptK0SAxis, massK0SAxis});
@@ -307,6 +311,9 @@ struct Phik0shortanalysis {
307311 dataPhiPionHist.add (" h5PhiPiSEFCut" , " Phi Invariant mass vs Pion nSigma TPC/TOF for Same Event Deltay < FirstCut" , kTHnSparseF , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }, sigmassPhiAxis});
308312 dataPhiPionHist.add (" h5PhiPiSESCut" , " Phi Invariant mass vs Pion nSigma TPC/TOF for Same Event Deltay < SecondCut" , kTHnSparseF , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }, sigmassPhiAxis});
309313
314+ // Pion rapidity in Data
315+ dataPhiPionHist.add (" h3PiRapidityData" , " Pion rapidity for Data" , kTH3F , {binnedmultAxis, binnedptPiAxis, yAxis});
316+
310317 // RecMC Pion coupled to Phi with TPC
311318 mcPhiPionHist.add (" h3RecMCPhiPiTPCInc" , " RecoMC Pion coupled to Phi with TPC Inclusive" , kTH3F , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }});
312319 mcPhiPionHist.add (" h3RecMCPhiPiTPCFCut" , " RecoMC Pion coupled to Phi with TPC Deltay < FirstCut" , kTH3F , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }});
@@ -371,18 +378,22 @@ struct Phik0shortanalysis {
371378 mcK0SHist.add (" h2K0SGenMC" , " K0Short for GenMC" , kTH2F , {binnedmultAxis, binnedptK0SAxis});
372379 mcK0SHist.add (" h2K0SGenMCAssocReco" , " K0Short for GenMC Associated Reco Collision" , kTH2F , {binnedmultAxis, binnedptK0SAxis});
373380
374- // Rapidity smearing matrix for K0S
381+ // Rapidity smearing matrix for K0S and rapidity in GenMC
375382 mcK0SHist.add (" h4K0SRapiditySmearing" , " Rapidity Smearing Matrix for K0Short" , kTHnSparseF , {binnedmultAxis, binnedptK0SAxis, yAxis, yAxis});
376383
384+ mcK0SHist.add (" h3K0SRapidityGenMC" , " Rapidity for K0Short for GenMC" , kTH3F , {binnedmultAxis, binnedptK0SAxis, yAxis});
385+
377386 // MCPion invariant mass and GenMC Pion for computing efficiencies
378387 mcPionHist.add (" h3RecMCPiTPC" , " RecoMC Pion for Efficiency with TPC" , kTH3F , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }});
379388 mcPionHist.add (" h4RecMCPiTPCTOF" , " RecoMC Pion for Efficiency with TPC and TOF" , kTHnSparseF , {binnedmultAxis, binnedptPiAxis, {100 , -10 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }});
380389
381390 mcPionHist.add (" h2PiGenMC" , " Pion for GenMC" , kTH2F , {binnedmultAxis, binnedptPiAxis});
382391 mcPionHist.add (" h2PiGenMCAssocReco" , " Pion for GenMC Associated Reco Collision" , kTH2F , {binnedmultAxis, binnedptPiAxis});
383392
384- // Rapidity smearing matrix for Pion
393+ // Rapidity smearing matrix for Pion and rapidity in GenMC
385394 mcPionHist.add (" h4PiRapiditySmearing" , " Rapidity Smearing Matrix for Pion" , kTHnSparseF , {binnedmultAxis, binnedptPiAxis, yAxis, yAxis});
395+
396+ mcPionHist.add (" h3PiRapidityGenMC" , " Rapidity for Pion for GenMC" , kTH3F , {binnedmultAxis, binnedptPiAxis, yAxis});
386397 }
387398
388399 // Event selection and QA filling
@@ -680,6 +691,7 @@ struct Phik0shortanalysis {
680691
681692 if (!isCountedPhi) {
682693 dataEventHist.fill (HIST (" hEventSelection" ), 4 ); // at least a Phi candidate in the event
694+ dataEventHist.fill (HIST (" hMultiplicityPercentWithPhi" ), multiplicity);
683695 isCountedPhi = true ;
684696 }
685697
@@ -786,6 +798,8 @@ struct Phik0shortanalysis {
786798 if (cfgFurtherV0Selection && !furtherSelectionV0 (v0, collision))
787799 continue ;
788800
801+ dataPhiK0SHist.fill (HIST (" h3K0SRapidityData" ), multiplicity, v0.pt (), v0.yK0Short ());
802+
789803 if (std::abs (v0.yK0Short ()) > cfgYAcceptance)
790804 continue ;
791805
@@ -857,6 +871,8 @@ struct Phik0shortanalysis {
857871 if (!selectionPion<true >(track))
858872 continue ;
859873
874+ dataPhiPionHist.fill (HIST (" h3PiRapidityData" ), multiplicity, track.pt (), track.rapidity (massPi));
875+
860876 if (std::abs (track.rapidity (massPi)) > cfgYAcceptance)
861877 continue ;
862878
@@ -1648,6 +1664,9 @@ struct Phik0shortanalysis {
16481664 continue ;
16491665 if (!mcParticle1.isPhysicalPrimary ())
16501666 continue ;
1667+
1668+ mcK0SHist.fill (HIST (" h3K0SRapidityGenMC" ), genmultiplicity, mcParticle1.pt (), mcParticle1.y ());
1669+
16511670 if (std::abs (mcParticle1.y ()) > cfgYAcceptance)
16521671 continue ;
16531672
@@ -1728,6 +1747,9 @@ struct Phik0shortanalysis {
17281747 continue ;
17291748 if (!mcParticle1.isPhysicalPrimary ())
17301749 continue ;
1750+
1751+ mcPionHist.fill (HIST (" h3PiRapidityGenMC" ), genmultiplicity, mcParticle1.pt (), mcParticle1.y ());
1752+
17311753 if (std::abs (mcParticle1.y ()) > cfgYAcceptance)
17321754 continue ;
17331755
0 commit comments