Skip to content

Commit 01be94d

Browse files
authored
[PWGCF] FemtoUniverse: Fix bug in flag switch for ITS and TPC CPR (#15597)
1 parent 7a7b55e commit 01be94d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackSpherHarMultKtExtended.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
8686
Configurable<int> confPhiBins{"confPhiBins", 29, "Number of phi bins in deta dphi"};
8787
Configurable<int> confEtaBins{"confEtaBins", 29, "Number of eta bins in deta dphi"};
8888
Configurable<bool> confIsCPR{"confIsCPR", true, "Close Pair Rejection"};
89+
Configurable<bool> confIsCPRatITS{"confIsCPRatITS", false, "Close Pair check at ITS"};
8990
Configurable<bool> confCPRPlotPerRadii{"confCPRPlotPerRadii", false, "Plot CPR per radii"};
9091
Configurable<float> confCPRdeltaPhiCutMax{"confCPRdeltaPhiCutMax", 0.0, "Delta Phi max cut for Close Pair Rejection"};
9192
Configurable<float> confCPRdeltaPhiCutMin{"confCPRdeltaPhiCutMin", 0., "Delta Phi min cut for Close Pair Rejection"};
@@ -564,7 +565,7 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
564565
}
565566

566567
if (twotracksconfigs.confIsCPR.value) {
567-
if (twotracksconfigs.confCPRFracMax.value) {
568+
if (twotracksconfigs.confIsCPRatITS && twotracksconfigs.confCPRFracMax.value) {
568569
if (pairCloseRejection.isClosePairAtITS(p1, p2, magFieldTesla, femto_universe_container::EventType::same)) {
569570
continue;
570571
}
@@ -622,7 +623,7 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
622623
}
623624

624625
if (twotracksconfigs.confIsCPR.value) {
625-
if (twotracksconfigs.confCPRFracMax.value) {
626+
if (twotracksconfigs.confIsCPRatITS && twotracksconfigs.confCPRFracMax.value) {
626627
if (pairCloseRejection.isClosePairAtITS(part1, part2, magFieldTesla, femto_universe_container::EventType::same)) {
627628
continue;
628629
}
@@ -985,7 +986,7 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
985986
}
986987

987988
if (twotracksconfigs.confIsCPR.value) {
988-
if (twotracksconfigs.confCPRFracMax.value) {
989+
if (twotracksconfigs.confIsCPRatITS && twotracksconfigs.confCPRFracMax.value) {
989990
if (pairCloseRejection.isClosePairAtITS(part1, part2, magFieldTesla, femto_universe_container::EventType::mixed)) {
990991
continue;
991992
}

0 commit comments

Comments
 (0)