CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions | Variables
offsetAnalyzerDQM_cff Namespace Reference

Functions

def createOffsetVPSet ()
 
def createTH1DVPSet ()
 
def plotPSet (name, title, dir, nx, x0, x1, ny=0, y0=0, y1=0, vx=[0], vy=[0])
 

Variables

 etabins
 
 muHigh
 
 muTag
 
 npvHigh
 
 offsetAnalyzerDQM
 
 offsetDir
 
 offsetDQMPostProcessor
 
 offsetPlotBaseName
 
 offsetPlots
 
 offsetR
 
 offsetVariableTypes
 
 pdgKeys
 
 pdgStrs
 
 pfTag
 
 pftypes
 
 pvTag
 
 th1dPlots
 

Function Documentation

◆ createOffsetVPSet()

def offsetAnalyzerDQM_cff.createOffsetVPSet ( )

Definition at line 21 of file offsetAnalyzerDQM_cff.py.

References plotPSet(), and FastTimerService_cff.range.

21 def createOffsetVPSet():
22  plots = []
23  murange = range( default.muLowOffset, default.muHighOffset )
24  npvrange = range( default.npvLowOffset, default.npvHighOffset )
25 
26  for pftype in default.candidateType :
27  for mu in murange :
28  name = default.offset_name( "mu", mu, pftype )
29  plots += [ plotPSet(
30  name,
31  name+";#eta;<Offset Energy_{T}> [GeV]",
32  "{0}muPlots/mu{1}".format(default.offsetDir, mu),
33  #variable xbinning
34  0, 0, 0, default.eBinsOffset, default.eLowOffset, default.eHighOffset,
35  default.etaBinsOffset
36  )]
37 
38  for npv in npvrange :
39  name = default.offset_name( "npv", npv, pftype )
40  plots += [ plotPSet(
41  name,
42  name+";#eta;<Offset Energy_{T}> [GeV]",
43  "{0}npvPlots/npv{1}".format(default.offsetDir, npv),
44  #variable xbinning
45  0, 0, 0, default.eBinsOffset, default.eLowOffset, default.eHighOffset,
46  default.etaBinsOffset
47  )]
48  return plots
49 
def plotPSet(name, title, dir, nx, x0, x1, ny=0, y0=0, y1=0, vx=[0], vy=[0])

◆ createTH1DVPSet()

def offsetAnalyzerDQM_cff.createTH1DVPSet ( )

Definition at line 50 of file offsetAnalyzerDQM_cff.py.

References plotPSet().

50 def createTH1DVPSet():
51  plots = []
52  #hname, title, xmax
53  toplot = ( ("mu", "#mu", 0, default.muHighOffset), ("npv", "N_{PV}", 0, default.npvHighOffset),
54  ("pv_z", "z_{PV}", -default.pvzHighOffset, default.pvzHighOffset))
55 
56  for hname, title, xmin, xmax in toplot :
57  plots += [ plotPSet(
58  hname,
59  hname + ";" + title,
60  default.offsetDir,
61  xmax-xmin, xmin, xmax
62  )]
63  return plots
64 
def plotPSet(name, title, dir, nx, x0, x1, ny=0, y0=0, y1=0, vx=[0], vy=[0])

◆ plotPSet()

def offsetAnalyzerDQM_cff.plotPSet (   name,
  title,
  dir,
  nx,
  x0,
  x1,
  ny = 0,
  y0 = 0,
  y1 = 0,
  vx = [0],
  vy = [0] 
)

Definition at line 6 of file offsetAnalyzerDQM_cff.py.

Referenced by createOffsetVPSet(), and createTH1DVPSet().

6 def plotPSet(name, title, dir, nx, x0, x1, ny=0, y0=0, y1=0, vx=[0], vy=[0]):
7  return cms.PSet(
8  name = cms.string(name),
9  title = cms.string(title),
10  dir = cms.string(dir),
11  nx = cms.uint32(nx),
12  x0 = cms.double(x0),
13  x1 = cms.double(x1),
14  ny = cms.uint32(ny),
15  y0 = cms.double(y0),
16  y1 = cms.double(y1),
17  vx = cms.vdouble(vx),
18  vy = cms.vdouble(vy)
19  )
20 
def plotPSet(name, title, dir, nx, x0, x1, ny=0, y0=0, y1=0, vx=[0], vy=[0])

Variable Documentation

◆ etabins

offsetAnalyzerDQM_cff.etabins

Definition at line 79 of file offsetAnalyzerDQM_cff.py.

◆ muHigh

offsetAnalyzerDQM_cff.muHigh

Definition at line 80 of file offsetAnalyzerDQM_cff.py.

◆ muTag

offsetAnalyzerDQM_cff.muTag

Definition at line 68 of file offsetAnalyzerDQM_cff.py.

Referenced by l1t::L1TGlobalAnalyzer.L1TGlobalAnalyzer().

◆ npvHigh

offsetAnalyzerDQM_cff.npvHigh

Definition at line 81 of file offsetAnalyzerDQM_cff.py.

◆ offsetAnalyzerDQM

offsetAnalyzerDQM_cff.offsetAnalyzerDQM

Definition at line 65 of file offsetAnalyzerDQM_cff.py.

◆ offsetDir

offsetAnalyzerDQM_cff.offsetDir

Definition at line 88 of file offsetAnalyzerDQM_cff.py.

◆ offsetDQMPostProcessor

offsetAnalyzerDQM_cff.offsetDQMPostProcessor

Definition at line 85 of file offsetAnalyzerDQM_cff.py.

◆ offsetPlotBaseName

offsetAnalyzerDQM_cff.offsetPlotBaseName

Definition at line 74 of file offsetAnalyzerDQM_cff.py.

◆ offsetPlots

offsetAnalyzerDQM_cff.offsetPlots

Definition at line 75 of file offsetAnalyzerDQM_cff.py.

◆ offsetR

offsetAnalyzerDQM_cff.offsetR

Definition at line 90 of file offsetAnalyzerDQM_cff.py.

◆ offsetVariableTypes

offsetAnalyzerDQM_cff.offsetVariableTypes

Definition at line 89 of file offsetAnalyzerDQM_cff.py.

◆ pdgKeys

offsetAnalyzerDQM_cff.pdgKeys

◆ pdgStrs

offsetAnalyzerDQM_cff.pdgStrs

◆ pfTag

offsetAnalyzerDQM_cff.pfTag

Definition at line 69 of file offsetAnalyzerDQM_cff.py.

◆ pftypes

offsetAnalyzerDQM_cff.pftypes

Definition at line 78 of file offsetAnalyzerDQM_cff.py.

◆ pvTag

offsetAnalyzerDQM_cff.pvTag

Definition at line 67 of file offsetAnalyzerDQM_cff.py.

Referenced by MuonIdProducer.MuonIdProducer().

◆ th1dPlots

offsetAnalyzerDQM_cff.th1dPlots

Definition at line 76 of file offsetAnalyzerDQM_cff.py.