File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments