Open dally96 opened 1 year ago
The 3 extra particles I'm seeing are electrons. They are somehow removed from the selection with this line of code
if(processed_particles.count(genPart_idx)) continue;
I'm not sure what this means; I was under the assumption that this condition was used to make sure we didn't loop over the same particles twice. Once I understand this condition, then I'll see how to apply it in my code.
Finally, Mykyta and I have synched our cutflows where our selections on taus are the same, but our selections on jets are very slightly different. Without the lepton veto, it was a one jet difference. With the lepton veto, it's a two jet difference.
On the subject of lepton veto, I was able to recreate the GenLepton collection by picking out the (charged) leptons from the GenParticle collection and choosing the ones that have the statusFlags isPrompt() and isFirstCopy(). I checked kinematics against each other and they agree. However, I have 3 more particles when I do it. I need to check why they appear in my version of the GenLepton collection.