1 import FWCore.ParameterSet.Config
as cms
6 patOOTPhotons = patPhotons.clone()
7 patOOTPhotons.photonSource = cms.InputTag(
"ootPhotons")
8 patOOTPhotons.embedSuperCluster = cms.bool(
False)
9 patOOTPhotons.embedSeedCluster = cms.bool(
False)
10 patOOTPhotons.embedBasicClusters = cms.bool(
False)
11 patOOTPhotons.embedPreshowerClusters = cms.bool(
False)
12 patOOTPhotons.embedRecHits = cms.bool(
False)
14 patOOTPhotons.isoDeposits = cms.PSet()
15 patOOTPhotons.isolationValues = cms.PSet()
18 patOOTPhotons.addPhotonID = cms.bool(
False)
19 patOOTPhotons.photonIDSources = cms.PSet()
22 patOOTPhotons.addGenMatch = cms.bool(
True)
23 patOOTPhotons.embedGenMatch = cms.bool(
False)
26 patOOTPhotons.addEfficiencies = cms.bool(
False)
27 patOOTPhotons.efficiencies = cms.PSet()
30 patOOTPhotons.addResolutions = cms.bool(
False)
31 patOOTPhotons.resolutions = cms.PSet()
34 patOOTPhotons.addPuppiIsolation = cms.bool(
False)
37 patOOTPhotons.addPFClusterIso = cms.bool(
False)
40 patOOTPhotons.genParticleMatch = cms.InputTag(
"ootPhotonMatch")
44 makePatOOTPhotonsTask = cms.Task(
49 makePatOOTPhotons = cms.Sequence(makePatOOTPhotonsTask)
55 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
56 run2_miniAOD_80XLegacy.toReplaceWith(makePatOOTPhotonsTask, cms.Task(
58 ootPhotonEcalPFClusterIsolationProducer,
59 makePatOOTPhotonsTask.copy()
66 run2_miniAOD_80XLegacy.toModify(ootPhotonEcalPFClusterIsolationProducer,candidateProducer = cms.InputTag(
'ootPhotons') )
68 run2_miniAOD_80XLegacy.toModify(patOOTPhotons, addPFClusterIso = cms.bool(
True),ecalPFClusterIsoMap = cms.InputTag(
"reducedEgamma",
"ootPhoEcalPFClusIso"),hcalPFClusterIsoMap = cms.InputTag(
"") )