-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
import uproot
import dask_awkward as dak
events = uproot.dask({"../coffea/tests/samples/nano_dy.root": "Events"})
lep = dak.concatenate([events.Electron_pt, events.Muon_pt], axis=0)
dak.necessary_columns(lep)is going to report {'from-uproot-b2a53b89a3ce65faacb366f71b586347': frozenset({'Electron_pt'})}. It should have touched Muon_pt as well.
In the coffea world, the reproducer is
from coffea.nanoevents import NanoEventsFactory
import dask_awkward as dak
events = NanoEventsFactory.from_root({"../coffea/tests/samples/nano_dy.root": "Events"}, mode="dask").events()
lep = dak.concatenate([events.Electron.pt, events.Muon.pt], axis=0)
dak.necessary_columns(lep)will report
{'from-uproot-327f1c37d0df7f06bac57dc64222280c': frozenset({'Electron_pt',
'nElectron',
'nMuon'})}
so it touches only the shape of the muons but not the data.
If you concatenate the whole objects and not just the pt:
from coffea.nanoevents import NanoEventsFactory
import dask_awkward as dak
events = NanoEventsFactory.from_root({"../coffea/tests/samples/nano_dy.root": "Events"}, mode="dask").events()
lep = dak.concatenate([events.Electron, events.Muon], axis=0)
dak.necessary_columns(lep)will give you
{'from-uproot-327f1c37d0df7f06bac57dc64222280c': frozenset({'Electron_charge',
'Electron_cleanmask',
'Electron_convVeto',
'Electron_cutBased',
'Electron_cutBased_Fall17_V1',
'Electron_cutBased_HEEP',
'Electron_deltaEtaSC',
'Electron_dr03EcalRecHitSumEt',
'Electron_dr03HcalDepth1TowerSumEt',
'Electron_dr03TkSumPt',
'Electron_dr03TkSumPtHEEP',
'Electron_dxy',
'Electron_dxyErr',
'Electron_dz',
'Electron_dzErr',
'Electron_eCorr',
'Electron_eInvMinusPInv',
'Electron_energyErr',
'Electron_eta',
'Electron_genPartFlav',
'Electron_genPartIdx',
'Electron_hoe',
'Electron_ip3d',
'Electron_isPFcand',
'Electron_jetIdx',
'Electron_jetPtRelv2',
'Electron_jetRelIso',
'Electron_lostHits',
'Electron_mass',
'Electron_miniPFRelIso_all',
'Electron_miniPFRelIso_chg',
'Electron_mvaFall17V1Iso',
'Electron_mvaFall17V1Iso_WP80',
'Electron_mvaFall17V1Iso_WP90',
'Electron_mvaFall17V1Iso_WPL',
'Electron_mvaFall17V1noIso',
'Electron_mvaFall17V1noIso_WP80',
'Electron_mvaFall17V1noIso_WP90',
'Electron_mvaFall17V1noIso_WPL',
'Electron_mvaFall17V2Iso',
'Electron_mvaFall17V2Iso_WP80',
'Electron_mvaFall17V2Iso_WP90',
'Electron_mvaFall17V2Iso_WPL',
'Electron_mvaFall17V2noIso',
'Electron_mvaFall17V2noIso_WP80',
'Electron_mvaFall17V2noIso_WP90',
'Electron_mvaFall17V2noIso_WPL',
'Electron_mvaTTH',
'Electron_pdgId',
'Electron_pfRelIso03_all',
'Electron_pfRelIso03_chg',
'Electron_phi',
'Electron_photonIdx',
'Electron_pt',
'Electron_r9',
'Electron_seedGain',
'Electron_sieie',
'Electron_sip3d',
'Electron_tightCharge',
'Electron_vidNestedWPBitmap',
'Electron_vidNestedWPBitmapHEEP',
'nElectron',
'nGenPart',
'nJet',
'nMuon',
'nPhoton'})}
So it touches all the electron branches properly and then it touches the shape of genpart, jet, muon and photon somehow? I guess probably due to the global indexes between all of those perhaps but it doesn't touch the muon data at all.
Metadata
Metadata
Assignees
Labels
No labels