Skip to content

Commit 6eec3b1

Browse files
committed
bug fixed
1 parent da7540d commit 6eec3b1

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

PWGCF/MultiparticleCorrelations/Core/MuPa-Enums.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ enum eDiffPhiWeights {
121121
eDiffPhiWeights_N
122122
};
123123

124-
enum eDiffPtWeights {
124+
enum eDiffPtWeights { // if i add new entry here, or in eDiffPhiWeights and eDiffEtaWeights, I need to update also GetParticleWeights()
125125
wPtPtAxis = 0,
126126
wPtEtaAxis,
127127
wPtChargeAxis,

PWGCF/MultiparticleCorrelations/Core/MuPa-MemberFunctions.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16110,7 +16110,10 @@ void GetParticleWeights()
1611016110
TString whichCategory = "pt"; // differential pt weights
1611116111

1611216112
TString whichDimensions = ""; // differential pt weights as a function of particular dimension
16113-
// Remark: the naming convention hardwired here for axes dimensions have to be in sync with what I have in the macro to make these weights
16113+
// Remark: the naming convention hardwired here for axes dimensions have to be in sync with what I have in the macro to make these weights.
16114+
if (pw.fUseDiffPtWeights[wPtEtaAxis]) {
16115+
whichDimensions += "_eta";
16116+
}
1611416117
if (pw.fUseDiffPtWeights[wPtChargeAxis]) {
1611516118
whichDimensions += "_charge";
1611616119
}
@@ -16140,8 +16143,10 @@ void GetParticleWeights()
1614016143
TString whichCategory = "eta"; // differential eta weights
1614116144

1614216145
TString whichDimensions = ""; // differential eta weights as a function of particular dimension
16143-
// Remark: the naming convention hardwired here for axes dimensions have to be in sync with what I have in the macro to make these weights
16144-
16146+
// Remark: the naming convention hardwired here for axes dimensions have to be in sync with what I have in the macro to make these weights.
16147+
if (pw.fUseDiffEtaWeights[wEtaPtAxis]) {
16148+
whichDimensions += "_pt";
16149+
}
1614516150
if (pw.fUseDiffEtaWeights[wEtaChargeAxis]) {
1614616151
whichDimensions += "_charge";
1614716152
}

0 commit comments

Comments
 (0)