Skip to content

Commit 7461c86

Browse files
authored
FemtoUniverse: Add approx. fracTPCsCls in mixed-event pairs
1 parent 7213b2f commit 7461c86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackSpherHarMultKtExtended.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,12 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
968968

969969
if (kT < firstRealElement || kT > lastElement)
970970
continue;
971+
972+
float pairFractionTPCsCls = static_cast<float>((p1.tpcNClsShared() + p2.tpcNClsShared())) / static_cast<float>((p1.tpcNClsFound() + p2.tpcNClsFound()));
973+
if (pairFractionTPCsCls > twotracksconfigs.confPairFracSharedTPCcls.value) {
974+
continue;
975+
}
976+
971977
double rand;
972978
rand = randgen->Rndm();
973979
auto part1 = p1;

0 commit comments

Comments
 (0)