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
4 changes: 4 additions & 0 deletions PWGDQ/Core/VarManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
double mean = calibMeanHist->GetBinContent(binTPCncls, binPin, binEta);
double sigma = calibSigmaHist->GetBinContent(binTPCncls, binPin, binEta);
return (nSigmaValue - mean) / sigma; // Return the calibrated nSigma value
} else if (fgCalibrationType == 2) {

Check failure on line 308 in PWGDQ/Core/VarManager.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.
// get the calibration histograms
CalibObjects calibMean = kTPCElectronMean;
CalibObjects calibSigma = kTPCElectronSigma;
Expand Down Expand Up @@ -539,7 +539,7 @@
// Bimodality coefficient = (skewness^2 + 1) / kurtosis
// return a tuple including the coefficient, mean, RMS, skewness, and kurtosis
size_t n = data.size();
if (n < 3) {

Check failure on line 542 in PWGDQ/Core/VarManager.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.
return std::make_tuple(-1.0, -1.0, -1.0, -1.0, -1.0);
}
float mean = std::accumulate(data.begin(), data.end(), 0.0) / n;
Expand Down Expand Up @@ -2721,9 +2721,13 @@
fgVarNamesMap["kDeltaPhi_TPC"] = kDeltaPhi_TPC;
fgVarNamesMap["kDeltaPhi_FT0A"] = kDeltaPhi_FT0A;
fgVarNamesMap["kDeltaPhi_FT0C"] = kDeltaPhi_FT0C;
fgVarNamesMap["kDeltaPhi_Random"] = kDeltaPhi_Random;
fgVarNamesMap["kDeltaPhi_MC"] = kDeltaPhi_MC;
fgVarNamesMap["kCos2DeltaPhi_TPC"] = kCos2DeltaPhi_TPC;
fgVarNamesMap["kCos2DeltaPhi_FT0A"] = kCos2DeltaPhi_FT0A;
fgVarNamesMap["kCos2DeltaPhi_FT0C"] = kCos2DeltaPhi_FT0C;
fgVarNamesMap["kCos2DeltaPhi_Random"] = kCos2DeltaPhi_Random;
fgVarNamesMap["kCos2DeltaPhi_MC"] = kCos2DeltaPhi_MC;
fgVarNamesMap["kDeltaPhiME_TPC"] = kDeltaPhiME_TPC;
fgVarNamesMap["kDeltaPhiME_FT0A"] = kDeltaPhiME_FT0A;
fgVarNamesMap["kDeltaPhiME_FT0C"] = kDeltaPhiME_FT0C;
Expand Down
Loading