Skip to content
Klaas Padeken edited this page Sep 11, 2017 · 1 revision

The tree functionality is build in the plotlib part of the code. If you have a HistStorage or a HistStorageContainer you can get the plots the same way you get the histograms from trees. Instead of getting a histogram

histContainer.getHist("someFolder/MT")

You have to specify a bit more:

histContainer.getHistFromTree(binns,xmin,xmax,xtitle,cut,value,tree,weight=None)
histContainer.getHistFromTree(3000,0,3000,r"$\mathsf{\frac{p_{T}}{E_{T}^{miss}}}$","(pt>40 &&
mt<100)*wgt","tau1_pt/met","TauTauTree")

So it might be easier you put the arguments in a list, and call it with a generic arguments.

Clone this wiki locally