-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Welcome to the PlotFactory wiki!
This should serve as a simple documentation for using the PlotFactory.
All plot scripts should be named as plot_nameoftheplot.py
After importing the module plotfactory.py, you will have access to the following functions:
makechain(allsamples): Returns a TChain object which either contains all samples (allsamples = True) or a selected sample (allsamples = False) with different displacements. Note to adapt the storage location of the ntuples (ntup_dir)
progressbar(count, total, status = ''): A simple progress bar tool for terminal output. The development of the progress bar maintains at one line. The progress is shown in % (% = count/total), including a status.
showlumi(title): This is a short text (title) appearing on the top left of the plot, usually showing the luminosity information. But can also be used to show the cut values. Usually do title = 'xxx fb^{-1} (xxx TeV)'
showlogo(): This will display 'CMS' on the top left of the plot
showlogopreliminary(): This will display 'CMS Preliminary' on the top left of the plot
setpfstyle(): Set all styles to pfstyle, which is based on CMS TDRStyle