CMS 3D CMS Logo

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 2518 of file plotting.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 2524 of file plotting.py.

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

Member Function Documentation

◆ append()

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

Definition at line 2529 of file plotting.py.

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

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 2532 of file plotting.py.

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

◆ draw()

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

Definition at line 2539 of file plotting.py.

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

Member Data Documentation

◆ _plot

plotting.PlotOnSideGroup._plot
private

Definition at line 2526 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