Skip to content

Commit bcccf1d

Browse files
authored
[PWGCF] FemtoUniverse: Add min and max configs for FracSharedTPCcls (#15622)
1 parent a5f8d6b commit bcccf1d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackSpherHarMultKtExtended.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
104104
Configurable<float> confTrkTPCfracsClsMax{"confTrkTPCfracsClsMax", 1.0, "Max of fraction of TPC shared cluster "};
105105
Configurable<int> confTrkTPCnClsMin{"confTrkTPCnClsMin", 80, "Min number of TPC clusters"};
106106
Configurable<int> confTrkTPCsClsMax{"confTrkTPCsClsMax", 160, "Max number of TPC shared clusters"};
107-
Configurable<float> confPairFracSharedTPCcls{"confPairFracSharedTPCcls", 1.0, "Max. fraction of TPC shared clusters between two closed tracks"};
107+
Configurable<float> confPairFracSharedTPCclsMin{"confPairFracSharedTPCclsMin", 0.0, "Min. fraction of TPC shared clusters between two closed tracks"};
108+
Configurable<float> confPairFracSharedTPCclsMax{"confPairFracSharedTPCclsMax", 1.0, "Miax. fraction of TPC shared clusters between two closed tracks"};
108109
Configurable<float> confCPRChosenRadii{"confCPRChosenRadii", 0.80, "Delta Eta cut for Close Pair Rejection"};
109110
Configurable<bool> confUseCCImCut{"confUseCCImCut", false, "Fill SH within specific quadrants of qout-qside"};
110111
Configurable<float> confMinqTcut{"confMinqTcut", 0.005, "Min. qT cut on filling SH"};
@@ -560,7 +561,7 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
560561
if (kT < firstRealElement || kT > lastElement)
561562
continue;
562563
float pairFractionTPCsCls = static_cast<float>((p1.tpcNClsShared() + p2.tpcNClsShared())) / static_cast<float>((p1.tpcNClsFound() + p2.tpcNClsFound()));
563-
if (pairFractionTPCsCls > twotracksconfigs.confPairFracSharedTPCcls.value) {
564+
if (pairFractionTPCsCls < twotracksconfigs.confPairFracSharedTPCclsMin.value || pairFractionTPCsCls >= twotracksconfigs.confPairFracSharedTPCclsMax.value) {
564565
continue;
565566
}
566567

@@ -607,7 +608,7 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
607608
continue;
608609

609610
float pairFractionTPCsCls = static_cast<float>((p1.tpcNClsShared() + p2.tpcNClsShared())) / static_cast<float>((p1.tpcNClsFound() + p2.tpcNClsFound()));
610-
if (pairFractionTPCsCls > twotracksconfigs.confPairFracSharedTPCcls.value) {
611+
if (pairFractionTPCsCls < twotracksconfigs.confPairFracSharedTPCclsMin.value || pairFractionTPCsCls >= twotracksconfigs.confPairFracSharedTPCclsMax.value) {
611612
continue;
612613
}
613614

@@ -971,7 +972,7 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
971972
continue;
972973

973974
float pairFractionTPCsCls = static_cast<float>((p1.tpcNClsShared() + p2.tpcNClsShared())) / static_cast<float>((p1.tpcNClsFound() + p2.tpcNClsFound()));
974-
if (pairFractionTPCsCls > twotracksconfigs.confPairFracSharedTPCcls.value) {
975+
if (pairFractionTPCsCls < twotracksconfigs.confPairFracSharedTPCclsMin.value || pairFractionTPCsCls >= twotracksconfigs.confPairFracSharedTPCclsMax.value) {
975976
continue;
976977
}
977978

0 commit comments

Comments
 (0)