CMS 3D CMS Logo

l1pfJetMet_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoMET.METProducers.pfMet_cfi import pfMet
4 _pfMet = pfMet.clone(calculateSignificance = False)
5 l1PFMetCalo = _pfMet.clone(src = "l1pfCandidates:Calo")
6 l1PFMetPF = _pfMet.clone(src = "l1pfCandidates:PF")
7 l1PFMetPuppi = _pfMet.clone(src = "l1pfCandidates:Puppi")
8 
9 l1PFMets = cms.Sequence(l1PFMetCalo + l1PFMetPF + l1PFMetPuppi)
10 
11 from RecoJets.JetProducers.ak4PFJets_cfi import ak4PFJets
12 _ak4PFJets = ak4PFJets.clone(doAreaFastjet = False)
13 ak4PFL1Calo = _ak4PFJets.clone(src = 'l1pfCandidates:Calo')
14 ak4PFL1PF = _ak4PFJets.clone(src = 'l1pfCandidates:PF')
15 ak4PFL1Puppi = _ak4PFJets.clone(src = 'l1pfCandidates:Puppi')
16 
17 _correctedJets = cms.EDProducer("L1TCorrectedPFJetProducer",
18  jets = cms.InputTag("_tag_"),
19  correctorFile = cms.string("L1Trigger/Phase2L1ParticleFlow/data/jecs/jecs.PU200.root"),
20  correctorDir = cms.string("_dir_"),
21  copyDaughters = cms.bool(False)
22 )
23 # Using phase2_hgcalV10 to customize the config for all 106X samples, since there's no other modifier for it
24 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
25 phase2_hgcalV10.toModify(_correctedJets, correctorFile = "L1Trigger/Phase2L1ParticleFlow/data/jecs/jecs.PU200_106X.root")
26 from Configuration.Eras.Modifier_phase2_hgcalV11_cff import phase2_hgcalV11
27 phase2_hgcalV11.toModify(_correctedJets, correctorFile = "L1Trigger/Phase2L1ParticleFlow/data/jecs/jecs.PU200_110X.root")
28 
29 ak4PFL1CaloCorrected = _correctedJets.clone(jets = 'ak4PFL1Calo', correctorDir = 'L1CaloJets')
30 ak4PFL1PFCorrected = _correctedJets.clone(jets = 'ak4PFL1PF', correctorDir = 'L1PFJets')
31 ak4PFL1PuppiCorrected = _correctedJets.clone(jets = 'ak4PFL1Puppi', correctorDir = 'L1PuppiJets')
32 
33 l1PFJets = cms.Sequence(
34  ak4PFL1Calo + ak4PFL1PF + ak4PFL1Puppi +
35  ak4PFL1CaloCorrected + ak4PFL1PFCorrected + ak4PFL1PuppiCorrected
36 )
37 
38 
ak4PFJets_cfi
pfMet_cfi