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

Wrong calculation of raw softdrop mass for AK8 jets? #280

Open
nurfikri89 opened this issue Jun 1, 2021 · 1 comment
Open

Wrong calculation of raw softdrop mass for AK8 jets? #280

nurfikri89 opened this issue Jun 1, 2021 · 1 comment

Comments

@nurfikri89
Copy link
Contributor

From the snippet below, it looks like the raw softdrop mass is wrongly calculated. The subjets retrieved here are with jet energy corrections (JECs) applied on them [1]. From what I understand of what we mean by the raw softdrop mass is the invariant mass of the subjet pair with the JECs removed from each subjet four-vector.

if jet.subJetIdx1 >= 0 and jet.subJetIdx2 >= 0:
groomedP4 = subJets[jet.subJetIdx1].p4() + subJets[
jet.subJetIdx2].p4() # check subjet jecs
else:
groomedP4 = None
jet_msdcorr_raw = groomedP4.M() if groomedP4 is not None else 0.0

[1] at the nanoAOD production level, or probably even earlier at the miniAOD production level

@nurfikri89
Copy link
Contributor Author

nurfikri89 commented Jun 1, 2021

I think line 550-551 can be replaced by:

groomedP4 = (subJets[jet.subJetIdx1].p4() * (1. - subJets[jet.subJetIdx1].rawFactor)) \
     + (subJets[jet.subJetIdx2].p4() * (1. - subJets[jet.subJetIdx2].rawFactor))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant