Skip to content

DesyTau/PlottingTool

Repository files navigation

PlottingTool

The root macro Plot.C loop over all the (nested)(sub)TDirectories inside a root file which name is passed as argument (see xAlberto_wPUwLepSF_htt_mt.inputs-sm-13TeV-histos.root as example),when a directory with a TH1 inside is found the function plot_hist() plots the histograms found in the directory, then the macro will continue to loop over the other directories.

Arguments: filename, (mandatory, name of the root file with the histogram) channel name, (optional, passed as a Latex string e.g. "#mu#tau#", default: "#mu#tau#"")
output directory name (optional, if passed all the output directories will be put in a new directory with whis name)

WARNING: the directories with the TH1s have to be the most nested ones, i.e. with no other subdirectories (see the example file).

Auxiliary functions definitions are at the bottom

OUTPUT: the macro will create directories named "output_"+ /name of the directories with inside the variables subdirectories/ and then put the plots and the latex tables inside these directories. There is an overwrite control with the following options:

  1. Overwrite file
  2. Overwrite ALL
  3. Rename old file
  4. Rename ALL
  5. Abort This question is asked to the user only when the macro already find an output file.

Example of utilize (over the example file):

root -l -b -q 'Plot.C("xAlberto_wPUwLepSF_htt_mt.inputs-sm-13TeV-histos.root")'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published