Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove boost lexical_cast dependency in EventFilter #35168

Merged
merged 2 commits into from Sep 13, 2021

Conversation

Purva-Chaudhari
Copy link
Contributor

PR description:

Remove boost lexical cast dependency in EventFilter with corresponding stl alternatives.

PR validation:

Passed runtests

if this PR is a backport:

@davidlange6 @vgvassilev

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 6, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35168/25096

  • This PR adds an extra 48KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 6, 2021

A new Pull Request was created by @Purva-Chaudhari for master.

It involves the following packages:

  • EventFilter/L1TRawToDigi (l1)
  • EventFilter/Utilities (daq, reconstruction)

@emeschi, @smorovic, @cmsbuild, @rekovic, @slava77, @jpata, @cecilecaillol can you please review it and eventually sign? Thanks.
@dinyar, @Martin-Grunewald, @thomreis this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

return boost::lexical_cast<int>(data);
} catch (boost::bad_lexical_cast const& e) {
return std::stoi(data);
} catch (const std::exception& e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @Purva-Chaudhari,
std::runtime and std::exception are caught below this catch statement (lines 1343 and 1348), so this would make them always ignored.

It would be better instead to catch specifically std::invalid_argument and std::out_of_range, both of which can be thrown by std::stoi.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh alright thanks, I will fix it

@@ -1432,7 +1431,7 @@ namespace evf {
// Another process grabbed the file and NFS did not register this
unlockFULocal();
edm::LogError("EvFDaqDirector") << "grabNextFile runtime Exception -: " << e.what();
} catch (boost::bad_lexical_cast const&) {
} catch (const std::out_of_range&) {
Copy link
Contributor

Choose a reason for hiding this comment

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

std::invalid_argument should also be also caught in addition to std::out_of_range to keep the same behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, adding it

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 6, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35168/25098

  • This PR adds an extra 48KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 6, 2021

Pull request #35168 was updated. @emeschi, @smorovic, @cmsbuild, @rekovic, @slava77, @jpata, @cecilecaillol can you please check and sign again.

@smorovic
Copy link
Contributor

smorovic commented Sep 6, 2021

+1
thanks

@smorovic
Copy link
Contributor

smorovic commented Sep 6, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 6, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-36eb2d/18343/summary.html
COMMIT: 97ce6ad
CMSSW: CMSSW_12_1_X_2021-09-05-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/35168/18343/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3001001
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3000979
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@slava77
Copy link
Contributor

slava77 commented Sep 9, 2021

+reconstruction

for #35168 97ce6ad

  • the updates in reco category package EventFilter/Utilities (shared with DAQ) do not touch reco-related files

@qliphy
Copy link
Contributor

qliphy commented Sep 13, 2021

merge
@cms-sw/l1-l2 This is a technical PR. Let's know if you have any concern.

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.

None yet

5 participants