Skip to content

Replacing"TMath.h" usage in favor of CMath#48716

Merged
cmsbuild merged 4 commits intocms-sw:masterfrom
akritkbehera:update/plugins/EcalPerEvtLaserAnalyzer.cc
Aug 15, 2025
Merged

Replacing"TMath.h" usage in favor of CMath#48716
cmsbuild merged 4 commits intocms-sw:masterfrom
akritkbehera:update/plugins/EcalPerEvtLaserAnalyzer.cc

Conversation

@akritkbehera
Copy link
Contributor

PR description:

Root update cms-sw/cmsdist#10005 failing due to missing #include "TMath.h" in EcalPerEvtLaserAnalyzer.cc

Root update cms-sw/cmsdist#10005 failing due to missing #include "TMath.h" in EcalPerEvtLaserAnalyzer.cc
@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 11, 2025

cms-bot internal usage

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • CalibCalorimetry/EcalLaserAnalyzer (alca)

@atpathak, @cmsbuild, @perrotta can you please review it and eventually sign? Thanks.
@ReyerBand, @argiro, @mmusich, @rchatter, @rsreds, @thomreis, @tocheng, @wang0jin, @yuanchao this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@iarspider
Copy link
Contributor

please test
just in case - test for master IB

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 24KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e4dec7/47654/summary.html
COMMIT: 590f0a1
CMSSW: CMSSW_15_1_X_2025-08-11-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/48716/47654/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e4dec7/47654/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e4dec7/47654/git-merge-result

Comparison Summary

Summary:

  • You potentially removed 5 lines from the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 4076122
  • DQMHistoTests: Total failures: 69
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4076033
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 215 log files, 184 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@smuzaffar
Copy link
Contributor

@iarspider , looks like there are few other packages which are failing https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a23b57/47646/build-logs/ , can you update this PR to provide a fix for those too?

@smuzaffar
Copy link
Contributor

smuzaffar commented Aug 11, 2025

@iarspider , looks like root has replaced the use of TMath::(min|Max) with std::(min|max) (root-project/root@9bd7729) , I would suggest to include cmath and replace TMath::* functions with std library

@iarspider
Copy link
Contributor

iarspider commented Aug 11, 2025

@smuzaffar did you mean @akritkbehera ? I just triggered the tests. But of course I can do it as well.

@smuzaffar
Copy link
Contributor

oops, yes @akritkbehera

@cmsbuild
Copy link
Contributor

@akritkbehera akritkbehera changed the title Added #include "TMath.h" Replacing"TMath.h" usage in favor of CMath Aug 12, 2025
@kpedro88
Copy link
Contributor

+simulation

@perrotta
Copy link
Contributor

+alca

@rseidita
Copy link
Contributor

+dqm

@Moanwar
Copy link
Contributor

Moanwar commented Aug 13, 2025

+Upgrade

@smuzaffar
Copy link
Contributor

@alja , can you please again sign it for @cms-sw/visualization-l2 ?

@smuzaffar
Copy link
Contributor

@cms-sw/l1-l2 , can you please review this?

@alja
Copy link
Contributor

alja commented Aug 13, 2025

+1

@smuzaffar
Copy link
Contributor

@BenjaminRS , @quinnanm can you please review this PR . It just replaces the use of TMath::(Min|Max|Abs) with std::(min|max|abs) . This PR is needed for integrating latest ROOT master changes cms-sw/cmsdist#10005

@BenjaminRS
Copy link
Contributor

+l1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @sextonkennedy, @mandrenguyen, @rappoccio, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2)

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 829c8b0 into cms-sw:master Aug 15, 2025
10 checks passed
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.