@@ -251,8 +251,8 @@ struct Kstarqa {
251251 hOthers.add (" hCRFC_after" , " CRFC after distribution" , kTH1F , {{100 , 0 .0f , 10 .0f }});
252252 hOthers.add (" hCRFC_before" , " CRFC before distribution" , kTH1F , {{100 , 0 .0f , 10 .0f }});
253253
254- hOthers.add (" hKstar_Rap " , " Pair rapidity distribution; y; Counts" , kTH1F , {{1000 , -5 .0f , 5 .0f }});
255- hOthers.add (" hKstar_Eta " , " Pair eta distribution; #eta; Counts" , kTH1F , {{1000 , -5 .0f , 5 .0f }});
254+ hOthers.add (" hKstar_rap_pt " , " Pair rapidity distribution; y; p_{T}; Counts" , kTH2F , {{400 , -2 .0f , 2 .0f }, ptAxis });
255+ hOthers.add (" hKstar_eta_pt " , " Pair eta distribution; #eta; p_{T}; Counts" , kTH2F , {{400 , -2 .0f , 2 .0f }, ptAxis });
256256
257257 hPID.add (" Before/hNsigmaTPC_Ka_before" , " N #sigma Kaon TPC before" , kTH2F , {{50 , 0 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }});
258258 hPID.add (" Before/hNsigmaTOF_Ka_before" , " N #sigma Kaon TOF before" , kTH2F , {{50 , 0 .0f , 10 .0f }, {100 , -10 .0f , 10 .0f }});
@@ -387,7 +387,7 @@ struct Kstarqa {
387387 double massKa = o2::constants::physics::MassKPlus;
388388
389389 template <typename Coll>
390- bool selectionEvent (const Coll& collision, bool fillHist = true )
390+ bool selectionEvent (const Coll& collision, bool fillHist = false )
391391 {
392392 if (fillHist)
393393 rEventSelection.fill (HIST (" hEventCut" ), 0 );
@@ -1095,8 +1095,8 @@ struct Kstarqa {
10951095 continue ;
10961096 }
10971097
1098- hOthers.fill (HIST (" hKstar_Rap " ), mother.Rapidity ());
1099- hOthers.fill (HIST (" hKstar_Eta " ), mother.Eta ());
1098+ hOthers.fill (HIST (" hKstar_rap_pt " ), mother.Rapidity (), mother. Pt ());
1099+ hOthers.fill (HIST (" hKstar_eta_pt " ), mother.Eta (), mother. Pt ());
11001100
11011101 isMix = false ;
11021102 fillInvMass (daughter1, daughter2, mother, multiplicity, isMix, track1, track2);
@@ -1533,7 +1533,7 @@ struct Kstarqa {
15331533 rEventSelection.fill (HIST (" eventsCheckGen" ), 2.5 );
15341534
15351535 for (const auto & collision : collisions) {
1536- if (!selectionEvent (collision, true )) {
1536+ if (!selectionEvent (collision, false )) {
15371537 continue ;
15381538 }
15391539 multiplicity = collision.centFT0M ();
@@ -1739,6 +1739,10 @@ struct Kstarqa {
17391739 hInvMass.fill (HIST (" h1RecMult" ), multiplicity);
17401740 hInvMass.fill (HIST (" h1RecMult2" ), multiplicityRec);
17411741
1742+ if (cQAevents) {
1743+ rEventSelection.fill (HIST (" hVertexZRec" ), collision.posZ ());
1744+ }
1745+
17421746 auto oldindex = -999 ;
17431747 for (const auto & track1 : tracks) {
17441748 if (!selectionTrack (track1)) {
@@ -1749,6 +1753,11 @@ struct Kstarqa {
17491753 continue ;
17501754 }
17511755
1756+ if (cQAevents) {
1757+ rEventSelection.fill (HIST (" hDcaxy" ), track1.dcaXY ());
1758+ rEventSelection.fill (HIST (" hDcaz" ), track1.dcaZ ());
1759+ }
1760+
17521761 auto track1ID = track1.index ();
17531762 for (const auto & track2 : tracks) {
17541763 rEventSelection.fill (HIST (" recMCparticles" ), 0.5 );
@@ -1777,7 +1786,12 @@ struct Kstarqa {
17771786 const auto mctrack2 = track2.mcParticle ();
17781787 int track1PDG = std::abs (mctrack1.pdgCode ());
17791788 int track2PDG = std::abs (mctrack2.pdgCode ());
1780-
1789+ if (cQAplots){
1790+ hPID.fill (HIST (" Before/hTPCnsigKa_mult_pt" ), track1.tpcNSigmaKa (), multiplicity, track1.pt ());
1791+ hPID.fill (HIST (" Before/hTPCnsigPi_mult_pt" ), track2.tpcNSigmaPi (), multiplicity, track2.pt ());
1792+ hPID.fill (HIST (" Before/hTOFnsigKa_mult_pt" ), track1.tofNSigmaKa (), multiplicity, track1.pt ());
1793+ hPID.fill (HIST (" Before/hTOFnsigPi_mult_pt" ), track2.tofNSigmaKa (), multiplicity, track2.pt ());
1794+ }
17811795 if (cQAplots && (mctrack2.pdgCode () == PDG_t::kPiPlus )) { // pion
17821796 hPID.fill (HIST (" Before/h1PID_TPC_pos_pion" ), track2.tpcNSigmaPi ());
17831797 hPID.fill (HIST (" Before/h1PID_TOF_pos_pion" ), track2.tofNSigmaPi ());
@@ -1906,6 +1920,12 @@ struct Kstarqa {
19061920 continue ;
19071921 rEventSelection.fill (HIST (" recMCparticles" ), 13.5 );
19081922 }
1923+ if (cQAplots){
1924+ hPID.fill (HIST (" After/hTPCnsigKa_mult_pt" ), track1.tpcNSigmaKa (), multiplicity, track1.pt ());
1925+ hPID.fill (HIST (" After/hTPCnsigPi_mult_pt" ), track2.tpcNSigmaPi (), multiplicity, track2.pt ());
1926+ hPID.fill (HIST (" After/hTOFnsigKa_mult_pt" ), track1.tofNSigmaKa (), multiplicity, track1.pt ());
1927+ hPID.fill (HIST (" After/hTOFnsigPi_mult_pt" ), track2.tofNSigmaKa (), multiplicity, track2.pt ());
1928+ }
19091929
19101930 if (selectionConfig.isApplyCutsOnMother ) {
19111931 if (mothertrack1.pt () >= selectionConfig.cMaxPtMotherCut ) // excluding candidates in overflow
@@ -2166,4 +2186,4 @@ struct Kstarqa {
21662186WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
21672187{
21682188 return WorkflowSpec{adaptAnalysisTask<Kstarqa>(cfgc)};
2169- }
2189+ }
0 commit comments