Using only final particle in jet clustering algorithms

Hi people!

I’m trying to use the jet clustering algorithms using MC particles, I can run the algorithms by referring to other examples, but I can’t find any command to filter the particles I want to use for jet clustering in the analysis.py file. Is there a way that I can use only final particles (status = 1) as inputs in the clustering algos while running analysis.py? Or is the only way to do it is to loop over the jet constituents and keep only the final particles?
Without any interference, my jets have all the particles and therefore energies and momenta far exceeding the logical limits.
Any help is appreciated. Thank you :slight_smile:

Cheers,
Kunal

1 Like

hello,

I believe this is what you need:

Best,
Clement

1 Like

Hi Clement,

This worked perfectly. Thank you so much.

Cheers,
Kunal