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(
True)
38 patOOTPhotons.ecalPFClusterIsoMap = cms.InputTag(
"reducedEgamma",
"ootPhoEcalPFClusIso")
39 patOOTPhotons.hcalPFClusterIsoMap = cms.InputTag(
"reducedEgamma",
"ootPhoHcalPFClusIso")
42 patOOTPhotons.genParticleMatch = cms.InputTag(
"ootPhotonMatch")
46 makePatOOTPhotonsTask = cms.Task(
51 makePatOOTPhotons = cms.Sequence(makePatOOTPhotonsTask)
57 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
58 run2_miniAOD_80XLegacy.toReplaceWith(makePatOOTPhotonsTask, cms.Task(
60 ootPhotonEcalPFClusterIsolationProducer,
61 makePatOOTPhotonsTask.copy()
64 run2_miniAOD_80XLegacy.toModify(patOOTPhotons, hcalPFClusterIsoMap =
"")