Skip to content

Commit eebfe3d

Browse files
author
Lucia Anna Tarasovicova
committed
adding the simple correction for V0 and Cascades as well
1 parent f8b9552 commit eebfe3d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,13 @@ struct HStrangeCorrelation {
581581
hEfficiencyV0[0] = hEfficiencyK0Short;
582582
hEfficiencyV0[1] = hEfficiencyLambda;
583583
hEfficiencyV0[2] = hEfficiencyAntiLambda;
584+
585+
float etaWeight = 1;
586+
if (systCuts.doOnTheFlyFlattening) {
587+
float preWeight = 1 - std::abs(deltaeta) / 1.6;
588+
etaWeight = preWeight != 0 ? 1.0f / preWeight : 0.0f;
589+
}
590+
584591
static_for<0, 2>([&](auto i) {
585592
constexpr int Index = i.value;
586593
float efficiency = 1.0f;
@@ -703,6 +710,12 @@ struct HStrangeCorrelation {
703710
hEfficiencyCascade[2] = hEfficiencyOmegaMinus;
704711
hEfficiencyCascade[3] = hEfficiencyOmegaPlus;
705712

713+
float etaWeight = 1;
714+
if (systCuts.doOnTheFlyFlattening) {
715+
float preWeight = 1 - std::abs(deltaeta) / 1.6;
716+
etaWeight = preWeight != 0 ? 1.0f / preWeight : 0.0f;
717+
}
718+
706719
static_for<0, 3>([&](auto i) {
707720
constexpr int Index = i.value;
708721
float efficiency = 1.0f;

0 commit comments

Comments
 (0)