CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HiEgamma_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # clustering sequence
11 
12 particleFlowSuperClusterECAL.regressionConfig.vertexCollection = 'hiSelectedVertex'
13 
14 hiEcalClusteringSequence = cms.Sequence(islandClusteringSequence*hybridClusteringSequence*multi5x5ClusteringSequence*multi5x5PreshowerClusteringSequence*preshowerClusteringSequence*particleFlowSuperClusteringSequence)
15 
16 
17 # reco photon producer
19 
20 # use island for the moment
21 photonCore.scHybridBarrelProducer = cms.InputTag("correctedIslandBarrelSuperClusters")
22 photonCore.scIslandEndcapProducer = cms.InputTag("correctedIslandEndcapSuperClusters")
23 photonCore.minSCEt = cms.double(8.0)
24 photons.minSCEtBarrel = cms.double(5.0)
25 photons.minSCEtEndcap = cms.double(15.0)
26 photons.minR9Barrel = cms.double(10.) #0.94
27 photons.minR9Endcap = cms.double(10.) #0.95
28 photons.maxHoverEEndcap = cms.double(0.5) #0.5
29 photons.maxHoverEBarrel = cms.double(0.99) #0.5
30 photons.primaryVertexProducer = cms.InputTag('hiSelectedVertex') # replace the primary vertex
31 photons.isolationSumsCalculatorSet.trackProducer = isolationInputParameters.track # cms.InputTag("highPurityTracks")
32 
33 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi import photonIsolationHIProducer
34 hiPhotonSequence = cms.Sequence(photonSequence * photonIsolationHIProducer)
35 
36 # HI Ecal reconstruction
37 hiEcalClusters = cms.Sequence(hiEcalClusteringSequence)
38 hiEgammaSequence = cms.Sequence(hiPhotonSequence)
39 
40 # HI Spike Clean Sequence
41 import RecoHI.HiEgammaAlgos.hiSpikeCleaner_cfi
42 hiSpikeCleanedSC = RecoHI.HiEgammaAlgos.hiSpikeCleaner_cfi.hiSpikeCleaner.clone()
43 cleanPhotonCore = photonCore.clone(
44  scHybridBarrelProducer = cms.InputTag("hiSpikeCleanedSC")
45 )
46 cleanPhotons = photons.clone(
47  photonCoreProducer = cms.InputTag("cleanPhotonCore")
48 )
49 
50 hiPhotonCleaningSequence = cms.Sequence(hiSpikeCleanedSC *
51  cleanPhotonCore *
52  cleanPhotons)