Skip to content

Commit

Permalink
Optionally disable all downscalings (#6890)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpuccio authored Jul 17, 2024
1 parent 55a8bcd commit ae88d40
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion EventFiltering/cefpTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ struct centralEventFilterTask {
HistogramRegistry scalers{"scalers", {}, OutputObjHandlingPolicy::AnalysisObject, true, true};
Produces<aod::CefpDecisions> tags;

Configurable<bool> cfgDisableDownscalings{"cfgDisableDownscalings", false, "Disable downscalings"};

FILTER_CONFIGURABLE(F1ProtonFilters);
FILTER_CONFIGURABLE(NucleiFilters);
FILTER_CONFIGURABLE(DiffractionFilters);
Expand Down Expand Up @@ -261,6 +263,9 @@ struct centralEventFilterTask {
col.second = filterOpt.get(col.first.data(), 0u);
}
}
if (cfgDisableDownscalings.value) {
LOG(info) << "Downscalings are disabled for all channels.";
}
}

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

0 comments on commit ae88d40

Please sign in to comment.