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

reduce cases of LogWarnings with InvalidHelix category in Pixel/Strip ClusterShape compatibility checks #23209

Merged

Conversation

slava77
Copy link
Contributor

@slava77 slava77 commented May 15, 2018

InvalidHelix is one of the leading LogWarnings in current pp processing.
It turns out that a large fraction (all?) of the warnings corresponds to the reference helix considered "invalid" because it was reduced to a straight line. This is actually a valid input.

FastCircle::isLine method is added to make the simple test.

There is no change to the physics results of the algorithms. A LogWarning is simply not issued anymore in the case that appears to already have a correct behavior.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@slava77
Copy link
Contributor Author

slava77 commented May 15, 2018

@cmsbuild please test

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

cmsbuild commented May 15, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/27964/console Started: 2018/05/15 22:26

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @slava77 (Slava Krutelyov) for master.

It involves the following packages:

RecoPixelVertexing/PixelLowPtUtilities
RecoTracker/TkSeedGenerator

@perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@makortel, @felicepantaleo, @GiacomoSguazzoni, @rovere, @VinInn, @mschrode, @gpetruc, @ebrondol, @dgulhan 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

@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-23209/27964/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 34 differences found in the comparisons
  • DQMHistoTests: Total files compared: 30
  • DQMHistoTests: Total histograms compared: 2715235
  • DQMHistoTests: Total failures: 2218
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2712834
  • DQMHistoTests: Total skipped: 183
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 29 files compared)
  • Checked 124 log files, 14 edm output root files, 30 DQM output files

@slava77 slava77 changed the title reduce cases with LogWarnings of InvalidHelix category in Pixel/Strip ClusterShape compatibility checks reduce cases of LogWarnings with InvalidHelix category in Pixel/Strip ClusterShape compatibility checks May 16, 2018
if(!helix.isValid()) edm::LogWarning("InvalidHelix") << "PixelClusterShapeSeedComparitor helix is not valid, result is bad";
if(!helix.isValid() //check still if it's a straight line, which are OK
&& !helix.circle().isLine())//complain if it's not even a straight line
edm::LogWarning("InvalidHelix") << "PixelClusterShapeSeedComparitor helix is not valid, result is bad";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@makortel @VinInn
I wanted to check with you that I have correctly interpreted this case of using a "degraded" FastHelix.

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting.... is the efficiency improving?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually wonder what
float xc = helix.circle().x0(), yc = helix.circle().y0();
would then do

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is no change in physics in this PR, it just reduces the range of cases when the logWarning is issued.

The xc,yc are (0,0) for the case of a line.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, we need to have a further look on how to use a straight line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the LogWarnings that I have investigated
this code is called by RecoTracker/TkSeedGenerator/plugins/SeedFromConsecutiveHitsTripletOnlyCreator.cc:53
there the code already apparently makes some assumptions about !helix.isValid() and already makes up a state at vertex for an invalid helix which simply points from the vertex to the outer hit (just as if it's a straight line)

@slava77
Copy link
Contributor Author

slava77 commented May 18, 2018

+1

for #23209 3028a3f

  • jenkins tests pass and comparisons with the baseline show changes in the log-warnings, indicating a reduction

@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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

+1

differences looks related to the known issue

@cmsbuild cmsbuild merged commit 58fdc16 into cms-sw:master May 18, 2018
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