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

The use of the innerTrack is now protected with an if, also a cout ha… #23015

Merged
merged 2 commits into from Apr 25, 2018

Conversation

parbol
Copy link
Contributor

@parbol parbol commented Apr 19, 2018

This PR corrects an issue discussed here:

#22456 (comment)

In particular it corrects three things:

The innerTrack is tested to be "isnonNull()" before being used, otherwise the code is not executed.

The logic of the beamspot spotted before is now corrected to uses beamSpot().isValid()

One remaining cout has been replaced by a edm::Log

…s been removed, and the logic of a beamspot isvalid has been corrected
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

DQMOffline/Muon

@vazzolini, @kmaeshima, @dmitrijus, @cmsbuild, @jfernan2, @vanbesien can you please review it and eventually sign? Thanks.
@barvic, @bellan, @abbiendi, @jhgoh, @calderona, @HuguesBrun, @drkovalskyi, @ptcox, @battibass, @trocino, @folguera, @rociovilar this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

h_allProbes_inner_phi->Fill(muon2->innerTrack()->innerPosition().Phi());

if(muon2->innerTrack().isNonnull()) {
h_allProbes_inner_pt->Fill(muon2->innerTrack()->innerMomentum().Rho());
Copy link
Contributor

Choose a reason for hiding this comment

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

this will not help.
Did you check that the crash is gone?

innerTrack().extra().isAvailable() looks like a more correct approach

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi,

I couldn't check it was working, because I was unable to run the workflow that was failing. I tried your recommendations and more things but for this particular workflow I just didn't manage to run (it was crashing for unrelated reasons). I can update this right away, but I'm afraid that I won't be able to check it. I'm happy to try any other suggestion you have.

Copy link
Contributor

Choose a reason for hiding this comment

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

@parbol we need to use innerTrack().extra().isAvailable(). isNonnull() doesn't mean that data is available (I know it's confusing if you don't use it each day, but it covers different use cases).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have corrected this now. Thanks for the hint!

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #23015 was updated. @vazzolini, @kmaeshima, @dmitrijus, @cmsbuild, @jfernan2, @vanbesien can you please check and sign again.

@dmitrijus
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 24, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/27626/console Started: 2018/04/24 14:06

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-23015/27626/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 29
  • DQMHistoTests: Total histograms compared: 2492830
  • DQMHistoTests: Total failures: 30
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2492624
  • DQMHistoTests: Total skipped: 176
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 28 files compared)
  • Checked 119 log files, 9 edm output root files, 29 DQM output files

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit cb62b67 into cms-sw:master Apr 25, 2018
fabiocos added a commit to fabiocos/cmssw that referenced this pull request Jun 7, 2018
cmsbuild added a commit that referenced this pull request Jun 8, 2018
Backport of #23015 to 101X, DQMOffline/Muon fixes
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

6 participants