CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Attributes
plotting.PlotOnSideGroup Class Reference
Inheritance diagram for plotting.PlotOnSideGroup:
plotting.PlotGroup

Public Member Functions

def __init__ (self, name, plot, ncols=2, onlyForPileup=False)
 
def append (self, *args, **kwargs)
 
def create (self, tdirectoryNEvents, requireAllHistograms=False)
 
def draw (self, *args, **kwargs)
 
- Public Member Functions inherited from plotting.PlotGroup
def __init__ (self, name, plots, **kwargs)
 
def append (self, plot)
 
def clear (self)
 
def draw (self, legendLabels, prefix=None, separate=False, saveFormat=".pdf", ratio=True, directory="")
 
def getName (self)
 
def getPlot (self, name)
 
def getPlots (self)
 
def onlyForPileup (self)
 
def remove (self, name)
 
def setProperties (self, **kwargs)
 

Private Attributes

 _plot
 
 _plots
 

Detailed Description

Resembles DQM GUI's "On side" layout.

Like PlotGroup, but has only a description of a single plot. The
plot is drawn separately for each file. Useful for 2D histograms.

Definition at line 2516 of file plotting.py.

Constructor & Destructor Documentation

◆ __init__()

def plotting.PlotOnSideGroup.__init__ (   self,
  name,
  plot,
  ncols = 2,
  onlyForPileup = False 
)

Definition at line 2522 of file plotting.py.

2522  def __init__(self, name, plot, ncols=2, onlyForPileup=False):
2523  super(PlotOnSideGroup, self).__init__(name, [], ncols=ncols, legend=False, onlyForPileup=onlyForPileup)
2524  self._plot = plot
2525  self._plot.setProperties(ratio=False)
2526 

Member Function Documentation

◆ append()

def plotting.PlotOnSideGroup.append (   self,
args,
**  kwargs 
)

Definition at line 2527 of file plotting.py.

2527  def append(self, *args, **kwargs):
2528  raise Exception("PlotOnSideGroup.append() is not implemented")
2529 

Referenced by diclist.diclist.add().

◆ create()

def plotting.PlotOnSideGroup.create (   self,
  tdirectoryNEvents,
  requireAllHistograms = False 
)
Create histograms from a list of TDirectories.

Arguments:
tdirectoryNEvents    -- List of (TDirectory, nevents) pairs
requireAllHistograms -- If True, a plot is produced if histograms from all files are present (default: False)

Reimplemented from plotting.PlotGroup.

Definition at line 2530 of file plotting.py.

2530  def create(self, tdirectoryNEvents, requireAllHistograms=False):
2531  self._plots = []
2532  for element in tdirectoryNEvents:
2533  pl = self._plot.clone()
2534  pl.create([element], requireAllHistograms)
2535  self._plots.append(pl)
2536 

◆ draw()

def plotting.PlotOnSideGroup.draw (   self,
args,
**  kwargs 
)

Definition at line 2537 of file plotting.py.

2537  def draw(self, *args, **kwargs):
2538  kargs = copy.copy(kwargs)
2539  kargs["ratio"] = False
2540  kargs["separate"] = False
2541  return super(PlotOnSideGroup, self).draw(*args, **kargs)
2542 

Member Data Documentation

◆ _plot

plotting.PlotOnSideGroup._plot
private

Definition at line 2524 of file plotting.py.

◆ _plots

plotting.PlotOnSideGroup._plots
private
ntuplePlotting.draw
def draw(name, histos, styles=_defaultStyles, legendLabels=[], **kwargs)
Definition: ntuplePlotting.py:25
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition: beamerCreator.py:44
clone
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
Exception
mps_setup.append
append
Definition: mps_setup.py:85