Skip to content

RecoHGCal/TICL: coding-rules compliance #51346

Open
felicepantaleo wants to merge 1 commit into
cms-sw:masterfrom
felicepantaleo:ticl-fix-coding-rules
Open

RecoHGCal/TICL: coding-rules compliance #51346
felicepantaleo wants to merge 1 commit into
cms-sw:masterfrom
felicepantaleo:ticl-fix-coding-rules

Conversation

@felicepantaleo

@felicepantaleo felicepantaleo commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Findings from cmsCodeRulesChecker, clang-format, scram b code-checks and the LLVM static analyzer (scram b checker) on the package.

Include guards (TCR-1): three headers shared the guard RecoHGCal_TICL_PatternRecognitionAlgoBase_H__ (PatternRecognitionAlgoBase.h, TICLInterpretationAlgoBase.h, TracksterLinkingAlgoBase.h) -- a real bug, since a translation unit including two of them silently dropped the second body. Other guards used reserved double-underscore forms (...H_, leading ...), wrong package casing (RecoHGCAL/RECOHGCAL), or a foreign-package guard (TICLGraph.h used DataFormats_HGCalReco_TICLGraph_h). Normalised all 41 to the canonical RecoHGCal_TICL__h; guards are now unique and free of reserved __.

…ysis)

Findings from cmsCodeRulesChecker, clang-format, scram b code-checks and the
LLVM static analyzer (scram b checker) on the package.

Include guards (TCR-1): three headers shared the guard
RecoHGCal_TICL_PatternRecognitionAlgoBase_H__ (PatternRecognitionAlgoBase.h,
TICLInterpretationAlgoBase.h, TracksterLinkingAlgoBase.h) -- a real bug, since a
translation unit including two of them silently dropped the second body. Other
guards used reserved double-underscore forms (..._H__, leading __...), wrong
package casing (RecoHGCAL_/RECOHGCAL_), or a foreign-package guard (TICLGraph.h
used DataFormats_HGCalReco_TICLGraph_h). Normalised all 41 to the canonical
RecoHGCal_TICL_<File>_h; guards are now unique and free of reserved __.

Static analyzer:
- TiclDebugger: make the static-local lookup table fully const
  (static const char* const particle_kind[]) -- threadsafety.StaticLocal.
- TracksterLinksProducer::dumpTrackster: remove the dead store of e_over_h
  (computed but only read by a compiled-out LogDebug) by inlining the expression.
@cmsbuild

cmsbuild commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

cms-bot internal usage

@felicepantaleo

Copy link
Copy Markdown
Contributor Author

@cmsbuild please test

@cmsbuild

Copy link
Copy Markdown
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-51346/49980

@cmsbuild

Copy link
Copy Markdown
Contributor

A new Pull Request was created by @felicepantaleo for master.

It involves the following packages:

  • RecoHGCal/TICL (reconstruction)

@Moanwar, @jfernan2, @mandrenguyen, @srimanob can you please review it and eventually sign? Thanks.
@apsallid, @denizsun, @hatakeyamak, @lecriste, @rovere, @salimcerci, @sameasy, @sobhatta this is something you requested to watch as well.
@ftenchini, @mandrenguyen, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@felicepantaleo

Copy link
Copy Markdown
Contributor Author

type bugfix

@cmsbuild

Copy link
Copy Markdown
Contributor

+1

Size: This PR adds an extra 52KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a9393f/54337/summary.html
COMMIT: 045c88a
CMSSW: CMSSW_20_1_X_2026-06-28-0000/el9_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/51346/54337/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 2 lines to the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 45
  • DQMHistoTests: Total histograms compared: 3414477
  • DQMHistoTests: Total failures: 43
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3414416
  • DQMHistoTests: Total skipped: 18
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 44 files compared)
  • Checked 195 log files, 163 edm output root files, 45 DQM output files
  • TriggerResults: no differences found

@felicepantaleo

Copy link
Copy Markdown
Contributor Author

type ngt

@cmsbuild cmsbuild added the ngt label Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants