Skip to content

Commit 0bf77a1

Browse files
committed
Change centWeight sign
1 parent 441800c commit 0bf77a1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

PWGCF/Flow/Tasks/flowSP.cxx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ struct FlowSP {
346346
AxisSpec axisdEdx = {300, 0, 300, "dEdx for PID"};
347347
AxisSpec axisBeta = {150, 0, 1.5, "Beta for PID"};
348348
AxisSpec axisCharge = {3, 0, 3, "Charge: 0 = inclusive, 1 = positive, 2 = negative"};
349-
AxisSpec axisPx = {1000, -0.05, 0.05, "p_{x} (GeV/c)"};
349+
AxisSpec axisPx = {100, -0.05, 0.05, "p_{x} (GeV/c)"};
350350

351351
std::vector<double> ptbinning = {0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2, 2.2, 2.4, 2.6, 2.8, 3, 3.5, 4, 5, 6, 8, 10};
352352
AxisSpec axisPt = {ptbinning, "#it{p}_{T} GeV/#it{c}"};
@@ -1379,11 +1379,9 @@ struct FlowSP {
13791379
}
13801380
double centW = cfg.hCentrality->GetBinContent(cfg.hCentrality->FindBin(spm.centrality));
13811381
if (centW < 0) {
1382-
spm.centWeight = 1. / centW;
1383-
} else {
1382+
spm.centWeight = 0.;
13841383
LOGF(fatal, "Centrality weight cannot be negative .. setting to 0. for (%.2f)", spm.centrality);
1385-
spm.centWeight = 0.;
1386-
}
1384+
}
13871385
}
13881386

13891387
fillEventQA<kAfter>(collision, tracks);

0 commit comments

Comments
 (0)