1 import FWCore.ParameterSet.Config
as cms
2 import Validation.RecoParticleFlow.defaults_cfi
as default
3 from Validation.RecoParticleFlow.defaults_cfi
import ptbins, etabins, response_distribution_name, genjet_distribution_name,jetResponseDir,genjetDir
10 def make_response_plot_pset(name, title, responseNbins, responseLow, responseHigh, ptBinLow, ptBinHigh, etaBinLow, etaBinHigh):
12 name = cms.string(name),
13 title = cms.string(title),
14 responseNbins = cms.uint32(responseNbins),
15 responseLow = cms.double(responseLow),
16 responseHigh = cms.double(responseHigh),
17 ptBinLow = cms.double(ptBinLow),
18 ptBinHigh = cms.double(ptBinHigh),
19 etaBinLow = cms.double(etaBinLow),
20 etaBinHigh = cms.double(etaBinHigh),
32 for ietabin
in range(len(etabins)-1):
33 for iptbin
in range(len(ptbins)-1):
37 "Jet response (pT/pTgen) in {0} <= pt < {1}, {2} <= |eta| < {3}".
format(ptbins[iptbin], ptbins[iptbin+1], etabins[ietabin], etabins[ietabin+1]),
38 100, 0.0, 3.0, ptbins[iptbin], ptbins[iptbin+1], etabins[ietabin], etabins[ietabin+1]
44 for ietabin
in range(len(etabins)-1):
45 eta_low = etabins[ietabin]
46 eta_high = etabins[ietabin + 1]
50 title = cms.string(
"GenJet pT ({0} <= |eta| <= {1}".
format(eta_low, eta_high)),
51 ptBins = cms.vdouble(ptbins),
52 etaBinLow = cms.double(eta_low),
53 etaBinHigh = cms.double(eta_high),
64 pfJetAnalyzerDQM = cms.EDProducer(
"PFJetAnalyzerDQM",
67 recoJetCollection = cms.InputTag(
'slimmedJets'),
68 genJetCollection = cms.InputTag(
'slimmedGenJets'),
69 jetDeltaR = cms.double(0.2),
72 genJetsOn = cms.bool(
True),
79 pfPuppiJetAnalyzerDQM = pfJetAnalyzerDQM.clone()
80 pfPuppiJetAnalyzerDQM.recoJetCollection = cms.InputTag(
'slimmedJetsPuppi')
81 pfPuppiJetAnalyzerDQM.genJetsOn = cms.bool(
False)
83 vjetResponseDir = [jetResponseDir +
"slimmedJets/JEC/",
84 jetResponseDir +
"slimmedJets/noJEC/",
85 jetResponseDir +
"slimmedJetsPuppi/JEC/",
86 jetResponseDir +
"slimmedJetsPuppi/noJEC/"]
88 pfJetDQMPostProcessor = cms.EDProducer(
"PFJetDQMPostProcessor",
90 jetResponseDir = cms.vstring( vjetResponseDir ),
91 genjetDir = cms.string( genjetDir ),
92 ptBins = cms.vdouble( ptbins ),
93 etaBins = cms.vdouble( etabins ),
94 recoPtCut = cms.double( 15. )
100 PFCandAnalyzerDQM = cms.EDProducer(
"PFCandidateAnalyzerDQM",
101 PFCandType = cms.InputTag(
"packedPFCandidates"),
102 etabins = cms.vdouble( default.etaBinsOffset ),
103 pdgKeys = cms.vuint32( default.pdgIDDict.keys() ),
104 pdgStrs = cms.vstring( default.pdgIDDict.values() )