Making subsamples from a single process and plotting them separately #413
-
Hi all! Best, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @hephysicist, I already wrote some code to create categories based on the number of gen-level particles by simply counting the number of pdgIds of particles from the hard-scatter process, maybe this is helpful for you: https://github.com/uhh-cms/hh2bbww/blob/master/hbw/selection/categories.py#L30-L90 But I think, in your case it makes more sense to define sub-processes for your dataset. At the moment, we just store the same id per dataset for each event in our I hope these points are helpful to you. I have not yet tried to implement sub-processes, so there might be some more caveats. Maybe @riga can add more to the discussion. Best |
Beta Was this translation helpful? Give feedback.
-
Since this is answered, I'll close the discussion at this point |
Beta Was this translation helpful? Give feedback.
Hi @hephysicist, I already wrote some code to create categories based on the number of gen-level particles by simply counting the number of pdgIds of particles from the hard-scatter process, maybe this is helpful for you: https://github.com/uhh-cms/hh2bbww/blob/master/hbw/selection/categories.py#L30-L90
But I think, in your case it makes more sense to define sub-processes for your dataset. At the moment, we just store the same id per dataset for each event in our
process_ids
Producer, but you could write a Producer that produces different ids based on e.g. the number of prompt electrons/muons/taus. Theprocess_id
column will then automatically be used to fill your different processes into…