@@ -514,8 +514,12 @@ void ClusterTask::analyseTimeframe(const gsl::span<const o2::emcal::Cell>& cells
514514
515515 } // cls loop
516516 if (isPhysicsTrigger && mTaskParameters .mFillInvMassMeson ) {
517- buildAndAnalysePiOs (selclustersEMCAL, true );
518- buildAndAnalysePiOs (selclustersDCAL, false );
517+ // Apply centrality selection (paticularly for heavy-ion)
518+ // Selection based on cluster multiplicity
519+ if (nClustersEventSelected >= mTaskParameters .mMesonMinClusterMultiplicity && nClustersEventSelected <= mTaskParameters .mMesonMaxClusterMultiplicity ) {
520+ buildAndAnalysePiOs (selclustersEMCAL, true );
521+ buildAndAnalysePiOs (selclustersDCAL, false );
522+ }
519523 }
520524 if (isPhysicsTrigger) {
521525 mHistNclustPerEvtSelected ->Fill (nClustersEventSelected);
@@ -867,6 +871,12 @@ void ClusterTask::configureTaskParameters()
867871 if (hasConfigValue (" MultiplicityRange" )) {
868872 mTaskParameters .mMultiplicityRange = std::stoi (getConfigValueLower (" MultiplicityRange" ));
869873 }
874+ if (hasConfigValue (" mesonMinClusterMultiplicity" )) {
875+ mTaskParameters .mMesonMinClusterMultiplicity = std::stoi (getConfigValueLower (" mesonMinClusterMultiplicity" ));
876+ }
877+ if (hasConfigValue (" mesonMaxClusterMultiplicity" )) {
878+ mTaskParameters .mMesonMaxClusterMultiplicity = std::stoi (getConfigValueLower (" mesonMaxClusterMultiplicity" ));
879+ }
870880
871881 ILOG (Info, Support) << mTaskParameters ;
872882}
@@ -1016,7 +1026,9 @@ void ClusterTask::TaskParams::print(std::ostream& stream) const
10161026 << " Calibrate cells before clusterization: " << (mCalibrate ? " yes" : " no" ) << " \n "
10171027 << " Filling cell-level control histograms: " << (mFillControlHistograms ? " yes" : " no" ) << " \n "
10181028 << " Invariant mass histograms for Meson candidates: " << (mFillInvMassMeson ? " enabled" : " disabled" ) << " \n "
1019- << " Max. range of multiplicity histograms: " << mMultiplicityRange << " \n " ;
1029+ << " Max. range of multiplicity histograms: " << mMultiplicityRange << " \n "
1030+ << " Min. cluster multiplicity for Meson candidates: " << mMesonMinClusterMultiplicity << " \n "
1031+ << " Max. cluster mutliplicity for Meson candidates: " << mMesonMaxClusterMultiplicity << " \n " ;
10201032}
10211033
10221034std::ostream& operator <<(std::ostream& stream, const ClusterTask::ClusterizerParams& params)
0 commit comments