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  chargedHadronIsolation = cms.InputTag(""),
19  neutralHadronIsolation = cms.InputTag(""),
20  photonIsolation = cms.InputTag(""),
21  pfECALClusIsolation = cms.InputTag("ootPhotonEcalPFClusterIsolationProducer"),
22  pfHCALClusIsolation = cms.InputTag("ootPhotonHcalPFClusterIsolationProducer"),
23  valueMapPhotons = ""
24  )
25 del ootPhotons.regressionConfig
26 
27 
28 
29 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
30 
31 run2_miniAOD_80XLegacy.toModify(
32  ootPhotonsTmp,
33  barrelEcalHits = "reducedEcalRecHitsEB",
34  endcapEcalHits = "reducedEcalRecHitsEE",
35  preshowerHits = "reducedEcalRecHitsES",
36  hcalTowers = ""
37 )
38 run2_miniAOD_80XLegacy.toModify(
39  ootPhotons,
40  barrelEcalHits = "reducedEcalRecHitsEB",
41  endcapEcalHits = "reducedEcalRecHitsEE",
42  preshowerHits = "reducedEcalRecHitsES",
43  hcalTowers = "",
44  pfECALClusIsolation = None,
45  pfHCALClusIsolation = None
46 )
47 run2_miniAOD_80XLegacy.toModify(
48  ootPhotonsTmp.isolationSumsCalculatorSet,
49  barrelEcalRecHitCollection = "reducedEcalRecHitsEB",
50  endcapEcalRecHitCollection = "reducedEcalRecHitsEE",
51  HcalRecHitCollection = ""
52 )
53 run2_miniAOD_80XLegacy.toModify(
54  ootPhotonsTmp.mipVariableSet,
55  barrelEcalRecHitCollection = "reducedEcalRecHitsEB",
56  endcapEcalRecHitCollection = "reducedEcalRecHitsEE",
57 )