CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
nanoDQM_tools_cff Namespace Reference

Functions

def Count1D
 
def NoPlot
 
def Plot1D
 
def Profile1D
 
def shortDump
 

Function Documentation

def nanoDQM_tools_cff.Count1D (   name,
  nbins,
  xmin,
  xmax,
  title = "" 
)

Definition at line 6 of file nanoDQM_tools_cff.py.

6 
7 def Count1D(name, nbins, xmin, xmax, title=""):
8  return cms.PSet( name = cms.string(name), kind = cms.string("count1d"), nbins = cms.uint32(nbins), min = cms.double(xmin), max = cms.double(xmax), title = cms.string(title) )
def nanoDQM_tools_cff.NoPlot (   name)

Definition at line 3 of file nanoDQM_tools_cff.py.

3 
4 def NoPlot(name):
5  return cms.PSet( name = cms.string(name), kind = cms.string("none"))
def nanoDQM_tools_cff.Plot1D (   name,
  column,
  nbins,
  xmin,
  xmax,
  title = "" 
)

Definition at line 9 of file nanoDQM_tools_cff.py.

9 
10 def Plot1D(name, column, nbins, xmin, xmax, title=""):
11  return cms.PSet( name = cms.string(name), kind = cms.string("hist1d"), column = cms.string(column), nbins = cms.uint32(nbins), min = cms.double(xmin), max = cms.double(xmax), title = cms.string(title) )
def nanoDQM_tools_cff.Profile1D (   name,
  ycolumn,
  xcolumn,
  nbins,
  xmin,
  xmax,
  title = "" 
)

Definition at line 12 of file nanoDQM_tools_cff.py.

12 
13 def Profile1D(name, ycolumn, xcolumn, nbins, xmin, xmax, title=""):
14  return cms.PSet( name = cms.string(name), kind = cms.string("prof1d"), ycolumn = cms.string(ycolumn), xcolumn = cms.string(xcolumn), nbins = cms.uint32(nbins), min = cms.double(xmin), max = cms.double(xmax), title = cms.string(title) )
def nanoDQM_tools_cff.shortDump (   pset)

Definition at line 15 of file nanoDQM_tools_cff.py.

15 
16 def shortDump(pset):
17  kind = pset.kind.value()
18  if kind == "none":
19  return "NoPlot(%r)" % (pset.name.value())
20  elif kind == "count1d":
21  return ("Count1D(%r, %d, %g, %g%s)" % (pset.name.value(), pset.nbins.value(), pset.min.value(), pset.max.value(), ", %r" % pset.title.value() if pset.title.value() else ""))
22  elif kind == "hist1d":
23  return ("Plot1D(%r, %r, %d, %g, %g%s)" % (pset.name.value(), pset.column.value(), pset.nbins.value(), pset.min.value(), pset.max.value(), ", %r" % pset.title.value() if pset.title.value() else ""))
24  elif kind == "prof1d":
25  return ("Profile1D(%r, %r, %r, %d, %g, %g%s)" % (pset.name.value(), pset.ycolumn.value(), pset.xcolumn.value(), pset.nbins.value(), pset.min.value(), pset.max.value(), ", %r" % pset.title.value() if pset.title.value() else ""))
26 
27