Skip to content

[PWGUD] updates to upcRhoAnalysis.cxx - #17957

Closed
jjuracka wants to merge 452 commits into
AliceO2Group:masterfrom
jjuracka:update
Closed

jjuracka wants to merge 452 commits into
AliceO2Group:masterfrom
jjuracka:update

Conversation

@jjuracka

Copy link
Copy Markdown
Contributor

A collection of updates to personal task.

Includes some bug fixes, changes of defaults for configurables, edits of axis specs, addition of columns into derived data, and a new process function to analyse reconstructed MC with access to truth-level info.

Shunsuke-Kurita and others added 30 commits June 6, 2026 10:18
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
…ck-track correlation (AliceO2Group#16291)

Co-authored-by: Shirajum Monira <shirajum.monira@cernch>
…iciency (AliceO2Group#16296)

Co-authored-by: Shirajum Monira <shirajum.monira@cernch>
…16287)

Co-authored-by: Henrik Fribert <ge35huh@nidoqueen.ktas.ph.tum.de>
…vents (AliceO2Group#16128)

Co-authored-by: Cristian Moscatelli <cmoscate@gr3srv.ts.infn.it>
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
…alculations. (AliceO2Group#16002)

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
@github-actions

Copy link
Copy Markdown

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

Please consider the following formatting changes to AliceO2Group#17957
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 2f8250f at 2026-09-18 03:30:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'Found 2 errors and 89 warnings.'
Found 2 errors and 89 warnings.
++ [[ 2 -gt 0 ]]
++ cat /sw/BUILD/527b104ff238f71b652bba8d47b7794cc9ac254b/O2Physics-code-check/errors.txt
PWGUD/Tasks/upcRhoAnalysis.cxx:809:31: error: the variable 'p1' is copy-constructed from a const reference but is only used as const reference; consider making it a const reference [performance-unnecessary-copy-initialization,-warnings-as-errors]
PWGUD/Tasks/upcRhoAnalysis.cxx:915:7: error: 'push_back' is called inside a loop; consider pre-allocating the container capacity before the loop [performance-inefficient-vector-operation,-warnings-as-errors]
++ [[ 89 -gt 0 ]]
++ cat /sw/BUILD/527b104ff238f71b652bba8d47b7794cc9ac254b/O2Physics-code-check/warnings.txt
PWGUD/Tasks/upcRhoAnalysis.cxx:204:15: warning: member 'pcEtaCut' of type 'const float' is const qualified [cppcoreguidelines-avoid-const-or-ref-data-members]
PWGUD/Tasks/upcRhoAnalysis.cxx:205:13: warning: member 'nExpectedPions' of type 'const int' is const qualified [cppcoreguidelines-avoid-const-or-ref-data-members]
PWGUD/Tasks/upcRhoAnalysis.cxx:206:26: warning: member 'runNumbers' of type 'const std::vector<int>' is const qualified [cppcoreguidelines-avoid-const-or-ref-data-members]
PWGUD/Tasks/upcRhoAnalysis.cxx:306:68: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:349:68: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:437:65: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:465:20: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGUD/Tasks/upcRhoAnalysis.cxx:466:20: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGUD/Tasks/upcRhoAnalysis.cxx:467:20: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGUD/Tasks/upcRhoAnalysis.cxx:566:55: warning: repeated branch body in conditional chain [bugprone-branch-clone]
PWGUD/Tasks/upcRhoAnalysis.cxx:568:9: warning: do not use 'else' after 'return' [readability-else-after-return]
PWGUD/Tasks/upcRhoAnalysis.cxx:596:34: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:601:28: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:607:30: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:612:26: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:617:59: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:623:64: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:630:37: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:637:44: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:644:54: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:660:34: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:665:25: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:670:47: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:675:46: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:680:53: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:685:25: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:690:93: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:695:100: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:700:69: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:705:147: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:711:27: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:717:37: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:722:126: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:727:70: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:750:30: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:752:5: warning: do not use 'else' after 'return' [readability-else-after-return]
PWGUD/Tasks/upcRhoAnalysis.cxx:752:9: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/Tasks/upcRhoAnalysis.cxx:760:40: warning: statement should be inside braces [readability-braces-around-statements]
[0 more errors; see full log]

Full log here.

Comment on lines 793 to 801

@vkucera vkucera Sep 18, 2026

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 don't reinvent the wheel. There is RecoDecay::constrainAngle for this.

@vkucera

vkucera commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

@jjuracka Your branch is not rebased correctly.

@jjuracka jjuracka closed this Sep 18, 2026
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.