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

94 x #44

Merged
merged 4 commits into from
May 8, 2018
Merged

94 x #44

merged 4 commits into from
May 8, 2018

Conversation

daseith
Copy link

@daseith daseith commented May 8, 2018

In the calculation of the genDecay_ parameter the Bhadron was matched to a jet via deltaR matching, which is incorrect. Instead it should be checked whether the Bhadron is within the jet cluster.

I also fixed a potential issue that could cause the Bhadron_daughter_ array to be smaller than the Bhadron_ array resulting in a segmentation fault.

@jkiesele
Copy link
Contributor

jkiesele commented May 8, 2018

Doesn't the problem remain that if one hadron doesn't have a daughter it will be reset to -0.1 (and then stays there)?

@daseith
Copy link
Author

daseith commented May 8, 2018

The

else if (genDecay_ < 0)
https://github.com/daseith/DeepNTuples/blob/b16f42c3e6802270dc889dacd8150d093d73a16d/DeepNtuplizer/src/ntuple_JetInfo.cc#L420

should prevent that. Because if the prevous hadron had a daughter genDecay_ will be > 0

@jkiesele
Copy link
Contributor

jkiesele commented May 8, 2018

@jkiesele jkiesele merged commit 578ae33 into CMSDeepFlavour:94X May 8, 2018
@daseith daseith deleted the 94X branch May 8, 2018 15:15
@emilbols emilbols mentioned this pull request Jun 11, 2018
@daseith daseith mentioned this pull request Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants