Skip to content

Commit

Permalink
[PWGCF] FemtoUniverse: Quick fix for kT-bin selection (#9152)
Browse files Browse the repository at this point in the history
  • Loading branch information
prchakra authored Dec 29, 2024
1 parent 343514d commit 5409c92
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions PWGCF/FemtoUniverse/Core/FemtoUniversePairSHCentMultKt.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,19 +192,19 @@ class PairSHCentMultKt
int maxl, int multval, float ktval, bool isiden)
{
int ktbinval = -1;
if ((ktval >= ktBins[0]) && (ktval < ktBins[1])) {
if (ktval >= ktBins[0] && ktval < ktBins[1]) {
ktbinval = 0;
} else if (ktval < ktBins[2]) {
} else if (ktval >= ktBins[1] && ktval < ktBins[2]) {
ktbinval = 1;
} else if (ktval < ktBins[3]) {
} else if (ktval >= ktBins[2] && ktval < ktBins[3]) {
ktbinval = 2;
} else if (ktval < ktBins[4]) {
} else if (ktval >= ktBins[3] && ktval < ktBins[4]) {
ktbinval = 3;
} else if (ktval < ktBins[5]) {
} else if (ktval >= ktBins[4] && ktval < ktBins[5]) {
ktbinval = 4;
} else if (ktval < ktBins[6]) {
} else if (ktval >= ktBins[5] && ktval < ktBins[6]) {
ktbinval = 5;
} else if (ktval < ktBins[7]) {
} else if (ktval >= ktBins[6] && ktval < ktBins[7]) {
ktbinval = 6;
} else {
return;
Expand Down
26 changes: 13 additions & 13 deletions PWGCF/FemtoUniverse/Core/FemtoUniversePairWithCentMultKt.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,21 +174,21 @@ class FemtoUniversePairWithCentMultKt
{
if (kt_value >= ktBins[0] && kt_value < ktBins[1]) {
pairWithCentMultKtRegistry->fill(folder + HIST("kstar_kt_0_1"), kstar_value);
} else if (kt_value < ktBins[2]) {
} else if (kt_value >= ktBins[1] && kt_value < ktBins[2]) {
pairWithCentMultKtRegistry->fill(folder + HIST("kstar_kt_1_2"), kstar_value);
} else if (kt_value < ktBins[3]) {
} else if (kt_value >= ktBins[2] && kt_value < ktBins[3]) {
pairWithCentMultKtRegistry->fill(folder + HIST("kstar_kt_2_3"), kstar_value);
} else if (kt_value < ktBins[4]) {
} else if (kt_value >= ktBins[3] && kt_value < ktBins[4]) {
pairWithCentMultKtRegistry->fill(folder + HIST("kstar_kt_3_4"), kstar_value);
} else if (kt_value < ktBins[5]) {
} else if (kt_value >= ktBins[4] && kt_value < ktBins[5]) {
pairWithCentMultKtRegistry->fill(folder + HIST("kstar_kt_4_5"), kstar_value);
} else if (kt_value < ktBins[6]) {
} else if (kt_value >= ktBins[5] && kt_value < ktBins[6]) {
pairWithCentMultKtRegistry->fill(folder + HIST("kstar_kt_5_6"), kstar_value);
} else if (kt_value < ktBins[7]) {
} else if (kt_value >= ktBins[6] && kt_value < ktBins[7]) {
pairWithCentMultKtRegistry->fill(folder + HIST("kstar_kt_6_7"), kstar_value);
} else if (kt_value < ktBins[8]) {
} else if (kt_value >= ktBins[7] && kt_value < ktBins[8]) {
pairWithCentMultKtRegistry->fill(folder + HIST("kstar_kt_7_8"), kstar_value);
} else if (kt_value < ktBins[9]) {
} else if (kt_value >= ktBins[8] && kt_value < ktBins[9]) {
pairWithCentMultKtRegistry->fill(folder + HIST("kstar_kt_8_9"), kstar_value);
}
}
Expand Down Expand Up @@ -274,15 +274,15 @@ class FemtoUniversePairWithCentMultKt
{
if (kt_value >= ktBins[0] && kt_value < ktBins[1]) {
pairWithCentMultKtRegistry->fill(folder + HIST("q3D_kt_0_1"), qout_value, qside_value, qlong_value);
} else if (kt_value < ktBins[2]) {
} else if (kt_value >= ktBins[1] && kt_value < ktBins[2]) {
pairWithCentMultKtRegistry->fill(folder + HIST("q3D_kt_1_2"), qout_value, qside_value, qlong_value);
} else if (kt_value < ktBins[3]) {
} else if (kt_value >= ktBins[2] && kt_value < ktBins[3]) {
pairWithCentMultKtRegistry->fill(folder + HIST("q3D_kt_2_3"), qout_value, qside_value, qlong_value);
} else if (kt_value < ktBins[4]) {
} else if (kt_value >= ktBins[3] && kt_value < ktBins[4]) {
pairWithCentMultKtRegistry->fill(folder + HIST("q3D_kt_3_4"), qout_value, qside_value, qlong_value);
} else if (kt_value < ktBins[5]) {
} else if (kt_value >= ktBins[4] && kt_value < ktBins[5]) {
pairWithCentMultKtRegistry->fill(folder + HIST("q3D_kt_4_5"), qout_value, qside_value, qlong_value);
} else if (kt_value < ktBins[6]) {
} else if (kt_value >= ktBins[5] && kt_value < ktBins[6]) {
pairWithCentMultKtRegistry->fill(folder + HIST("q3D_kt_5_6"), qout_value, qside_value, qlong_value);
}
}
Expand Down

0 comments on commit 5409c92

Please sign in to comment.