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

Strip rh valid fix #4912

Merged
merged 4 commits into from Aug 12, 2014
Merged

Strip rh valid fix #4912

merged 4 commits into from Aug 12, 2014

Conversation

wmtford
Copy link
Contributor

@wmtford wmtford commented Aug 8, 2014

SiStripRecHitsValid: Fix a bug that was disabling filling of histos for no. of recHits by subdet. Adjust the binning of the now-enabled histograms.
For matched recHits, limit the simHits projected from the stereo sensor to those actually on the stereo sensor.
TrackerHitAssociator: For matched recHits, suppress ghost hits by requiring a simTrack association.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2014

A new Pull Request was created by @wmtford for CMSSW_7_2_X.

Strip rh valid fix

It involves the following packages:

SimTracker/TrackerHitAssociation
Validation/TrackerRecHits

@civanch, @ojeda, @danduggan, @rovere, @cmsbuild, @nclopezo, @mdhildreth, @deguio, @Degano can you please review it and eventually sign? Thanks.
@GiacomoSguazzoni, @rovere, @VinInn, @cerati, @threus, @venturia this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@civanch
Copy link
Contributor

civanch commented Aug 11, 2014

+1

@deguio
Copy link
Contributor

deguio commented Aug 11, 2014

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (tests are also fine).


//check if the recHit is a SiStripMatchedRecHit2D
bool isMatchedHit = false;
if(dynamic_cast<const SiStripMatchedRecHit2D *>(&thit))
Copy link
Contributor

Choose a reason for hiding this comment

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

dynamic_casts can be expensive. Did you check there were no regressions performance wise?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. I copied from the method associateHitId in this same class, where
it has been present all along. This new instance in associateHit is
outside any loops once this function has been called, so it adds one
occurrence on top of one to three occurrences invoked by the upstream
call to associateHitId.

There is no gross change in the execution time (3:28 vs 4:07 minutes for
10 events (3 TeV QCD jets plus pileup), in batch with no control on processor speed), but I can run a
more controlled test.
...
Running 19 events (QCD 3-TeV jets, this time without pileup) on the same processor took 31 seconds vs 33 when I removed the test with the dynamic cast. (There are more hits processed downstream in the latter case.)

ktf added a commit that referenced this pull request Aug 12, 2014
@ktf ktf merged commit f3f225a into cms-sw:CMSSW_7_2_X Aug 12, 2014
@wmtford wmtford deleted the stripRHValidFix branch August 14, 2014 02:08
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