CMS 3D CMS Logo

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

Functions

def createOffsetVPSet
 
def createTH1DVPSet
 
def plotPSet
 

Variables

tuple offsetAnalyzerDQM
 
tuple offsetDQMPostProcessor
 

Function Documentation

def offsetAnalyzerDQM_cff.createOffsetVPSet ( )

Definition at line 21 of file offsetAnalyzerDQM_cff.py.

References plotPSet(), and sistrip::SpyUtilities.range().

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

Definition at line 50 of file offsetAnalyzerDQM_cff.py.

References plotPSet().

50 
51 def createTH1DVPSet():
52  plots = []
53  #hname, title, xmax
54  toplot = ( ("mu", "#mu", default.muHighOffset), ("npv", "N_{PV}", default.npvHighOffset) )
55 
56  for hname, title, xmax in toplot :
57  plots += [ plotPSet(
58  hname,
59  hname + ";" + title,
60  default.offsetDir,
61  xmax, 0, xmax
62  )]
63  return plots
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 
7 def plotPSet(name, title, dir, nx, x0, x1, ny=0, y0=0, y1=0, vx=[0], vy=[0]):
8  return cms.PSet(
9  name = cms.string(name),
10  title = cms.string(title),
11  dir = cms.string(dir),
12  nx = cms.uint32(nx),
13  x0 = cms.double(x0),
14  x1 = cms.double(x1),
15  ny = cms.uint32(ny),
16  y0 = cms.double(y0),
17  y1 = cms.double(y1),
18  vx = cms.vdouble(vx),
19  vy = cms.vdouble(vy)
20  )

Variable Documentation

tuple offsetAnalyzerDQM_cff.offsetAnalyzerDQM
Initial value:
1 = DQMEDAnalyzer("OffsetAnalyzerDQM",
2 
3  pvTag = cms.InputTag('offlineSlimmedPrimaryVertices'),
4  muTag = cms.InputTag('slimmedAddPileupInfo'),
5  pfTag = cms.InputTag('packedPFCandidates'),
6 
7  pdgKeys = cms.vuint32( default.candidateDict.keys() ),
8  pdgStrs = cms.vstring( default.candidateDict.values() ),
9 
10  offsetPlotBaseName = cms.string(default.offsetPlotBaseName),
11  offsetPlots = cms.VPSet( createOffsetVPSet() ),
12  th1dPlots = cms.VPSet( createTH1DVPSet() ),
13 
14  pftypes = cms.vstring( default.candidateType ),
15  etabins = cms.vdouble( default.etaBinsOffset ),
16  muHigh = cms.untracked.int32( default.muHighOffset ),
17  npvHigh = cms.untracked.int32( default.npvHighOffset )
18 
19 )

Definition at line 64 of file offsetAnalyzerDQM_cff.py.

tuple offsetAnalyzerDQM_cff.offsetDQMPostProcessor
Initial value:
1 = DQMEDHarvester("OffsetDQMPostProcessor",
2 
3  offsetPlotBaseName = cms.string( default.offsetPlotBaseName ),
4  offsetDir = cms.string( default.offsetDir ),
5  offsetVariableTypes = cms.vstring( default.offsetVariableType ),
6  offsetR = cms.untracked.double( default.offsetR ),
7  pftypes = cms.vstring( default.candidateType ),
8  muHigh = cms.untracked.int32( default.muHighOffset ),
9  npvHigh = cms.untracked.int32( default.npvHighOffset )
10 
11 )

Definition at line 84 of file offsetAnalyzerDQM_cff.py.