Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions PWGLF/Tasks/GlobalEventProperties/uccZdc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ struct UccZdc {
ConfigurableAxis binsCent{"binsCent", {VARIABLE_WIDTH, 0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100.}, "T0C binning"};

// Configurables Event Selection
Configurable<bool> applyWeights{"applyWeights", false, "apply particle weights?"};
Configurable<bool> isNoCollInTimeRangeStrict{"isNoCollInTimeRangeStrict", true, "isNoCollInTimeRangeStrict?"};
Configurable<bool> isNoCollInTimeRangeStandard{"isNoCollInTimeRangeStandard", false, "isNoCollInTimeRangeStandard?"};
Configurable<bool> isNoCollInRofStrict{"isNoCollInRofStrict", true, "isNoCollInRofStrict?"};
Expand Down Expand Up @@ -676,7 +677,11 @@ struct UccZdc {
double weight{efficiency->GetBinContent(efficiency->FindBin(pt))};
if (weight > 0.) {
pTs.emplace_back(pt);
wIs.emplace_back(weight);
if (applyWeights) {
wIs.emplace_back(weight);
} else {
wIs.emplace_back(1.);
}
}
}
}
Expand Down Expand Up @@ -787,7 +792,11 @@ struct UccZdc {
double weight{efficiency->GetBinContent(efficiency->FindBin(pt))};
if (weight > 0.) {
pTs.emplace_back(pt);
wIs.emplace_back(weight);
if (applyWeights) {
wIs.emplace_back(weight);
} else {
wIs.emplace_back(1.);
}
}
}
}
Expand Down
Loading