1 import FWCore.ParameterSet.Config
as cms
2 import Validation.RecoParticleFlow.defaults_cfi
as default
3 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
4 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
6 def plotPSet(name, title, dir, nx, x0, x1, ny=0, y0=0, y1=0, vx=[0], vy=[0]):
8 name = cms.string(name),
9 title = cms.string(title),
10 dir = cms.string(dir),
23 murange =
range( default.muLowOffset, default.muHighOffset )
24 npvrange =
range( default.npvLowOffset, default.npvHighOffset )
26 for pftype
in default.candidateType :
28 name = default.offset_name(
"mu", mu, pftype )
31 name+
";#eta;<Offset Energy_{T}> [GeV]",
32 "{0}muPlots/mu{1}".
format(default.offsetDir, mu),
34 0, 0, 0, default.eBinsOffset, default.eLowOffset, default.eHighOffset,
39 name = default.offset_name(
"npv", npv, pftype )
42 name+
";#eta;<Offset Energy_{T}> [GeV]",
43 "{0}npvPlots/npv{1}".
format(default.offsetDir, npv),
45 0, 0, 0, default.eBinsOffset, default.eLowOffset, default.eHighOffset,
53 toplot = ( (
"mu",
"#mu", default.muHighOffset), (
"npv",
"N_{PV}", default.npvHighOffset) )
55 for hname, title, xmax
in toplot :
66 pvTag = cms.InputTag(
'offlineSlimmedPrimaryVertices'),
67 muTag = cms.InputTag(
'slimmedAddPileupInfo'),
68 pfTag = cms.InputTag(
'packedPFCandidates'),
70 pdgKeys = cms.vuint32( default.candidateDict.keys() ),
71 pdgStrs = cms.vstring( default.candidateDict.values() ),
73 offsetPlotBaseName = cms.string(default.offsetPlotBaseName),
77 pftypes = cms.vstring( default.candidateType ),
78 etabins = cms.vdouble( default.etaBinsOffset ),
79 muHigh = cms.untracked.int32( default.muHighOffset ),
80 npvHigh = cms.untracked.int32( default.npvHighOffset )
86 offsetPlotBaseName = cms.string( default.offsetPlotBaseName ),
87 offsetDir = cms.string( default.offsetDir ),
88 offsetVariableTypes = cms.vstring( default.offsetVariableType ),
89 offsetR = cms.untracked.double( default.offsetR ),
90 pftypes = cms.vstring( default.candidateType ),
91 muHigh = cms.untracked.int32( default.muHighOffset ),
92 npvHigh = cms.untracked.int32( default.npvHighOffset )
const uint16_t range(const Frame &aFrame)