CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/HeavyIonsAnalysis/Configuration/python/HI_PhotonSkim_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # HLT photon trigger
00004 import HLTrigger.HLTfilters.hltHighLevel_cfi
00005 hltPhotonHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
00006 hltPhotonHI.HLTPaths = ["HLT_HIPhoton15"]
00007 hltPhotonHI.throw = False
00008 hltPhotonHI.andOr = True
00009 
00010 # photon selection
00011 goodPhotons = cms.EDFilter("PhotonSelector",
00012     src = cms.InputTag("photons"),
00013     cut = cms.string('et > 20 && hadronicOverEm < 0.1 && r9 > 0.8')
00014 )
00015 
00016 # leading photon E_T filter
00017 photonFilter = cms.EDFilter("EtMinPhotonCountFilter",
00018     src = cms.InputTag("goodPhotons"),
00019     etMin = cms.double(40.0),
00020     minNumber = cms.uint32(1)
00021 )
00022 
00023 # supercluster cleaning sequence (output = cleanPhotons)
00024 from RecoHI.HiEgammaAlgos.HiEgamma_cff import *
00025 
00026 # photon selection of spike-cleaned collection
00027 goodCleanPhotons = goodPhotons.clone(src=cms.InputTag("cleanPhotons"))
00028 
00029 # leading E_T filter on cleaned collection
00030 cleanPhotonFilter = photonFilter.clone(src=cms.InputTag("goodCleanPhotons"))
00031 
00032 # photon skim sequence
00033 photonSkimSequence = cms.Sequence(hltPhotonHI
00034                                   * goodPhotons
00035                                   * photonFilter
00036                                   * hiPhotonCleaningSequence
00037                                   * goodCleanPhotons
00038                                   * cleanPhotonFilter
00039                                   )
00040 
00041 # two-photon E_T filter
00042 twoPhotonFilter = cms.EDFilter("EtMinPhotonCountFilter",
00043     src = cms.InputTag("goodPhotons"),
00044     etMin = cms.double(20.0),
00045     minNumber = cms.uint32(2)
00046 )
00047 
00048 # select pairs around Z mass
00049 photonCombiner = cms.EDProducer("CandViewShallowCloneCombiner",
00050   checkCharge = cms.bool(False),
00051   cut = cms.string('60 < mass < 120'),
00052   decay = cms.string('goodCleanPhotons goodCleanPhotons')
00053 )
00054 
00055 photonPairCounter = cms.EDFilter("CandViewCountFilter",
00056   src = cms.InputTag("photonCombiner"),
00057   minNumber = cms.uint32(1)
00058 )
00059 
00060 # Z->ee skim sequence
00061 zEESkimSequence = cms.Sequence(hltPhotonHI
00062                                * goodPhotons
00063                                * twoPhotonFilter
00064                                * hiPhotonCleaningSequence
00065                                * goodCleanPhotons
00066                                * photonCombiner
00067                                * photonPairCounter
00068                                )
00069