CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
listHistos.plotInfo Class Reference

Public Member Functions

def __init__ (self, name, title, legend="", Xlabel="", Ylabel="", logY=False, grid=False, binning=None, Rebin=None, doNormalization=False, listTagger=None, doPerformance=False, tagFlavor="B", mistagFlavor=["C", DUSG)
 

Public Attributes

 binning
 
 doNormalization
 
 doPerformance
 
 grid
 
 legend
 
 listTagger
 
 logY
 
 mistagFlavor
 
 name
 
 Rebin
 
 tagFlavor
 
 title
 
 Xlabel
 
 Ylabel
 

Detailed Description

Definition at line 9 of file listHistos.py.

Constructor & Destructor Documentation

◆ __init__()

def listHistos.plotInfo.__init__ (   self,
  name,
  title,
  legend = "",
  Xlabel = "",
  Ylabel = "",
  logY = False,
  grid = False,
  binning = None,
  Rebin = None,
  doNormalization = False,
  listTagger = None,
  doPerformance = False,
  tagFlavor = "B",
  mistagFlavor = ["C",
  DUSG 
)

Definition at line 15 of file listHistos.py.

15  doPerformance=False, tagFlavor="B", mistagFlavor=["C","DUSG"]):
16  self.name = name #name of the histos without postfix as PT/ETA bin or flavor
17  self.title = title #title of the histograms : better if specific for the histogram
18  self.legend = legend #legend name, if contain 'KEY', it will be replace by the list of keys you provide (as flavor, tagger ...)
19  self.Xlabel = Xlabel #label of the X axis
20  self.Ylabel = Ylabel #label of the Y axis
21  self.logY = logY #if True : Y axis will be in log scale
22  self.grid = grid #if True : a grid will be drawn
23  self.binning = binning #if you want to change the binning put a list with [nBins,xmin,xmax]
24  self.Rebin = Rebin #if you want to rebin the histos
25  self.doNormalization = doNormalization #if you want to normalize to 1 all the histos
26  self.doPerformance = doPerformance #if you want to draw the performance as TGraph
27  if self.doPerformance :
28  #replace TAG by the tag flavor choosen (B, C, UDSG ...)
29  self.title = name.replace("TAG",tagFlavor)
30  self.Xlabel = Xlabel.replace("TAG",tagFlavor)
31  self.Ylabel = Ylabel.replace("TAG",tagFlavor)
32  self.legend = legend.replace("TAG",tagFlavor)
33  self.tagFlavor = tagFlavor
34  self.mistagFlavor = mistagFlavor
35  if listTagger is None :
36  self.listTagger=None #you will take the list of tagger defined centrally
37  else :
38  self.listTagger=listTagger #you take the list passed as argument
39 #define here the histograms you interested by
40 #by jets

Member Data Documentation

◆ binning

listHistos.plotInfo.binning

Definition at line 23 of file listHistos.py.

◆ doNormalization

listHistos.plotInfo.doNormalization

Definition at line 25 of file listHistos.py.

◆ doPerformance

listHistos.plotInfo.doPerformance

Definition at line 26 of file listHistos.py.

◆ grid

listHistos.plotInfo.grid

Definition at line 22 of file listHistos.py.

◆ legend

listHistos.plotInfo.legend

Definition at line 18 of file listHistos.py.

◆ listTagger

listHistos.plotInfo.listTagger

Definition at line 36 of file listHistos.py.

◆ logY

listHistos.plotInfo.logY

Definition at line 21 of file listHistos.py.

◆ mistagFlavor

listHistos.plotInfo.mistagFlavor

Definition at line 34 of file listHistos.py.

◆ name

listHistos.plotInfo.name

◆ Rebin

listHistos.plotInfo.Rebin

Definition at line 24 of file listHistos.py.

◆ tagFlavor

listHistos.plotInfo.tagFlavor

Definition at line 33 of file listHistos.py.

◆ title

listHistos.plotInfo.title

Definition at line 17 of file listHistos.py.

◆ Xlabel

listHistos.plotInfo.Xlabel

Definition at line 19 of file listHistos.py.

◆ Ylabel

listHistos.plotInfo.Ylabel

Definition at line 20 of file listHistos.py.