Skip to content

Commit 8b275f0

Browse files
authored
[PWGCF] FemtoUniverse: Add approx. fractionTPCsCls in closed-pairs (#15556)
1 parent d292dec commit 8b275f0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackSpherHarMultKtExtended.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
9696
Configurable<std::vector<float>> confCPRdeltaEtaCutMaxVector{"confCPRdeltaEtaCutMaxVector", std::vector<float>{0.0, 0.0, 0.0, 0.0}, "Delta Eta max cut for Close Pair Rejection"};
9797
Configurable<std::vector<float>> confCPRdeltaEtaCutMinVector{"confCPRdeltaEtaCutMinVector", std::vector<float>{0.0, 0.0, 0.0, 0.0}, "Delta Eta min cut for Close Pair Rejection"};
9898
Configurable<bool> confIsCPRkT{"confIsCPRkT", true, "kT dependent deltaEta-deltaPhi cut for Close Pair Rejection"};
99+
Configurable<float> confPairFracSharedTPCcls{"confPairFracSharedTPCcls", 1.0, "Max. fraction of TPC shared clusters between two closed tracks"};
99100
Configurable<float> confCPRChosenRadii{"confCPRChosenRadii", 0.80, "Delta Eta cut for Close Pair Rejection"};
100101
Configurable<bool> confUseCCImCut{"confUseCCImCut", false, "Fill SH within specific quadrants of qout-qside"};
101102
Configurable<float> confMinqTcut{"confMinqTcut", 0.005, "Min. qT cut on filling SH"};
@@ -542,6 +543,10 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
542543

543544
if (kT < firstRealElement || kT > lastElement)
544545
continue;
546+
float pairFractionTPCsCls = static_cast<float>((p1.tpcNClsShared() + p2.tpcNClsShared())) / static_cast<float>((p1.tpcNClsFound() + p2.tpcNClsFound()));
547+
if (pairFractionTPCsCls > twotracksconfigs.confPairFracSharedTPCcls.value) {
548+
continue;
549+
}
545550

546551
if (twotracksconfigs.confIsCPR.value) {
547552
if (twotracksconfigs.confCPRFracMax.value) {
@@ -585,6 +590,11 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
585590
if (kT < firstRealElement || kT > lastElement)
586591
continue;
587592

593+
float pairFractionTPCsCls = static_cast<float>((p1.tpcNClsShared() + p2.tpcNClsShared())) / static_cast<float>((p1.tpcNClsFound() + p2.tpcNClsFound()));
594+
if (pairFractionTPCsCls > twotracksconfigs.confPairFracSharedTPCcls.value) {
595+
continue;
596+
}
597+
588598
double rand;
589599
rand = randgen->Rndm();
590600

0 commit comments

Comments
 (0)