iris-hep / func_adl_xAOD

Client interface to send a hierarchical SQL-like query to an xAOD backend
0 stars 5 forks source link

Demo code for TruthParticles fails #206

Open gordonwatts opened 1 year ago

gordonwatts commented 1 year ago

This may well be a problem in the type info sent down the wire, not here. But this is straight from the xaod_usage and I'm seeing:

all_particles = (ds_dijet
                 .SelectMany(lambda e: e.TruthParticles("TruthParticles"))
                 .Where(lambda tp: (tp.pt() / 1000) > 10)
                 .Select(lambda tp: {
                         'pt': tp.pt() / 1000.0,
                         'pdgId': abs(tp.pdgId()),
                 })
                 .AsAwkwardArray()
                 .value())

And I'm seeing two errors:

Method pdgId not found on object <class 'func_adl_servicex_xaodr21.xAOD.jet_v1.Jet_v1'>

And a crash (probably during C++ compilation).

gordonwatts commented 1 year ago

The "jet_v1" error I can't reproduce - even where it first happened.

The basic crash doesn't happen locally - only when running on the UChicago AF. Even with what I think are the same package versions. So created a small sample script and waiting now for someone from UChicago to capture the logs.