Skip to content

Access constituents corresponding to pT ordered jets? #320

Answered by lgray
qibin2020 asked this question in Q&A
Discussion options

You must be logged in to vote
constituents = ak.Array(cluster.constituents(), behavior=vector.backends.awkward.behavior, with_name="Momentum4D")
pt_idx = ak.argsort(constituents.pt, ascending=False) # highest pT first for each jet
pt_constituents = constituents[pt_idx]

is another solution.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@qibin2020
Comment options

@lgray
Comment options

Answer selected by qibin2020
@qibin2020
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants