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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 2508 of file plotting.py.

2508  def __init__(self, name, plot, ncols=2, onlyForPileup=False):
2509  super(PlotOnSideGroup, self).__init__(name, [], ncols=ncols, legend=False, onlyForPileup=onlyForPileup)
2510  self._plot = plot
2511  self._plot.setProperties(ratio=False)
2512 
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 2513 of file plotting.py.

Referenced by diclist.diclist.add().

2513  def append(self, *args, **kwargs):
2514  raise Exception("PlotOnSideGroup.append() is not implemented")
2515 

◆ create()

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

Definition at line 2516 of file plotting.py.

2516  def create(self, tdirectoryNEvents, requireAllHistograms=False):
2517  self._plots = []
2518  for i, element in enumerate(tdirectoryNEvents):
2519  pl = self._plot.clone()
2520  pl.create([element], requireAllHistograms)
2521  pl.setName(pl.getName()+"_"+str(i))
2522  self._plots.append(pl)
2523 
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 2524 of file plotting.py.

2524  def draw(self, *args, **kwargs):
2525  kargs = copy.copy(kwargs)
2526  kargs["ratio"] = False
2527  return super(PlotOnSideGroup, self).draw(*args, **kargs)
2528 
def draw(name, histos, styles=_defaultStyles, legendLabels=[], kwargs)

Member Data Documentation

◆ _plot

plotting.PlotOnSideGroup._plot
private

Definition at line 2510 of file plotting.py.

◆ _plots

plotting.PlotOnSideGroup._plots
private