Skip to content

Commit b968bd4

Browse files
[Common] Add missing if-condition in centralityStudy (#17677)
1 parent 24eb55b commit b968bd4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Common/Tasks/centralityStudy.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct CentralityStudy {
147147
} evsel;
148148

149149
// _______________________________________
150-
// BC Selection
150+
// BC Selections
151151
struct : ConfigurableGroup {
152152
std::string prefix = "bcsel";
153153
Configurable<bool> rejectZNAC{"rejectZNAC", false, "reject if !(kIsBBZNA && kIsBBZNC)"};
@@ -934,7 +934,9 @@ struct CentralityStudy {
934934
return;
935935
}
936936
histos.fill(HIST("hCollisionSelection"), 17 /* is INEL > 0 */);
937-
getHist<TH1>(histPath + "hCollisionSelection")->Fill(17);
937+
if (studies.doRunByRunHistograms) {
938+
getHist<TH1>(histPath + "hCollisionSelection")->Fill(17);
939+
}
938940

939941
if (evsel.applyBcSel) {
940942
if constexpr (requires { collision.has_multBC(); }) {

0 commit comments

Comments
 (0)