Skip to content

Commit 97e35f9

Browse files
author
Chiara De Martin
committed
add upper selection on daughter track eta
1 parent 2929786 commit 97e35f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

PWGLF/TableProducer/Strangeness/cascadeflow.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ struct cascadeFlow {
264264
Configurable<float> v0radiusMax{"v0radiusMax", 1E5, "maximum V0 radius (cm)"};
265265
Configurable<float> rapidityLambda{"rapidityLambda", 0.5, "rapidityLambda"};
266266
Configurable<float> etaLambda{"etaLambda", 0.8, "etaLambda"};
267+
Configurable<float> dauTrackV0Eta{"dauTrackV0Eta", 0.8, "dauTrackV0Eta"};
267268
Configurable<bool> isPositiveEta{"isPositiveEta", 0, "isPositiveEta"};
268269
Configurable<bool> isNegativeEta{"isNegativeEta", 0, "isNegativeEta"};
269270
} V0Configs;
@@ -484,6 +485,12 @@ struct cascadeFlow {
484485
return false;
485486
if (std::abs(v0.eta()) > V0Configs.etaLambda)
486487
return false;
488+
Float_t posDauEta = RecoDecay::eta(std::array{v0.pxpos(), v0.pypos(), v0.pzpos()});
489+
Float_t negDauEta = RecoDecay::eta(std::array{v0.pxneg(), v0.pyneg(), v0.pzneg()});
490+
if (std::abs(posDauEta) > V0Configs.dauTrackV0Eta)
491+
return false;
492+
if (std::abs(negDauEta) > V0Configs.dauTrackV0Eta)
493+
return false;
487494
if (V0Configs.isPositiveEta) { // v0 and daughter tracks required to have positive eta
488495
if (v0.pzpos() <= 0)
489496
return false;

0 commit comments

Comments
 (0)