CMS 3D CMS Logo

ootPhotons_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from RecoEgamma.EgammaPhotonProducers.gedPhotons_cfi import gedPhotons as _gedPhotons
3 
4 ootPhotonsTmp = _gedPhotons.clone(
5  photonProducer = 'ootPhotonCore',
6  candidateP4type = "fromEcalEnergy",
7  reconstructionStep = "oot",
8  pfEgammaCandidates = "",
9  valueMapPhotons = ""
10  )
11 del ootPhotonsTmp.regressionConfig
12 
13 ootPhotons = _gedPhotons.clone(
14  photonProducer = 'ootPhotonsTmp',
15  candidateP4type = "fromEcalEnergy",
16  reconstructionStep = "ootfinal",
17  pfEgammaCandidates = "",
18  pfIsolCfg = cms.PSet(
19  chargedHadronIso = cms.InputTag(""),
20  neutralHadronIso = cms.InputTag(""),
21  photonIso = cms.InputTag(""),
22  chargedHadronWorstVtxIso = cms.InputTag(""),
23  chargedHadronWorstVtxGeomVetoIso = cms.InputTag(""),
24  chargedHadronPFPVIso = cms.InputTag(""),
25  ),
26  pfECALClusIsolation = cms.InputTag("ootPhotonEcalPFClusterIsolationProducer"),
27  pfHCALClusIsolation = cms.InputTag("ootPhotonHcalPFClusterIsolationProducer"),
28  valueMapPhotons = ""
29  )
30 del ootPhotons.regressionConfig
31 
32 
33 
34 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
35 
36 run2_miniAOD_80XLegacy.toModify(
37  ootPhotonsTmp,
38  barrelEcalHits = "reducedEcalRecHitsEB",
39  endcapEcalHits = "reducedEcalRecHitsEE",
40  preshowerHits = "reducedEcalRecHitsES",
41  hbheRecHits = ""
42 )
43 run2_miniAOD_80XLegacy.toModify(
44  ootPhotons,
45  barrelEcalHits = "reducedEcalRecHitsEB",
46  endcapEcalHits = "reducedEcalRecHitsEE",
47  preshowerHits = "reducedEcalRecHitsES",
48  hbheRecHits = "",
49  pfECALClusIsolation = None,
50  pfHCALClusIsolation = None
51 )
52 run2_miniAOD_80XLegacy.toModify(
53  ootPhotonsTmp.isolationSumsCalculatorSet,
54  barrelEcalRecHitCollection = "reducedEcalRecHitsEB",
55  endcapEcalRecHitCollection = "reducedEcalRecHitsEE",
56  HBHERecHitCollection = ""
57 )
58 run2_miniAOD_80XLegacy.toModify(
59  ootPhotonsTmp.mipVariableSet,
60  barrelEcalRecHitCollection = "reducedEcalRecHitsEB",
61  endcapEcalRecHitCollection = "reducedEcalRecHitsEE",
62 )
gedPhotons_cfi