Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:17:46

0001 import FWCore.ParameterSet.Config as cms
0002 from RecoEgamma.EgammaPhotonProducers.gedPhotons_cfi import gedPhotons as _gedPhotons
0003 
0004 ootPhotonsTmp = _gedPhotons.clone(
0005     photonProducer = 'ootPhotonCore',
0006     candidateP4type = "fromEcalEnergy",
0007     reconstructionStep = "oot",
0008     pfEgammaCandidates = "",
0009     valueMapPhotons = ""
0010     )
0011 del ootPhotonsTmp.regressionConfig
0012 
0013 ootPhotons = _gedPhotons.clone(
0014     photonProducer = 'ootPhotonsTmp',
0015     candidateP4type = "fromEcalEnergy",
0016     reconstructionStep = "ootfinal",
0017     pfEgammaCandidates = "",
0018     pfIsolCfg = cms.PSet(
0019         chargedHadronIso = cms.InputTag(""),
0020         neutralHadronIso = cms.InputTag(""),
0021         photonIso = cms.InputTag(""),
0022         chargedHadronWorstVtxIso = cms.InputTag(""),
0023         chargedHadronWorstVtxGeomVetoIso = cms.InputTag(""),
0024         chargedHadronPFPVIso = cms.InputTag(""),
0025     ),
0026     pfECALClusIsolation = cms.InputTag("ootPhotonEcalPFClusterIsolationProducer"),
0027     pfHCALClusIsolation = cms.InputTag("ootPhotonHcalPFClusterIsolationProducer"),
0028     valueMapPhotons = ""
0029     )
0030 del ootPhotons.regressionConfig
0031 
0032 
0033 
0034 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
0035 
0036 run2_miniAOD_80XLegacy.toModify(
0037     ootPhotonsTmp, 
0038     barrelEcalHits = "reducedEcalRecHitsEB",
0039     endcapEcalHits = "reducedEcalRecHitsEE",
0040     preshowerHits = "reducedEcalRecHitsES",
0041     hbheRecHits = ""
0042 )
0043 run2_miniAOD_80XLegacy.toModify(
0044     ootPhotons, 
0045     barrelEcalHits = "reducedEcalRecHitsEB",
0046     endcapEcalHits = "reducedEcalRecHitsEE",
0047     preshowerHits = "reducedEcalRecHitsES",
0048     hbheRecHits = "",
0049     pfECALClusIsolation = None,
0050     pfHCALClusIsolation = None
0051 )
0052 run2_miniAOD_80XLegacy.toModify(
0053     ootPhotonsTmp.isolationSumsCalculatorSet, 
0054     barrelEcalRecHitCollection = "reducedEcalRecHitsEB",
0055     endcapEcalRecHitCollection = "reducedEcalRecHitsEE",
0056     HBHERecHitCollection = ""
0057 )
0058 run2_miniAOD_80XLegacy.toModify(
0059     ootPhotonsTmp.mipVariableSet,
0060     barrelEcalRecHitCollection = "reducedEcalRecHitsEB",
0061     endcapEcalRecHitCollection = "reducedEcalRecHitsEE",
0062 )