Skip to content

[PWGLF] added process function to check effect of spatial calibration on v1 - #18015

Merged
romainschotter merged 2 commits into
AliceO2Group:masterfrom
prottayCMT:master
Sep 23, 2026
Merged

romainschotter merged 2 commits into
AliceO2Group:masterfrom
prottayCMT:master

Conversation

@prottayCMT

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 284 warnings, 🔕 0 disabled

@github-actions github-actions Bot changed the title added process function to check effect of spatial calibration on v1 [PWGLF] added process function to check effect of spatial calibration on v1 Sep 22, 2026
romainschotter
romainschotter previously approved these changes Sep 22, 2026
@romainschotter
romainschotter enabled auto-merge (squash) September 22, 2026 18:23
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/staging for 694707d at 2026-09-22 21:32:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1351:125: error: unused parameter 'V0s' [-Werror=unused-parameter]
ninja: build stopped: subcommand failed.

Full log here.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/o2 for 694707d at 2026-09-22 21:34:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1351:125: error: unused parameter 'V0s' [-Werror=unused-parameter]
ninja: build stopped: subcommand failed.

Full log here.

@alibuild

alibuild commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for a1cec3a at 2026-09-23 10:35:

## sw/BUILD/O2-latest/log
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:75:56
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:83:135
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:84:135
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/Upgrades/ALICE3/ECal/base/src/ECalBaseLinkDef.h:19:48
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/Upgrades/ALICE3/RICH/base/src/RICHBaseLinkDef.h:18:48
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/Upgrades/ALICE3/MID/base/src/MI3BaseLinkDef.h:18:47


## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'Found 2 errors and 56 warnings.'
Found 2 errors and 56 warnings.
++ [[ 2 -gt 0 ]]
++ cat /sw/BUILD/25e0d7ca48f9d54df489626002ef09dc83dc29a9/O2Physics-code-check/errors.txt
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1854:13: error: Value stored to 'tagb' during its initialization is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:2223:11: error: Value stored to 'tagb' during its initialization is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
++ [[ 56 -gt 0 ]]
++ cat /sw/BUILD/25e0d7ca48f9d54df489626002ef09dc83dc29a9/O2Physics-code-check/warnings.txt
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:71:8: warning: constructor does not initialize these fields: mRunNumber, ccdb, pdg, hwgtAL, heffL, heffAL, hwgtRESO, modqxZDCA, modqyZDCA, modqxZDCC, modqyZDCC, accprofileL, accprofileAL [cppcoreguidelines-pro-type-member-init]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:328:21: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:581:20: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:604:9: warning: uninitialized record type: 'cuts' [cppcoreguidelines-pro-type-member-init]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:684:14: warning: redundant boolean literal in conditional return statement [readability-simplify-boolean-expr]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1031:33: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1358:24: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1406:23: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1490:24: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1492:29: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1494:29: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1496:29: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1632:25: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1655:11: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1662:45: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1826:14: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1826:28: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1826:39: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1833:13: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1839:13: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1846:26: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1846:37: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1850:40: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1861:13: warning: variable 'binxwgt' is not initialized [cppcoreguidelines-init-variables]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1862:16: warning: variable 'wgtvalue' is not initialized [cppcoreguidelines-init-variables]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1873:13: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1903:26: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1903:32: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1907:13: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
[0 more errors; see full log]

Full log here.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 694707d at 2026-09-23 01:25:

## sw/BUILD/O2-latest/log
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260922-0000/daily-20260922-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:75:56
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260922-0000/daily-20260922-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:83:135
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260922-0000/daily-20260922-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:84:135
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260922-0000/daily-20260922-0000/Detectors/Upgrades/ALICE3/ECal/base/src/ECalBaseLinkDef.h:19:48
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260922-0000/daily-20260922-0000/Detectors/Upgrades/ALICE3/RICH/base/src/RICHBaseLinkDef.h:18:48
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260922-0000/daily-20260922-0000/Detectors/Upgrades/ALICE3/MID/base/src/MI3BaseLinkDef.h:18:47


## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'Found 4 errors and 56 warnings.'
Found 4 errors and 56 warnings.
++ [[ 4 -gt 0 ]]
++ cat /sw/BUILD/b5cc08c67a8171bdcdd0d632f2ffd68622289a31/O2Physics-code-check/errors.txt
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1351:125: error: parameter 'V0s' is unused [misc-unused-parameters,-warnings-as-errors]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1351:125: error: unused parameter 'V0s' [clang-diagnostic-unused-parameter,-warnings-as-errors]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1854:13: error: Value stored to 'tagb' during its initialization is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:2223:11: error: Value stored to 'tagb' during its initialization is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
++ [[ 56 -gt 0 ]]
++ cat /sw/BUILD/b5cc08c67a8171bdcdd0d632f2ffd68622289a31/O2Physics-code-check/warnings.txt
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:71:8: warning: constructor does not initialize these fields: mRunNumber, ccdb, pdg, hwgtAL, heffL, heffAL, hwgtRESO, modqxZDCA, modqyZDCA, modqxZDCC, modqyZDCC, accprofileL, accprofileAL [cppcoreguidelines-pro-type-member-init]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:328:21: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:581:20: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:604:9: warning: uninitialized record type: 'cuts' [cppcoreguidelines-pro-type-member-init]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:684:14: warning: redundant boolean literal in conditional return statement [readability-simplify-boolean-expr]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1031:33: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1358:24: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1406:23: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1490:24: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1492:29: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1494:29: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1496:29: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1632:25: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1655:11: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1662:45: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1826:14: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1826:28: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1826:39: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1833:13: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1839:13: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1846:26: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1846:37: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1850:40: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1861:13: warning: variable 'binxwgt' is not initialized [cppcoreguidelines-init-variables]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1862:16: warning: variable 'wgtvalue' is not initialized [cppcoreguidelines-init-variables]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1873:13: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/lambdapolsp.cxx:1903:26: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
[0 more errors; see full log]

Full log here.

@romainschotter
romainschotter merged commit 4993604 into AliceO2Group:master Sep 23, 2026
12 of 14 checks passed
Comment on lines +1327 to +1330
static constexpr double massLambda = o2::constants::physics::MassLambda;
static constexpr double massK0s = o2::constants::physics::MassK0Short;
static constexpr double massPr = o2::constants::physics::MassProton;
static constexpr double massPi = o2::constants::physics::MassPionCharged;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not create aliases for existing constants. It's misleading and creates room for errors. Please use the existing constants directly instead. The namespace prefix can be removed if you use a using directive.

Comment on lines +1409 to +1410
auto ux = TMath::Cos(GetPhiInRange(track.phi()));
auto uy = TMath::Sin(GetPhiInRange(track.phi()));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no reason to use ROOT functions here. O2 works with fundamental C++ types so the best is to stick to the STL algorithms.

@vkucera

vkucera commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

@prottayCMT Please fix the remaining errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants