Skip to content

Demo code for TruthParticles fails #206

Open
@gordonwatts

Description

@gordonwatts

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).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions