Skip to content

Commit ed8c647

Browse files
authored
[Common] Always initialize listCalib as it is serialized unconditionally (#10689)
1 parent 6c441f4 commit ed8c647

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Common/TableProducer/centralityTable.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ struct CentralityTable {
238238
ccdb->setLocalObjectValidityChecking();
239239
ccdb->setFatalWhenNull(false);
240240
mRunNumber = 0;
241+
listCalib.setObject(new TList);
241242
if (!produceHistograms.value) {
242243
return;
243244
}
@@ -259,7 +260,6 @@ struct CentralityTable {
259260
histos.addClone("FT0A/", "sel8FT0A/");
260261

261262
histos.print();
262-
listCalib.setObject(new TList);
263263
}
264264

265265
using BCsWithTimestampsAndRun2Infos = soa::Join<aod::BCs, aod::Run2BCInfos, aod::Timestamps>;

Common/TableProducer/multiplicityTable.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,14 @@ struct MultiplicityTable {
227227
ccdb->setLocalObjectValidityChecking();
228228
ccdb->setFatalWhenNull(false); // don't fatal, please - exception is caught explicitly (as it should)
229229

230+
listCalib.setObject(new TList);
230231
if (!produceHistograms.value) {
231232
return;
232233
}
233234
histos.add("FT0A", "FT0A vs FT0A eq.", HistType::kTH2D, {{1000, 0, 1000, "FT0A multiplicity"}, {1000, 0, 1000, "FT0A multiplicity eq."}});
234235
histos.add("FT0C", "FT0C vs FT0C eq.", HistType::kTH2D, {{1000, 0, 1000, "FT0C multiplicity"}, {1000, 0, 1000, "FT0C multiplicity eq."}});
235236
histos.add("FT0CMultvsPV", "FT0C vs mult.", HistType::kTH2D, {{1000, 0, 1000, "FT0C mult."}, {100, 0, 100, "PV mult."}});
236237
histos.add("FT0AMultvsPV", "FT0A vs mult.", HistType::kTH2D, {{1000, 0, 1000, "FT0A mult."}, {100, 0, 100, "PV mult."}});
237-
238-
listCalib.setObject(new TList);
239238
}
240239

241240
/// Dummy process function for BCs, needed in case both Run2 and Run3 process functions are disabled

0 commit comments

Comments
 (0)