CMS 3D CMS Logo

Functions
nanoDQM_tools_cff Namespace Reference

Functions

def Count1D (name, nbins, xmin, xmax, title="")
 
def NoPlot (name)
 
def Plot1D (name, column, nbins, xmin, xmax, title="", bitset=False)
 
def Profile1D (name, ycolumn, xcolumn, nbins, xmin, xmax, title="")
 
def shortDump (pset)
 

Function Documentation

◆ Count1D()

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

Definition at line 6 of file nanoDQM_tools_cff.py.

6 def Count1D(name, nbins, xmin, xmax, title=""):
7  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) )
8 
def Count1D(name, nbins, xmin, xmax, title="")

◆ NoPlot()

def nanoDQM_tools_cff.NoPlot (   name)

Definition at line 3 of file nanoDQM_tools_cff.py.

3 def NoPlot(name):
4  return cms.PSet( name = cms.string(name), kind = cms.string("none")) # name is actually a parameter that is not used in the code, but used in python for modifications
5 

◆ Plot1D()

def nanoDQM_tools_cff.Plot1D (   name,
  column,
  nbins,
  xmin,
  xmax,
  title = "",
  bitset = False 
)

Definition at line 9 of file nanoDQM_tools_cff.py.

9 def Plot1D(name, column, nbins, xmin, xmax, title="", bitset=False):
10  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), bitset=cms.bool(bitset) )
11 

◆ Profile1D()

def nanoDQM_tools_cff.Profile1D (   name,
  ycolumn,
  xcolumn,
  nbins,
  xmin,
  xmax,
  title = "" 
)

Definition at line 12 of file nanoDQM_tools_cff.py.

12 def Profile1D(name, ycolumn, xcolumn, nbins, xmin, xmax, title=""):
13  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) )
14 
def Profile1D(name, ycolumn, xcolumn, nbins, xmin, xmax, title="")

◆ shortDump()

def nanoDQM_tools_cff.shortDump (   pset)

Definition at line 15 of file nanoDQM_tools_cff.py.

15 def shortDump(pset):
16  kind = pset.kind.value()
17  if kind == "none":
18  return "NoPlot(%r)" % (pset.name.value())
19  elif kind == "count1d":
20  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 ""))
21  elif kind == "hist1d":
22  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 ""))
23  elif kind == "prof1d":
24  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 ""))
25 
26 
27