CMS 3D CMS Logo

reducedEgamma_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 reducedEgamma = cms.EDProducer("ReducedEGProducer",
4  keepPhotons = cms.string("hadTowOverEm()<0.15 && pt>10 && (pt>14 || chargedHadronIso()<10)"), #keep in output
5  slimRelinkPhotons = cms.string("hadTowOverEm()<0.15 && pt>10 && (pt>14 || chargedHadronIso()<10)"), #keep only slimmed SuperCluster plus seed cluster
6  relinkPhotons = cms.string("(r9()>0.8 || chargedHadronIso()<20 || chargedHadronIso()<0.3*pt())"), #keep all associated clusters/rechits/conversions
7  keepOOTPhotons = cms.string("pt>10"), #keep in output
8  slimRelinkOOTPhotons = cms.string("pt>10"), #keep only slimmed SuperCluster plus seed cluster
9  relinkOOTPhotons = cms.string("(r9()>0.8)"), #keep all associated clusters/rechits/conversions
10  keepGsfElectrons = cms.string(""), #keep in output
11  slimRelinkGsfElectrons = cms.string(""), #keep only slimmed SuperCluster plus seed cluster
12  relinkGsfElectrons = cms.string("pt>5"), #keep all associated clusters/rechits/conversions
13  photons = cms.InputTag("gedPhotons"),
14  ootPhotons = cms.InputTag("ootPhotons"),
15  gsfElectrons = cms.InputTag("gedGsfElectrons"),
16  conversions = cms.InputTag("allConversions"),
17  singleConversions = cms.InputTag("particleFlowEGamma"),
18  barrelEcalHits = cms.InputTag("reducedEcalRecHitsEB"),
19  endcapEcalHits = cms.InputTag("reducedEcalRecHitsEE"),
20  preshowerEcalHits = cms.InputTag("reducedEcalRecHitsES"),
21  photonsPFValMap = cms.InputTag("particleBasedIsolation","gedPhotons"),
22  gsfElectronsPFValMap = cms.InputTag("particleBasedIsolation","gedGsfElectrons"),
23  photonIDSources = cms.VInputTag(
24  cms.InputTag("PhotonIDProdGED","PhotonCutBasedIDLoose"),
25  cms.InputTag("PhotonIDProdGED","PhotonCutBasedIDLooseEM"),
26  cms.InputTag("PhotonIDProdGED","PhotonCutBasedIDTight")
27  ),
28  photonIDOutput = cms.vstring(
29  "PhotonCutBasedIDLoose",
30  "PhotonCutBasedIDLooseEM",
31  "PhotonCutBasedIDTight",
32  ),
33  gsfElectronIDSources = cms.VInputTag(
34  cms.InputTag("eidLoose"),
35  cms.InputTag("eidRobustHighEnergy"),
36  cms.InputTag("eidRobustLoose"),
37  cms.InputTag("eidRobustTight"),
38  cms.InputTag("eidTight"),
39  ),
40  gsfElectronIDOutput = cms.vstring(
41  "eidLoose",
42  "eidRobustHighEnergy",
43  "eidRobustLoose",
44  "eidRobustTight",
45  "eidTight",
46  ),
47  photonPFClusterIsoSources = cms.VInputTag(
48  cms.InputTag("photonEcalPFClusterIsolationProducer"),
49  cms.InputTag("photonHcalPFClusterIsolationProducer"),
50  ),
51  photonPFClusterIsoOutput = cms.vstring(
52  "phoEcalPFClusIso",
53  "phoHcalPFClusIso",
54  ),
55  ootPhotonPFClusterIsoSources = cms.VInputTag(
56  cms.InputTag("ootPhotonEcalPFClusterIsolationProducer"),
57  cms.InputTag("ootPhotonHcalPFClusterIsolationProducer"),
58  ),
59  ootPhotonPFClusterIsoOutput = cms.vstring(
60  "ootPhoEcalPFClusIso",
61  "ootPhoHcalPFClusIso",
62  ),
63  gsfElectronPFClusterIsoSources = cms.VInputTag(
64  cms.InputTag("electronEcalPFClusterIsolationProducer"),
65  cms.InputTag("electronHcalPFClusterIsolationProducer"),
66  ),
67  gsfElectronPFClusterIsoOutput = cms.vstring(
68  "eleEcalPFClusIso",
69  "eleHcalPFClusIso",
70  ),
71 )
72 
73 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
74 phase2_common.toModify(reducedEgamma,
75  preshowerEcalHits = cms.InputTag(""),
76 )
77 
78 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
79 run2_miniAOD_80XLegacy.toModify(
80  reducedEgamma,
81  ootPhotonPFClusterIsoSources = [ "ootPhotonEcalPFClusterIsolationProducer" ],
82  ootPhotonPFClusterIsoOutput = [ "ootPhoEcalPFClusIso" ]
83 )