CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/RecoHI/HiEgammaAlgos/python/HiEgamma_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # clustering sequence
00004 from RecoHI.HiEgammaAlgos.HiIslandClusteringSequence_cff import *
00005 from RecoEcal.EgammaClusterProducers.hybridClusteringSequence_cff import *
00006 from RecoEcal.EgammaClusterProducers.multi5x5ClusteringSequence_cff import *
00007 from RecoEcal.EgammaClusterProducers.multi5x5PreshowerClusteringSequence_cff import *
00008 from RecoEcal.EgammaClusterProducers.preshowerClusteringSequence_cff import *
00009 from RecoHI.HiEgammaAlgos.HiIsolationCommonParameters_cff import *
00010 
00011 hiEcalClusteringSequence = cms.Sequence(islandClusteringSequence*hybridClusteringSequence*multi5x5ClusteringSequence*multi5x5PreshowerClusteringSequence*preshowerClusteringSequence)
00012 
00013 # high purity tracks
00014 #highPurityTracks = cms.EDFilter("TrackSelector",
00015 #    src = cms.InputTag("hiSelectedTracks"),
00016 ##    cut = cms.string('quality("highPurity")')
00017 #)
00018 
00019 # reco photon producer
00020 from RecoEgamma.EgammaPhotonProducers.photonSequence_cff import *
00021 
00022 # use island for the moment
00023 photonCore.scHybridBarrelProducer = cms.InputTag("correctedIslandBarrelSuperClusters")
00024 photonCore.scIslandEndcapProducer = cms.InputTag("correctedIslandEndcapSuperClusters")
00025 photonCore.minSCEt = cms.double(8.0)
00026 photons.minSCEtBarrel = cms.double(5.0)
00027 photons.minSCEtEndcap = cms.double(15.0)
00028 photons.minR9Barrel = cms.double(10.)  #0.94
00029 photons.minR9Endcap = cms.double(10.)   #0.95
00030 photons.maxHoverEEndcap = cms.double(0.5)  #0.5
00031 photons.maxHoverEBarrel = cms.double(0.99)  #0.5
00032 photons.primaryVertexProducer = cms.string('hiSelectedVertex') # replace the primary vertex
00033 photons.isolationSumsCalculatorSet.trackProducer = isolationInputParameters.track    # cms.InputTag("highPurityTracks")
00034 
00035 hiPhotonSequence = cms.Sequence(#highPurityTracks*
00036                                 photonSequence)
00037 
00038 # HI Egamma Isolation
00039 from RecoHI.HiEgammaAlgos.HiEgammaIsolation_cff import *
00040 
00041 # HI Ecal reconstruction
00042 hiEcalClusters = cms.Sequence(hiEcalClusteringSequence)
00043 hiEgammaSequence = cms.Sequence(hiPhotonSequence)
00044 hiEcalClustersIsolation = cms.Sequence(hiEgammaSequence * hiEgammaIsolationSequence)
00045 
00046 # HI Spike Clean Sequence
00047 import RecoHI.HiEgammaAlgos.hiSpikeCleaner_cfi
00048 hiSpikeCleanedSC = RecoHI.HiEgammaAlgos.hiSpikeCleaner_cfi.hiSpikeCleaner.clone(
00049 #    swissCutThr    = cms.untracked.double(0.95)
00050     )
00051 cleanPhotonCore = photonCore.clone(
00052     scHybridBarrelProducer = cms.InputTag("hiSpikeCleanedSC")
00053 )
00054 cleanPhotons = photons.clone(
00055     photonCoreProducer = cms.InputTag("cleanPhotonCore")
00056 )
00057 
00058 hiPhotonCleaningSequence = cms.Sequence(hiSpikeCleanedSC *
00059                                         #highPurityTracks *
00060                                         cleanPhotonCore  *
00061                                         cleanPhotons)