Skip to content

Preselection: Tool for making data/MC plots #3

@sam-may

Description

@sam-may

Implement script (e.g. make_plots.py) that takes a dataframe (output from the looper) as input and makes various plots.

Ideal configurable options:

  • Input dataframe
  • Type of plot: data/MC plot OR shape comparison
  • Linear vs. log axis (hopefully the script also calculates reasonable axis ranges)
  • Include/don't include ratio pad
  • List of variables to make plots for. For this, a json file is my first idea at making this easily configurable. Can contain a list of variables along with relevant data for each (binning, axis limits, additional text to print on plot, etc)

Configurable options for data/MC plots:

  • List of samples to consider as backgrounds (plot these as stacked histograms)
  • List of samples to consider as signals (plot these as solid lines)
  • Normalization of background: scale by lumi or scale total background to data

I know there are many different plotting packages already out there, and I am relatively ignorant about them, so please comment if you have one in mind that is the best/most user-friendly/etc. These would probably be a good starting point for the script and might save a majority of the work.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions