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, recojet_distribution_name, jetResponseDir, genjetDir, offsetDir
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),
59 for ietabin
in range(len(etabins)-1):
60 eta_low = etabins[ietabin]
61 eta_high = etabins[ietabin + 1]
65 title = cms.string(
"RecoJet ({0} <= |eta| <= {1})".
format(eta_low, eta_high)),
66 ptBins = cms.vdouble(ptbins),
67 etaBinLow = cms.double(eta_low),
68 etaBinHigh = cms.double(eta_high),
79 pfJetAnalyzerDQM = cms.EDProducer(
"PFJetAnalyzerDQM",
82 recoJetCollection = cms.InputTag(
'slimmedJets'),
83 genJetCollection = cms.InputTag(
'slimmedGenJets'),
84 jetDeltaR = cms.double(0.2),
87 genJetsOn = cms.bool(
True),
88 recoJetsOn = cms.bool(
True),
94 pfPuppiJetAnalyzerDQM = pfJetAnalyzerDQM.clone(
95 recoJetCollection =
'slimmedJetsPuppi',
99 vjetResponseDir = [jetResponseDir +
"slimmedJets/JEC/",
100 jetResponseDir +
"slimmedJets/noJEC/",
101 jetResponseDir +
"slimmedJetsPuppi/JEC/",
102 jetResponseDir +
"slimmedJetsPuppi/noJEC/"]
104 pfJetDQMPostProcessor = cms.EDProducer(
"PFJetDQMPostProcessor",
106 jetResponseDir = cms.vstring( vjetResponseDir ),
107 genjetDir = cms.string( genjetDir ),
108 offsetDir = cms.string( offsetDir ),
109 ptBins = cms.vdouble( ptbins ),
110 etaBins = cms.vdouble( etabins ),
111 recoPtCut = cms.double(10. )
116 PFCandAnalyzerDQM = cms.EDProducer(
"PFCandidateAnalyzerDQM",
117 PFCandType = cms.InputTag(
"packedPFCandidates"),
118 etabins = cms.vdouble( default.etaBinsOffset ),
119 pdgKeys = cms.vuint32( default.pdgIDDict.keys() ),
120 pdgStrs = cms.vstring( default.pdgIDDict.values() )
def response_distribution_name(iptbin, ietabin)
def createRecoJetPlots(ptbins, etabins)
def createGenJetPlots(ptbins, etabins)
def recojet_distribution_name(ietabin)
def make_response_plot_pset(name, title, responseNbins, responseLow, responseHigh, ptBinLow, ptBinHigh, etaBinLow, etaBinHigh)
def genjet_distribution_name(ietabin)
def createResponsePlots(ptbins, etabins)