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

Add index to primary vertex in scouting particle collection #11033

Conversation

davidsheffield
Copy link
Contributor

Backport of #11029.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @davidsheffield (David Sheffield) for CMSSW_7_4_X.

Add index to primary vertex in scouting particle collection

It involves the following packages:

DataFormats/Scouting
HLTrigger/JetMET

The following packages do not have a category, yet:

DataFormats/Scouting

@Martin-Grunewald, @perrotta, @cmsbuild, @fwyzard can you please review it and eventually sign? Thanks.
@Martin-Grunewald 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.

@Martin-Grunewald
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@Martin-Grunewald
Copy link
Contributor

+1

@Martin-Grunewald
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2015

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2015

//default constructor
ScoutingParticle():pt_(0), eta_(0), phi_(0), m_(0), pdgId_(0) {}
ScoutingParticle():pt_(0), eta_(0), phi_(0), m_(0), pdgId_(0), vertex_(0) {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Given 0 is a valid index, how about using max int instead? That way reading old data one can spot if the variable is not filled.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or -1 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Dr15Jones, you mean changing it to vertex_(2147483647)? Or should I use a smaller value in case there maximum int is 32 bit?

-1 is a valid value for this member. The producer sets it to -1 when no vertex is matched.

Copy link
Contributor

Choose a reason for hiding this comment

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

Given when reading old data there would be no match, then -1 makes the most sense.

@davidsheffield
Copy link
Contributor Author

I got the same checksum from scram b for the class as before the most recent commit despite changing the code. I assume that's wrong. How should I get the checksum?

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2015

Pull request #11033 was updated. @Martin-Grunewald, @perrotta, @cmsbuild, @fwyzard can you please check and sign again.

@davidlange6
Copy link
Contributor

@davidsheffield -the checksum is derived from the member data not the c++ that fills them. So all is ok.

@davidlange6
Copy link
Contributor

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 2, 2015

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 2, 2015

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 2, 2015

@smuzaffar
Copy link
Contributor

comparison is not ready as jenkins job failed to upload the result to cmssdt server. I have restarted the comparison.

davidlange6 added a commit that referenced this pull request Sep 2, 2015
…VertexAssociation

Add index to primary vertex in scouting particle collection
@davidlange6 davidlange6 merged commit 5f5074f into cms-sw:CMSSW_7_4_X Sep 2, 2015
@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 2, 2015

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

7 participants