File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
PWGCF/MultiparticleCorrelations/Core Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments