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 recoJetCollection =
'slimmedJetsPuppi',
84 vjetResponseDir = [jetResponseDir +
"slimmedJets/JEC/",
85 jetResponseDir +
"slimmedJets/noJEC/",
86 jetResponseDir +
"slimmedJetsPuppi/JEC/",
87 jetResponseDir +
"slimmedJetsPuppi/noJEC/"]
89 pfJetDQMPostProcessor = cms.EDProducer(
"PFJetDQMPostProcessor",
91 jetResponseDir = cms.vstring( vjetResponseDir ),
92 genjetDir = cms.string( genjetDir ),
93 ptBins = cms.vdouble( ptbins ),
94 etaBins = cms.vdouble( etabins ),
95 recoPtCut = cms.double( 15. )
101 PFCandAnalyzerDQM = cms.EDProducer(
"PFCandidateAnalyzerDQM",
102 PFCandType = cms.InputTag(
"packedPFCandidates"),
103 etabins = cms.vdouble( default.etaBinsOffset ),
104 pdgKeys = cms.vuint32( default.pdgIDDict.keys() ),
105 pdgStrs = cms.vstring( default.pdgIDDict.values() )
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)