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 ootPhotons = _gedPhotons.clone(
5  photonProducer = 'ootPhotonCore',
6  candidateP4type = "fromEcalEnergy",
7  reconstructionStep = "oot",
8  pfEgammaCandidates = "",
9  valueMapPhotons = ""
10  )
11 del ootPhotons.regressionConfig
12 
13 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
14 
15 run2_miniAOD_80XLegacy.toModify(
16  ootPhotons,
17  barrelEcalHits = "reducedEcalRecHitsEB",
18  endcapEcalHits = "reducedEcalRecHitsEE",
19  preshowerHits = "reducedEcalRecHitsES",
20  hcalTowers = ""
21 )
22 run2_miniAOD_80XLegacy.toModify(
23  ootPhotons.isolationSumsCalculatorSet,
24  barrelEcalRecHitCollection = "reducedEcalRecHitsEB",
25  endcapEcalRecHitCollection = "reducedEcalRecHitsEE",
26  HcalRecHitCollection = ""
27 )
28 run2_miniAOD_80XLegacy.toModify(
29  ootPhotons.mipVariableSet,
30  barrelEcalRecHitCollection = "reducedEcalRecHitsEB",
31  endcapEcalRecHitCollection = "reducedEcalRecHitsEE",
32 )