CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
listHistos.plotInfo Class Reference

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

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

Member Data Documentation

listHistos.plotInfo.binning

Definition at line 23 of file listHistos.py.

listHistos.plotInfo.doNormalization

Definition at line 25 of file listHistos.py.

listHistos.plotInfo.doPerformance

Definition at line 26 of file listHistos.py.

listHistos.plotInfo.grid

Definition at line 22 of file listHistos.py.

listHistos.plotInfo.legend

Definition at line 18 of file listHistos.py.

listHistos.plotInfo.listTagger

Definition at line 36 of file listHistos.py.

listHistos.plotInfo.logY

Definition at line 21 of file listHistos.py.

listHistos.plotInfo.mistagFlavor

Definition at line 34 of file listHistos.py.

listHistos.plotInfo.name

Definition at line 16 of file listHistos.py.

Referenced by config.CFG.__str__(), geometryComparison.GeometryComparison.createScript(), validation.Sample.digest(), primaryVertexResolution.PrimaryVertexResolution.getRepMap(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), zMuMuValidation.ZMuMuValidation.getRepMap(), and VIDSelectorBase.VIDSelectorBase.initialize().

listHistos.plotInfo.Rebin

Definition at line 24 of file listHistos.py.

listHistos.plotInfo.tagFlavor

Definition at line 33 of file listHistos.py.

listHistos.plotInfo.title

Definition at line 17 of file listHistos.py.

listHistos.plotInfo.Xlabel

Definition at line 19 of file listHistos.py.

listHistos.plotInfo.Ylabel

Definition at line 20 of file listHistos.py.