1 import FWCore.ParameterSet.Config
as cms
2 from Validation.RecoParticleFlow.defaults_cfi
import ptbins, etabins, response_distribution_name, genjet_distribution_name,jetResponseDir,genjetDir
9 def make_response_plot_pset(name, title, responseNbins, responseLow, responseHigh, ptBinLow, ptBinHigh, etaBinLow, etaBinHigh):
11 name = cms.string(name),
12 title = cms.string(title),
13 responseNbins = cms.uint32(responseNbins),
14 responseLow = cms.double(responseLow),
15 responseHigh = cms.double(responseHigh),
16 ptBinLow = cms.double(ptBinLow),
17 ptBinHigh = cms.double(ptBinHigh),
18 etaBinLow = cms.double(etaBinLow),
19 etaBinHigh = cms.double(etaBinHigh),
31 for ietabin
in range(len(etabins)-1):
32 for iptbin
in range(len(ptbins)-1):
36 "Jet response (pT/pTgen) in {0} <= pt < {1}, {2} <= |eta| < {3}".
format(ptbins[iptbin], ptbins[iptbin+1], etabins[ietabin], etabins[ietabin+1]),
37 100, 0.0, 3.0, ptbins[iptbin], ptbins[iptbin+1], etabins[ietabin], etabins[ietabin+1]
43 for ietabin
in range(len(etabins)-1):
44 eta_low = etabins[ietabin]
45 eta_high = etabins[ietabin + 1]
49 title = cms.string(
"GenJet pT ({0} <= |eta| <= {1}".
format(eta_low, eta_high)),
50 ptBins = cms.vdouble(ptbins),
51 etaBinLow = cms.double(eta_low),
52 etaBinHigh = cms.double(eta_high),
63 pfJetAnalyzerDQM = cms.EDProducer(
"PFJetAnalyzerDQM",
66 recoJetCollection = cms.InputTag(
'slimmedJets'),
67 genJetCollection = cms.InputTag(
'slimmedGenJets'),
68 jetDeltaR = cms.double(0.2),
75 pfJetDQMPostProcessor = cms.EDProducer(
"PFJetDQMPostProcessor",
77 jetResponseDir = cms.string( jetResponseDir ),
78 genjetDir = cms.string( genjetDir ),
79 ptBins = cms.vdouble( ptbins ),
80 etaBins = cms.vdouble( etabins ),
81 recoPtCut = cms.double( 15. )
99 from Configuration.Eras.Modifier_phase2_common_cff
import phase2_common
100 phase2_common.toModify(
102 recoJetCollection =
"slimmedJetsPuppi" def response_distribution_name(iptbin, ietabin)
def createGenJetPlots(ptbins, etabins)
def make_response_plot_pset(name, title, responseNbins, responseLow, responseHigh, ptBinLow, ptBinHigh, etaBinLow, etaBinHigh)
def genjet_distribution_name(ietabin)
def createResponsePlots(ptbins, etabins)