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

failure when calling met.p4() #290

Open
michael-pitt opened this issue Sep 20, 2021 · 0 comments
Open

failure when calling met.p4() #290

michael-pitt opened this issue Sep 20, 2021 · 0 comments

Comments

@michael-pitt
Copy link

I try to use met to get the transverse mass of the W boson, and I do in the following way:

met = Object(event, "MET")
wMT = (lepton.p4()+met.p4()).Mt()

Then, I hit Unknown branch MET_eta Error.
Question: Can the p4 function of Object to be able to set ret.SetPtEtaPhiM(self.pt, 0, self.phi, 0) in case of missing Eta/Mass variables? Or is there an easy way to get TLorentzVector for MET?
I'm using

met = Object(event, "MET")
met_p4 = ROOT.TLorentzVector(met.pt * cos(met.phi),met.pt * sin(met.phi),0,met.pt)

for now but it can be more convenient to use the p4() functionality of Object

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