CMS 3D CMS Logo

Public Member Functions | Public Attributes

listHistos::plotInfo Class Reference

List of all members.

Public Member Functions

def __init__

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

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 10 of file listHistos.py.

00016                                                                                 :
00017         self.name = name #name of the histos without postfix as PT/ETA bin or flavor
00018         self.title = title #title of the histograms : better if specific for the histogram
00019         self.legend = legend #legend name, if contain 'KEY', it will be replace by the list of keys you provide (as flavor, tagger ...)
00020         self.Xlabel = Xlabel #label of the X axis
00021         self.Ylabel = Ylabel #label of the Y axis
00022         self.logY = logY #if True : Y axis will be in log scale
00023         self.grid = grid #if True : a grid will be drawn
00024         self.binning = binning #if you want to change the binning put a list with [nBins,xmin,xmax]
00025         self.Rebin = Rebin #if you want to rebin the histos
00026         self.doNormalization = doNormalization #if you want to normalize to 1 all the histos 
00027         self.doPerformance = doPerformance #if you want to draw the performance as TGraph
00028         if self.doPerformance : 
00029             #replace TAG by the tag flavor choosen (B, C, UDSG ...)
00030             self.title = name.replace("TAG",tagFlavor)
00031             self.Xlabel = Xlabel.replace("TAG",tagFlavor)
00032             self.Ylabel = Ylabel.replace("TAG",tagFlavor)
00033             self.legend = legend.replace("TAG",tagFlavor)
00034             self.tagFlavor = tagFlavor
00035             self.mistagFlavor = mistagFlavor
00036         if listTagger is None :
00037             self.listTagger=None #you will take the list of tagger defined centrally
00038         else :
00039             self.listTagger=listTagger #you take the list passed as argument
00040 #define here the histograms you interested by
#by jets

Member Data Documentation

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.

Definition at line 10 of file listHistos.py.