Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PWGCF/Flow/Tasks/flowSP.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -466,13 +466,13 @@
double fitParamLowPV4 = -0.00974862;
double fitParamLowPV5 = 2.71433e-05;

if (cfgnSigmaMultCuts == 2) {

Check warning on line 469 in PWGCF/Flow/Tasks/flowSP.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
fitParamLowPV1 = 2665.68;
fitParamLowPV2 = -93.3784;
fitParamLowPV3 = 1.27137;
fitParamLowPV4 = -0.00818936;
fitParamLowPV5 = 2.115e-05;
} else if (cfgnSigmaMultCuts == 3) {

Check warning on line 475 in PWGCF/Flow/Tasks/flowSP.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
fitParamLowPV1 = 2389.99;
fitParamLowPV2 = -83.8483;
fitParamLowPV3 = 1.11062;
Expand All @@ -491,13 +491,13 @@
double fitParamHighPV4 = -0.0145343;
double fitParamHighPV5 = 4.80688e-05;

if (cfgnSigmaMultCuts == 2) {

Check warning on line 494 in PWGCF/Flow/Tasks/flowSP.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
fitParamHighPV1 = 3787.93;
fitParamHighPV2 = -135.184;
fitParamHighPV3 = 2.07683;
fitParamHighPV4 = -0.0165997;
fitParamHighPV5 = 5.68725e-05;
} else if (cfgnSigmaMultCuts == 3) {

Check warning on line 500 in PWGCF/Flow/Tasks/flowSP.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
fitParamHighPV1 = 4067.4;
fitParamHighPV2 = -145.485;
fitParamHighPV3 = 2.27273;
Expand All @@ -514,13 +514,13 @@
double fitParamLow4 = -0.00235284;
double fitParamLow5 = 3.01132e-06;

if (cfgnSigmaMultCuts == 2) {

Check warning on line 517 in PWGCF/Flow/Tasks/flowSP.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
fitParamLow1 = 1307.92;
fitParamLow2 = -39.9168;
fitParamLow3 = 0.412675;
fitParamLow4 = -0.00148081;
fitParamLow5 = 1.10868e-07;
} else if (cfgnSigmaMultCuts == 3) {

Check warning on line 523 in PWGCF/Flow/Tasks/flowSP.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
fitParamLow1 = 1048.48;
fitParamLow2 = -31.4568;
fitParamLow3 = 0.287794;
Expand All @@ -537,13 +537,13 @@
double fitParamHigh4 = -0.00496563;
double fitParamHigh5 = 1.34314e-05;

if (cfgnSigmaMultCuts == 2) {

Check warning on line 540 in PWGCF/Flow/Tasks/flowSP.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
fitParamHigh1 = 2350.39;
fitParamHigh2 = -74.6939;
fitParamHigh3 = 0.953287;
fitParamHigh4 = -0.006162;
fitParamHigh5 = 1.80808e-05;
} else if (cfgnSigmaMultCuts == 3) {

Check warning on line 546 in PWGCF/Flow/Tasks/flowSP.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
fitParamHigh1 = 2610.98;
fitParamHigh2 = -83.3983;
fitParamHigh3 = 1.0893;
Expand All @@ -558,7 +558,7 @@
fMultPVCutHigh->SetParameters((cfgMultPv.value)[5], (cfgMultPv.value)[6], (cfgMultPv.value)[7], (cfgMultPv.value)[8], (cfgMultPv.value)[9]);
fMultCutLow->SetParameters((cfgMult.value)[0], (cfgMult.value)[1], (cfgMult.value)[2], (cfgMult.value)[3], (cfgMult.value)[4]);
fMultCutHigh->SetParameters((cfgMult.value)[5], (cfgMult.value)[6], (cfgMult.value)[7], (cfgMult.value)[8], (cfgMult.value)[9]);
}
}
}

if (cfgUseAdditionalTrackCut) {
Expand Down Expand Up @@ -597,7 +597,7 @@
cfg.mAcceptance.push_back(reinterpret_cast<GFWWeights*>(listCorrections->FindObject("weights_positive")));
cfg.mAcceptance.push_back(reinterpret_cast<GFWWeights*>(listCorrections->FindObject("weights_negative")));
int sizeAcc = cfg.mAcceptance.size();
if (sizeAcc < 3)

Check warning on line 600 in PWGCF/Flow/Tasks/flowSP.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
LOGF(warning, "Could not load acceptance weights from %s", cfgNUA.value.c_str());
else
LOGF(info, "Loaded acceptance weights from %s", cfgNUA.value.c_str());
Expand All @@ -610,7 +610,7 @@
cfg.mEfficiency.push_back(reinterpret_cast<TH1D*>(listCorrections->FindObject("Efficiency_pos")));
cfg.mEfficiency.push_back(reinterpret_cast<TH1D*>(listCorrections->FindObject("Efficiency_neg")));
int sizeEff = cfg.mEfficiency.size();
if (sizeEff < 3) {

Check warning on line 613 in PWGCF/Flow/Tasks/flowSP.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgNUE.value.c_str());
}
LOGF(info, "Loaded efficiency histogram from %s", cfgNUE.value.c_str());
Expand Down
Loading