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

Fixed invalid reference bug when # of tracks exceeds 32767 #10379

Merged
merged 2 commits into from
Jul 28, 2015

Conversation

istaslis
Copy link
Contributor

The invalid reference bug was fixed using integer instead of short type for keys in track collection. Number of tracks can exceed 32767.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @istaslis (Stas Lisniak) for CMSSW_7_5_X.

Fixed invalid reference bug when # of tracks exceeds 32767

It involves the following packages:

RecoTracker/FinalTrackSelectors

@cmsbuild, @cvuosalo, @slava77 can you please review it and eventually sign? Thanks.
@ghellwig, @makortel, @GiacomoSguazzoni, @rovere, @VinInn, @mschrode, @gpetruc, @cerati, @dgulhan 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.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@slava77
Copy link
Contributor

slava77 commented Jul 27, 2015

If this bug was reported somewhere, please provide a reference.
I'm curious to see an example of an event with more than 32767 tracks.

@slava77
Copy link
Contributor

slava77 commented Jul 27, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@istaslis
Copy link
Contributor Author

@slava77
Copy link
Contributor

slava77 commented Jul 27, 2015

@istaslis
Your DAS link points to a RAW file.
Some reconstruction is needed. Which release was used to see so many tracks?
(was this error reported in some relval?)

One place where I can imagine more issues downstream is the PF reconstruction: PFCandidates pack track refs as unsigned shorts.

How many tracks did we have in the event in question?

@istaslis
Copy link
Contributor Author

@slava77
This error was reported during relval of CMSSW_7_5_0 (workflow 140.53) on track reconstruction (in the hiGeneralTracks module). Because of many tracks during HI tracking, oldKey becomes negative and InvalidReference exception fires.

@slava77
Copy link
Contributor

slava77 commented Jul 27, 2015

Can we change to uint32_t instead?
I wanted to avoid that potential problem in PF packing

@istaslis
Copy link
Contributor Author

It works fine with uint32_t. Do you want me to make new PRs?

@slava77
Copy link
Contributor

slava77 commented Jul 27, 2015

Nice
Just push your commit to the same branch. The PR will update automatically
On Jul 27, 2015 8:50 AM, "Stas Lisniak" notifications@github.com wrote:

It works fine with uint32_t. Do you want me to make new PRs?


Reply to this email directly or view it on GitHub
#10379 (comment).

@istaslis
Copy link
Contributor Author

Done!

@slava77
Copy link
Contributor

slava77 commented Jul 27, 2015

with some more thought, the relationship to PFCandidate packing is not very relevant.
uint32_t is still a more correct choice than a signed int

@slava77
Copy link
Contributor

slava77 commented Jul 27, 2015

+1

for #10379 15206dd

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_5_X IBs once checked with relvals in the development release cycle of CMSSW (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar

@davidlange6
Copy link
Contributor

+1

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.

4 participants