cms-ttH / ttH-13TeVMultiLeptons

13 TeV ttH Multilepton Analysis
2 stars 5 forks source link

Charge = 0 for all Pruned/Packed GenParticles #5

Closed klannon closed 8 years ago

klannon commented 8 years ago

This seems like a bug, but if it's a feature, just close the issue.

muell149 commented 8 years ago

I will add the charge shortly. For now you can get the charge via the pdg ID.

klannon commented 8 years ago

Yeah, but once you start dealing with hadrons, which can be neutral, that gets a lot more complicated. For now, I'm just going to gloss over the treatment of charged vs neutrals in my attempt to calculate mini at Gen-level, but if it doesn't work, I might need to treat charged and neutrals slightly differently.

muell149 commented 8 years ago

This has been fixed to grab the charges (0,+-1) available from the relevant collection in the miniAOD

matz-e commented 8 years ago

Wouldn't you want to close the issue then? ;)

muell149 commented 8 years ago

I wanted let @klannon have a chance to comment before closing.