@@ -117,6 +117,7 @@ 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+ Configurable<bool > cfgFillAdditionalAxis{" cfgFillAdditionalAxis" , false , " Fill additional axis" };
120121 ConfigurableAxis cfgAxisPhi{" cfgAxisPhi" , {8 , 0 , constants::math::PI}, " Binning of the #phi axis" };
121122
122123 // Event cuts
@@ -343,8 +344,13 @@ struct Chk892Flow {
343344
344345 // Kstar
345346 // Invariant mass nSparse
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});
347+ if (cfgFillAdditionalAxis) {
348+ histos.add (" hInvmass_Kstar" , " Invariant mass of unlike-sign chK(892)" , HistType::kTHnSparseD , {axisType, centAxis, ptAxis, invMassAxisReso, v2Axis, phiAxis});
349+ histos.add (" hInvmass_K0s" , " Invariant mass of unlike-sign K0s" , HistType::kTHnSparseD , {centAxis, ptAxis, invMassAxisK0s, v2Axis, phiAxis});
350+ } else {
351+ histos.add (" hInvmass_Kstar" , " Invariant mass of unlike-sign chK(892)" , HistType::kTHnSparseD , {axisType, centAxis, ptAxis, invMassAxisReso, v2Axis});
352+ histos.add (" hInvmass_K0s" , " Invariant mass of unlike-sign K0s" , HistType::kTHnSparseD , {centAxis, ptAxis, invMassAxisK0s, v2Axis});
353+ }
348354
349355 // Mass QA (quick check)
350356 histos.add (" QA/before/KstarRapidity" , " Rapidity distribution of chK(892)" , HistType::kTH1D , {yAxis});
@@ -419,7 +425,11 @@ struct Chk892Flow {
419425 histos.add (" QAMC/kstarinvmass_noKstar" , " Invariant mass of unlike-sign no chK(892)" , HistType::kTH1D , {invMassAxisReso});
420426 histos.add (" QAMC/kstarv2vsinvmass_noKstar" , " Invariant mass vs v2 of unlike-sign no chK(892)" , HistType::kTH2D , {invMassAxisReso, v2Axis});
421427
422- histos.add (" hInvmass_Kstar_MC" , " Invariant mass of unlike chK(892)" , HistType::kTHnSparseD , {axisType, centAxis, ptAxis, invMassAxisReso, v2Axis});
428+ if (cfgFillAdditionalAxis) {
429+ histos.add (" hInvmass_Kstar_MC" , " Invariant mass of unlike chK(892)" , HistType::kTHnSparseD , {axisType, centAxis, ptAxis, invMassAxisReso, v2Axis, phiAxis});
430+ } else {
431+ histos.add (" hInvmass_Kstar_MC" , " Invariant mass of unlike chK(892)" , HistType::kTHnSparseD , {axisType, centAxis, ptAxis, invMassAxisReso, v2Axis});
432+ }
423433
424434 ccdb->setURL (cfgURL);
425435 ccdbApi.init (" http://alice-ccdb.cern.ch" );
@@ -823,7 +833,11 @@ struct Chk892Flow {
823833 histos.fill (HIST (" QA/after/hInvmassSecondary" ), trkkMass);
824834
825835 histos.fill (HIST (" QA/after/k0sv2vsinvmass" ), lResoSecondary.M (), v2K0s);
826- histos.fill (HIST (" hInvmass_K0s" ), lCentrality, lResoSecondary.Pt (), lResoSecondary.M (), v2K0s, static_cast <float >(nmode) * lPhiMinusPsiK0s);
836+ if (cfgFillAdditionalAxis) {
837+ histos.fill (HIST (" hInvmass_K0s" ), lCentrality, lResoSecondary.Pt (), lResoSecondary.M (), v2K0s, static_cast <float >(nmode) * lPhiMinusPsiK0s);
838+ } else {
839+ histos.fill (HIST (" hInvmass_K0s" ), lCentrality, lResoSecondary.Pt (), lResoSecondary.M (), v2K0s);
840+ }
827841 }
828842 k0sIndicies.push_back (k0sCand.index ());
829843 }
@@ -856,7 +870,11 @@ struct Chk892Flow {
856870 histos.fill (HIST (" QA/after/KstarRapidity" ), lResoKstar.Rapidity ());
857871 histos.fill (HIST (" QA/after/kstarinvmass" ), lResoKstar.M ());
858872 histos.fill (HIST (" QA/after/kstarv2vsinvmass" ), lResoKstar.M (), v2Kstar);
859- histos.fill (HIST (" hInvmass_Kstar" ), typeKstar, lCentrality, lResoKstar.Pt (), lResoKstar.M (), v2Kstar, static_cast <float >(nmode) * lPhiMinusPsiKstar);
873+ if (cfgFillAdditionalAxis) {
874+ histos.fill (HIST (" hInvmass_Kstar" ), typeKstar, lCentrality, lResoKstar.Pt (), lResoKstar.M (), v2Kstar, static_cast <float >(nmode) * lPhiMinusPsiKstar);
875+ } else {
876+ histos.fill (HIST (" hInvmass_Kstar" ), typeKstar, lCentrality, lResoKstar.Pt (), lResoKstar.M (), v2Kstar);
877+ }
860878
861879 if (cfgFillRotBkg) {
862880 for (int i = 0 ; i < cfgNrotBkg; i++) {
@@ -874,7 +892,11 @@ struct Chk892Flow {
874892 auto lPhiMinusPsiKstar = RecoDecay::constrainAngle (lResonanceRot.Phi () - lEPDet, 0.0 , 2 ); // constrain angle to range 0, Pi
875893 auto v2Kstar = std::cos (static_cast <float >(nmode) * lPhiMinusPsiKstar);
876894 typeKstar = bTrack.sign () > 0 ? BinType::kKstarP_Rot : BinType::kKstarN_Rot ;
877- histos.fill (HIST (" hInvmass_Kstar" ), typeKstar, lCentrality, lResonanceRot.Pt (), lResonanceRot.M (), v2Kstar, static_cast <float >(nmode) * lPhiMinusPsiKstar);
895+ if (cfgFillAdditionalAxis) {
896+ histos.fill (HIST (" hInvmass_Kstar" ), typeKstar, lCentrality, lResonanceRot.Pt (), lResonanceRot.M (), v2Kstar, static_cast <float >(nmode) * lPhiMinusPsiKstar);
897+ } else {
898+ histos.fill (HIST (" hInvmass_Kstar" ), typeKstar, lCentrality, lResonanceRot.Pt (), lResonanceRot.M (), v2Kstar);
899+ }
878900 }
879901 }
880902 } // IsMix
0 commit comments