diff --git a/Common/Tasks/centralityStudy.cxx b/Common/Tasks/centralityStudy.cxx index 92e14780c44..a8f9f7f739d 100644 --- a/Common/Tasks/centralityStudy.cxx +++ b/Common/Tasks/centralityStudy.cxx @@ -147,7 +147,7 @@ struct CentralityStudy { } evsel; // _______________________________________ - // BC Selection + // BC Selections struct : ConfigurableGroup { std::string prefix = "bcsel"; Configurable rejectZNAC{"rejectZNAC", false, "reject if !(kIsBBZNA && kIsBBZNC)"}; @@ -934,7 +934,9 @@ struct CentralityStudy { return; } histos.fill(HIST("hCollisionSelection"), 17 /* is INEL > 0 */); - getHist(histPath + "hCollisionSelection")->Fill(17); + if (studies.doRunByRunHistograms) { + getHist(histPath + "hCollisionSelection")->Fill(17); + } if (evsel.applyBcSel) { if constexpr (requires { collision.has_multBC(); }) {