Skip to content

Commit ae88d40

Browse files
authored
Optionally disable all downscalings (#6890)
1 parent 55a8bcd commit ae88d40

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

EventFiltering/cefpTask.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ struct centralEventFilterTask {
213213
HistogramRegistry scalers{"scalers", {}, OutputObjHandlingPolicy::AnalysisObject, true, true};
214214
Produces<aod::CefpDecisions> tags;
215215

216+
Configurable<bool> cfgDisableDownscalings{"cfgDisableDownscalings", false, "Disable downscalings"};
217+
216218
FILTER_CONFIGURABLE(F1ProtonFilters);
217219
FILTER_CONFIGURABLE(NucleiFilters);
218220
FILTER_CONFIGURABLE(DiffractionFilters);
@@ -261,6 +263,9 @@ struct centralEventFilterTask {
261263
col.second = filterOpt.get(col.first.data(), 0u);
262264
}
263265
}
266+
if (cfgDisableDownscalings.value) {
267+
LOG(info) << "Downscalings are disabled for all channels.";
268+
}
264269
}
265270

266271
void run(ProcessingContext& pc)
@@ -327,7 +332,7 @@ struct centralEventFilterTask {
327332
uint64_t decisionBin{(bin - 2) / 64};
328333
uint64_t triggerBit{BIT((bin - 2) % 64)};
329334
auto column{tablePtr->GetColumnByName(colName.first)};
330-
double downscaling{colName.second};
335+
double downscaling{cfgDisableDownscalings.value ? 1. : colName.second};
331336
if (column) {
332337
int entry = 0;
333338
for (int64_t iC{0}; iC < column->num_chunks(); ++iC) {

0 commit comments

Comments
 (0)