@@ -117,8 +117,9 @@ struct Chk892Flow {
117117 Configurable<int > cNbinsDiv{" cNbinsDiv" , 1 , " Integer to divide the number of bins" };
118118 Configurable<int > cNbinsDivQA{" cNbinsDivQA" , 1 , " Integer to divide the number of bins for QA" };
119119 ConfigurableAxis cfgAxisV2{" cfgAxisV2" , {200 , -2 , 2 }, " Binning of the v2 axis" };
120+ ConfigurableAxis cfgAxisPhi{" cfgAxisPhi" , {8 , 0 , constants::math::PI}, " Binning of the #phi axis" };
120121
121- // / Event cuts
122+ // Event cuts
122123 o2::analysis::CollisonCuts colCuts;
123124 Configurable<float > cfgEvtZvtx{" cfgEvtZvtx" , 10 .f , " Evt sel: Max. z-Vertex (cm)" };
124125 Configurable<int > cfgEvtOccupancyInTimeRangeMax{" cfgEvtOccupancyInTimeRangeMax" , -1 , " Evt sel: maximum track occupancy" };
@@ -245,6 +246,7 @@ struct Chk892Flow {
245246 AxisSpec ptAxis = {cfgBinsPt, " #it{p}_{T} (GeV/#it{c})" };
246247 AxisSpec ptAxisQA = {cfgBinsPtQA, " #it{p}_{T} (GeV/#it{c})" };
247248 AxisSpec v2Axis = {cfgAxisV2, " #v_{2}" };
249+ AxisSpec phiAxis = {cfgAxisPhi, " 2(#phi-#Psi_{2})" };
248250 AxisSpec radiusAxis = {50 , 0 , 5 , " Radius (cm)" };
249251 AxisSpec cpaAxis = {30 , 0.97 , 1.0 , " CPA" };
250252 AxisSpec tauAxis = {250 , 0 , 25 , " Lifetime (cm)" };
@@ -341,8 +343,8 @@ struct Chk892Flow {
341343
342344 // Kstar
343345 // Invariant mass nSparse
344- histos.add (" hInvmass_Kstar" , " Invariant mass of unlike-sign chK(892)" , HistType::kTHnSparseD , {axisType, centAxis, ptAxis, invMassAxisReso, v2Axis});
345- histos.add (" hInvmass_K0s" , " Invariant mass of unlike-sign K0s" , HistType::kTHnSparseD , {centAxis, ptAxis, invMassAxisK0s, v2Axis});
346+ histos.add (" hInvmass_Kstar" , " Invariant mass of unlike-sign chK(892)" , HistType::kTHnSparseD , {axisType, centAxis, ptAxis, invMassAxisReso, v2Axis, phiAxis });
347+ histos.add (" hInvmass_K0s" , " Invariant mass of unlike-sign K0s" , HistType::kTHnSparseD , {centAxis, ptAxis, invMassAxisK0s, v2Axis, phiAxis });
346348
347349 // Mass QA (quick check)
348350 histos.add (" QA/before/KstarRapidity" , " Rapidity distribution of chK(892)" , HistType::kTH1D , {yAxis});
@@ -821,7 +823,7 @@ struct Chk892Flow {
821823 histos.fill (HIST (" QA/after/hInvmassSecondary" ), trkkMass);
822824
823825 histos.fill (HIST (" QA/after/k0sv2vsinvmass" ), lResoSecondary.M (), v2K0s);
824- histos.fill (HIST (" hInvmass_K0s" ), lCentrality, lResoSecondary.Pt (), lResoSecondary.M (), v2K0s);
826+ histos.fill (HIST (" hInvmass_K0s" ), lCentrality, lResoSecondary.Pt (), lResoSecondary.M (), v2K0s, static_cast < float >(nmode) * lPhiMinusPsiK0s );
825827 }
826828 k0sIndicies.push_back (k0sCand.index ());
827829 }
@@ -854,7 +856,7 @@ struct Chk892Flow {
854856 histos.fill (HIST (" QA/after/KstarRapidity" ), lResoKstar.Rapidity ());
855857 histos.fill (HIST (" QA/after/kstarinvmass" ), lResoKstar.M ());
856858 histos.fill (HIST (" QA/after/kstarv2vsinvmass" ), lResoKstar.M (), v2Kstar);
857- histos.fill (HIST (" hInvmass_Kstar" ), typeKstar, lCentrality, lResoKstar.Pt (), lResoKstar.M (), v2Kstar);
859+ histos.fill (HIST (" hInvmass_Kstar" ), typeKstar, lCentrality, lResoKstar.Pt (), lResoKstar.M (), v2Kstar, static_cast < float >(nmode) * lPhiMinusPsiKstar );
858860
859861 if (cfgFillRotBkg) {
860862 for (int i = 0 ; i < cfgNrotBkg; i++) {
@@ -872,7 +874,7 @@ struct Chk892Flow {
872874 auto lPhiMinusPsiKstar = RecoDecay::constrainAngle (lResonanceRot.Phi () - lEPDet, 0.0 , 2 ); // constrain angle to range 0, Pi
873875 auto v2Kstar = std::cos (static_cast <float >(nmode) * lPhiMinusPsiKstar);
874876 typeKstar = bTrack.sign () > 0 ? BinType::kKstarP_Rot : BinType::kKstarN_Rot ;
875- histos.fill (HIST (" hInvmass_Kstar" ), typeKstar, lCentrality, lResonanceRot.Pt (), lResonanceRot.M (), v2Kstar);
877+ histos.fill (HIST (" hInvmass_Kstar" ), typeKstar, lCentrality, lResonanceRot.Pt (), lResonanceRot.M (), v2Kstar, static_cast < float >(nmode) * lPhiMinusPsiKstar );
876878 }
877879 }
878880 } // IsMix
0 commit comments