scikit-hep / uproot3

ROOT I/O in pure Python and NumPy.
BSD 3-Clause "New" or "Revised" License
314 stars 67 forks source link

Can't access some branches in MiniAOD #536

Closed yhs07128 closed 3 years ago

yhs07128 commented 3 years ago

I'm trying to read some branch

patMETs_slimmedMETs__PAT.obj.m_state.p4Polar_.Pt()

in MiniAOD, but uproot doesn't recognize it as a branch. If I do

event['patMETs_slimmedMETs__PAT.'].show()

it shows that the branch is not interpreted properly.

name | typename | interpretation
---------------------+--------------------------+------------------------------- patMETsslimmedMETs | edm::Wrapper<vector<pat: | AsGroup(<TBranchElement 'patMEpatMETs_slimmedME... | bool | AsDtype('bool') patMETs_slimmedME... | unknown | <UnknownInterpretation 'non...

There are multiple other branches with the same problem, but I'm not sure what's causing it.

tamasgal commented 3 years ago

Have you tried to read the file with uproot4? The new version is highly recommended and can easily be installed e.g. via pip install -U uproot.

Edit: just realised, it's uproot4 ;)

yhs07128 commented 3 years ago

Actually I'm using uproot4. Should move the issue.