sherpa is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (/hepforge/svn/sherpa does not appear to be a Subversion repository.). Look in the Trac log for more information.
Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#248 closed enhancement (fixed)

Fastjet scale setter and selectors

Reported by: Generic User (don't modify these fields) Owned by: support@sherpa-mc.de
Priority: minor Milestone: rel-2.0.0
Component: Unknown Version: 1.4.0
Keywords: Cc:

Description

I couldn't find anywhere in Fastjet docs whether ClusterSequence::inclusive_jets output is guaranteed to be ordered in any defined way.

Examples in the manual and the source code suggest that one has to take care of it in the calling code. For instance it will be useful to have them sorted by p_t e.g.

std::vector<fastjet::PseudoJet> jets = fastjet::sorted_by_pt(cs.inclusive_jets());

(see attached patch for details)

In such case it will be possible to use FastjetSelector to add a cut on the hardest jet.

Attachments (1)

0001-Sort-jets-by-p_t.patch (1.8 KB) - added by Generic User (don't modify these fields) 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by Generic User (don't modify these fields)

Attachment: 0001-Sort-jets-by-p_t.patch added

comment:1 Changed 11 years ago by marek

Resolution: fixed
Status: newclosed

Thanks for the patch. It is implemented into the current trunk and will be in the next release.

comment:2 Changed 11 years ago by Frank Siegert

Milestone: rel-2.0.0

Modify Ticket

Change Properties
Action
as closed The owner will remain support@sherpa-mc.de.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.