@@ -219,6 +219,7 @@ struct ConfPairBinning : o2::framework::ConfigurableGroup {
219219 o2::framework::Configurable<int > shLMax{" shLMax" , 2 , " Maximum l for SH decomposition (0..5). FemtoUniverse hard-codes 1." };
220220 o2::framework::Configurable<int > shFrame{" shFrame" , 1 , " SH reference frame/variable: 0=LCMS non-identical (k*), 1=LCMS identical (qinv, FemtoUniverse default), 2=PRF (q_PRF, matches FemtoUniverse isIdenPRF=true)" };
221221 o2::framework::ConfigurableAxis shKstar{" shKstar" , {{60 , 0 .0f , 0 .3f }}, " k*/qinv binning for SH histograms" };
222+ o2::framework::Configurable<bool > shUseCent{" shUseCent" , false , " SH: bin by centrality instead of multiplicity" };
222223 o2::framework::ConfigurableAxis shCentBins{" shCentBins" , {o2::framework::VARIABLE_WIDTH , 0 .0f , 200 .0f }, " SH: multiplicity/centrality bin edges (like FemtoUniverse confMultKstarBins)" };
223224 o2::framework::ConfigurableAxis shKtBins{" shKtBins" , {o2::framework::VARIABLE_WIDTH , 0 .1f , 0 .2f , 0 .3f , 0 .4f }, " SH: kT bin edges (like FemtoUniverse confKtKstarBins)" };
224225 o2::framework::Configurable<bool > shPlot1D{" shPlot1D" , false , " (SH) Also fill 1D qinv/k* numerator/denominator (h1D) per (mult,kT) bin" };
@@ -542,6 +543,7 @@ class PairHistManager
542543 mPlotBertschPratt = ConfPairBinning.plotBertschPratt .value ;
543544
544545 mPlotSH = ConfPairBinning.plotSH .value ;
546+ mShUseCent = ConfPairBinning.shUseCent .value ;
545547 mShLMax = ConfPairBinning.shLMax .value ;
546548 mShFrame = ConfPairBinning.shFrame .value ;
547549 mShPlot1D = ConfPairBinning.shPlot1D .value ;
@@ -1236,7 +1238,7 @@ class PairHistManager
12361238 mHistogramRegistry ->fill (HIST (prefix) + HIST (AnalysisDir) + HIST (getHistName (kQoutQsideQlong , HistTable)), mQout , mQside , mQlong );
12371239 }
12381240 if (mPlotSH ) {
1239- const int iCent = findShBin (mMult , mShCentEdges );
1241+ const int iCent = findShBin (mShUseCent ? mCent : mMult , mShCentEdges );
12401242 const int iKt = findShBin (mKt , mShKtEdges );
12411243 if (iCent >= 0 && iKt >= 0 ) {
12421244 mYlm .doYlmUpToL (mShLMax , mShOut , mShSide , mShLong , mShYlmBuffer .data ());
@@ -1611,6 +1613,7 @@ class PairHistManager
16111613
16121614 // Spherical harmonics
16131615 bool mPlotSH = false ;
1616+ bool mShUseCent = false ;
16141617 int mShLMax = 1 ;
16151618 int mShFrame = 0 ;
16161619 static constexpr int ShFrameLcmsNonIdentical = 0 ;
0 commit comments