Is there a way to get the constituent indices of subjets with array-based interface? #100
-
Hi all, excellent work on this python interface! I was wondering if there's a way to get the constituent indices of the subjets using the array-based interface. For example, I have an awkward array of constituents corresponding to a jet clustered with anti-kT R=0.8. I can recluster them with the same algorithm (resulting in 1 jet as expected), and then get subjets with It seems there may be a way to do it with the object-based approach (because each Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
If I remember right, |
Beta Was this translation helpful? Give feedback.
-
Hi @jmduarte, sorry for the late reply. You are right, If so, there is no way of doing that with this interface right now. However, it can be easily implemented the same way As @jpivarski mentioned, we were not too familiar with jet-finding, hence we only implemented the already available functions (and a few derivative ones) to get the first working version. These few implementations can easily serve as templates to add whatever functionality a user wants without much trouble. |
Beta Was this translation helpful? Give feedback.
Hi @jmduarte, sorry for the late reply. You are right,
cluster.constituent_index()
returns the constituents of the inclusive jets. As for your problem, in the C++ version, I presume that once you get the vector of PseudoJet objects from thecluster.exclusive_subjets()
function call, you would go through each of them doing thePseudoJet.constituents()
function call on each object to get what you want?If so, there is no way of doing that with this interface right now. However, it can be easily implemented the same way
cluster.constituent_index()
was implemented for inclusive jets.As @jpivarski mentioned, we were not too familiar with jet-finding, hence we only implemented the already avai…