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  gsfTracks = cms.InputTag("electronGsfTracks"),
18  singleConversions = cms.InputTag("particleFlowEGamma"),
19  barrelEcalHits = cms.InputTag("reducedEcalRecHitsEB"),
20  endcapEcalHits = cms.InputTag("reducedEcalRecHitsEE"),
21  preshowerEcalHits = cms.InputTag("reducedEcalRecHitsES"),
22  photonsPFValMap = cms.InputTag("particleBasedIsolation","gedPhotons"),
23  gsfElectronsPFValMap = cms.InputTag("particleBasedIsolation","gedGsfElectrons"),
24  photonIDSources = cms.VInputTag(
25  cms.InputTag("PhotonIDProdGED","PhotonCutBasedIDLoose"),
26  cms.InputTag("PhotonIDProdGED","PhotonCutBasedIDLooseEM"),
27  cms.InputTag("PhotonIDProdGED","PhotonCutBasedIDTight")
28  ),
29  photonIDOutput = cms.vstring(
30  "PhotonCutBasedIDLoose",
31  "PhotonCutBasedIDLooseEM",
32  "PhotonCutBasedIDTight",
33  ),
34  gsfElectronIDSources = cms.VInputTag(
35  cms.InputTag("eidLoose"),
36  cms.InputTag("eidRobustHighEnergy"),
37  cms.InputTag("eidRobustLoose"),
38  cms.InputTag("eidRobustTight"),
39  cms.InputTag("eidTight"),
40  ),
41  gsfElectronIDOutput = cms.vstring(
42  "eidLoose",
43  "eidRobustHighEnergy",
44  "eidRobustLoose",
45  "eidRobustTight",
46  "eidTight",
47  ),
48  photonPFClusterIsoSources = cms.VInputTag(
49  cms.InputTag("photonEcalPFClusterIsolationProducer"),
50  cms.InputTag("photonHcalPFClusterIsolationProducer"),
51  ),
52  photonPFClusterIsoOutput = cms.vstring(
53  "phoEcalPFClusIso",
54  "phoHcalPFClusIso",
55  ),
56  ootPhotonPFClusterIsoSources = cms.VInputTag(
57  cms.InputTag("ootPhotonEcalPFClusterIsolationProducer"),
58  cms.InputTag("ootPhotonHcalPFClusterIsolationProducer"),
59  ),
60  ootPhotonPFClusterIsoOutput = cms.vstring(
61  "ootPhoEcalPFClusIso",
62  "ootPhoHcalPFClusIso",
63  ),
64  gsfElectronPFClusterIsoSources = cms.VInputTag(
65  cms.InputTag("electronEcalPFClusterIsolationProducer"),
66  cms.InputTag("electronHcalPFClusterIsolationProducer"),
67  ),
68  gsfElectronPFClusterIsoOutput = cms.vstring(
69  "eleEcalPFClusIso",
70  "eleHcalPFClusIso",
71  ),
72 )
73 
74 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
75 phase2_common.toModify(reducedEgamma,
76  preshowerEcalHits = cms.InputTag(""),
77 )
78 
79 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
80 run2_miniAOD_80XLegacy.toModify(
81  reducedEgamma,
82  ootPhotonPFClusterIsoSources = [ "ootPhotonEcalPFClusterIsolationProducer" ],
83  ootPhotonPFClusterIsoOutput = [ "ootPhoEcalPFClusIso" ]
84 )