1 import FWCore.ParameterSet.Config
as cms
3 from L1Trigger.Phase2L1ParticleFlow.l1SeedConePFJetProducer_cfi
import l1SeedConePFJetProducer
4 from L1Trigger.Phase2L1ParticleFlow.l1SeedConePFJetEmulatorProducer_cfi
import l1SeedConePFJetEmulatorProducer
5 from L1Trigger.Phase2L1ParticleFlow.l1tDeregionizerProducer_cfi
import l1tDeregionizerProducer
as l1tLayer2Deregionizer, l1tDeregionizerProducerExtended
as l1tLayer2DeregionizerExtended
6 l1tSC4PFL1PF = l1SeedConePFJetProducer.clone(L1PFObjects =
'l1tLayer1:PF')
7 l1tSC4PFL1Puppi = l1SeedConePFJetProducer.clone()
8 l1tSC4PFL1PuppiEmulator = l1SeedConePFJetEmulatorProducer.clone(L1PFObjects =
'l1tLayer2Deregionizer:Puppi')
9 l1tSC8PFL1PuppiEmulator = l1SeedConePFJetEmulatorProducer.clone(L1PFObjects =
'l1tLayer2Deregionizer:Puppi',
10 coneSize = cms.double(0.8))
11 l1tSC4PFL1PuppiCorrectedEmulator = l1SeedConePFJetEmulatorProducer.clone(L1PFObjects =
'l1tLayer2Deregionizer:Puppi',
12 doCorrections = cms.bool(
True),
13 correctorFile = cms.string(
"L1Trigger/Phase2L1ParticleFlow/data/jecs/jecs_20220308.root"),
14 correctorDir = cms.string(
'L1PuppiSC4EmuJets'))
15 l1tSC8PFL1PuppiCorrectedEmulator = l1SeedConePFJetEmulatorProducer.clone(L1PFObjects =
'l1tLayer2Deregionizer:Puppi',
16 coneSize = cms.double(0.8),
17 doCorrections = cms.bool(
True),
18 correctorFile = cms.string(
"L1Trigger/Phase2L1ParticleFlow/data/jecs/jecs_20220308.root"),
19 correctorDir = cms.string(
'L1PuppiSC4EmuJets'))
21 _correctedJets = cms.EDProducer(
"L1TCorrectedPFJetProducer",
22 jets = cms.InputTag(
"_tag_"),
23 correctorFile = cms.string(
"L1Trigger/Phase2L1ParticleFlow/data/jecs/jecs_20220308.root"),
24 correctorDir = cms.string(
"_dir_"),
25 copyDaughters = cms.bool(
False),
26 emulate = cms.bool(
False)
30 from Configuration.Eras.Modifier_phase2_hgcalV10_cff
import phase2_hgcalV10
31 phase2_hgcalV10.toModify(_correctedJets, correctorFile =
"L1Trigger/Phase2L1ParticleFlow/data/jecs/jecs.PU200_106X.root")
32 from Configuration.Eras.Modifier_phase2_hgcalV11_cff
import phase2_hgcalV11
33 phase2_hgcalV11.toModify(_correctedJets, correctorFile =
"L1Trigger/Phase2L1ParticleFlow/data/jecs/jecs_20220308.root")
35 from L1Trigger.Phase2L1ParticleFlow.l1tMHTPFProducer_cfi
import l1tMHTPFProducer
36 l1tSC4PFL1PuppiCorrectedEmulatorMHT = l1tMHTPFProducer.clone(jets =
'l1tSC4PFL1PuppiCorrectedEmulator')
38 l1tSC4PFL1PuppiExtended = l1SeedConePFJetProducer.clone(L1PFObjects =
'l1tLayer1Extended:Puppi')
39 l1tSC4PFL1PuppiExtendedEmulator = l1SeedConePFJetEmulatorProducer.clone(L1PFObjects =
'l1tLayer2DeregionizerExtended:Puppi')
40 l1tSC4PFL1PuppiExtendedCorrectedEmulator = l1SeedConePFJetEmulatorProducer.clone(L1PFObjects =
'l1tLayer2DeregionizerExtended:Puppi',
41 doCorrections = cms.bool(
True),
42 correctorFile = cms.string(
"L1Trigger/Phase2L1ParticleFlow/data/jecs/jecs_20220308.root"),
43 correctorDir = cms.string(
'L1PuppiSC4EmuJets'))
45 L1TPFJetsTask = cms.Task(
46 l1tLayer2Deregionizer, l1tSC4PFL1PF, l1tSC4PFL1Puppi, l1tSC4PFL1PuppiEmulator, l1tSC4PFL1PuppiCorrectedEmulator, l1tSC4PFL1PuppiCorrectedEmulatorMHT,
47 l1tSC8PFL1PuppiEmulator, l1tSC8PFL1PuppiCorrectedEmulator
50 L1TPFJetsExtendedTask = cms.Task(
51 l1tLayer2DeregionizerExtended, l1tSC4PFL1PuppiExtended, l1tSC4PFL1PuppiExtendedEmulator, l1tSC4PFL1PuppiExtendedCorrectedEmulator
54 L1TPFJetsEmulationTask = cms.Task(
55 l1tLayer2Deregionizer, l1tSC4PFL1PuppiEmulator, l1tSC4PFL1PuppiCorrectedEmulator, l1tSC4PFL1PuppiCorrectedEmulatorMHT,
56 l1tSC8PFL1PuppiEmulator, l1tSC8PFL1PuppiCorrectedEmulator