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 create (self, tdirectoryNEvents, requireAllHistograms=False)
 
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 2524 of file plotting.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 2530 of file plotting.py.

2530  def __init__(self, name, plot, ncols=2, onlyForPileup=False):
2531  super(PlotOnSideGroup, self).__init__(name, [], ncols=ncols, legend=False, onlyForPileup=onlyForPileup)
2532  self._plot = plot
2533  self._plot.setProperties(ratio=False)
2534 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ append()

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

Definition at line 2535 of file plotting.py.

Referenced by diclist.diclist.add().

2535  def append(self, *args, **kwargs):
2536  raise Exception("PlotOnSideGroup.append() is not implemented")
2537 

◆ create()

def plotting.PlotOnSideGroup.create (   self,
  tdirectoryNEvents,
  requireAllHistograms = False 
)

Definition at line 2538 of file plotting.py.

2538  def create(self, tdirectoryNEvents, requireAllHistograms=False):
2539  self._plots = []
2540  for i, element in enumerate(tdirectoryNEvents):
2541  pl = self._plot.clone()
2542  pl.create([element], requireAllHistograms)
2543  pl.setName(pl.getName()+"_"+str(i))
2544  self._plots.append(pl)
2545 
def create(alignables, pedeDump, additionalData, outputFile, config)
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
#define str(s)

◆ draw()

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

Definition at line 2546 of file plotting.py.

2546  def draw(self, *args, **kwargs):
2547  kargs = copy.copy(kwargs)
2548  kargs["ratio"] = False
2549  return super(PlotOnSideGroup, self).draw(*args, **kargs)
2550 
def draw(name, histos, styles=_defaultStyles, legendLabels=[], kwargs)

Member Data Documentation

◆ _plot

plotting.PlotOnSideGroup._plot
private

Definition at line 2532 of file plotting.py.

◆ _plots

plotting.PlotOnSideGroup._plots
private