Skip to content

Making subsamples from a single process and plotting them separately #413

Closed Answered by mafrahm
hephysicist asked this question in Q&A
Discussion options

You must be logged in to vote

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. The process_id column will then automatically be used to fill your different processes into…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mafrahm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants