CMS 3D CMS Logo

IsoPhotonEBSkim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from HLTrigger.HLTfilters.hltHighLevel_cfi import hltHighLevel
3 IsoPhotonEBHLTFilter = hltHighLevel.clone(
4  throw = False,
5  HLTPaths = ["HLT_Photon110EB_TightID_TightIso_v*"]
6 )
7 
8 # run on MIONAOD
9 RUN_ON_MINIAOD = False
10 
11 
12 # cuts
13 PHOTON_CUT=("pt > 110 && abs(eta)<1.4442")
14 
15 # single lepton selectors
16 if RUN_ON_MINIAOD:
17  goodPhotons = cms.EDFilter("PATElectronRefSelector",
18  src = cms.InputTag("slimmedPhotons"),
19  cut = cms.string(PHOTON_CUT)
20  )
21 else:
22  goodPhotons = cms.EDFilter("PhotonRefSelector",
23  src = cms.InputTag("gedPhotons"),
24  cut = cms.string(PHOTON_CUT)
25  )
26 
27 photonIDWP = cms.PSet( #first for barrel, second for endcap.
28  full5x5_sigmaIEtaIEtaCut = cms.vdouble(0.011 ,-1. ) , # full5x5_sigmaIEtaIEtaCut
29  hOverECut = cms.vdouble(0.1 ,-1. ) , # hOverECut
30  relCombIsolationWithEACut = cms.vdouble(0.05 ,-1. ) # relCombIsolationWithEALowPtCut
31 )
32 
33 
34 identifiedPhotons = cms.EDFilter("IsoPhotonEBSelectorAndSkim",
35  src = cms.InputTag("goodPhotons"),
36  phID = photonIDWP,
37  absEtaMin=cms.vdouble( 0.0000, 1.0000, 1.4790, 2.0000, 2.2000, 2.3000, 2.4000),
38  absEtaMax=cms.vdouble( 1.0000, 1.4790, 2.0000, 2.2000, 2.3000, 2.4000, 5.0000),
39  effectiveAreaValues=cms.vdouble( 0.1703, 0.1715, 0.1213, 0.1230, 0.1635, 0.1937, 0.2393),
40  rho = cms.InputTag("fixedGridRhoFastjetCentralCalo")
41  )
42 
43 identifiedPhotonsCountFilter = cms.EDFilter("CandViewCountFilter",
44  src = cms.InputTag("identifiedPhotons"),
45  minNumber = cms.uint32(1)
46  )
47 
48 
49 
50 #sequences
51 isoPhotonEBSequence = cms.Sequence(IsoPhotonEBHLTFilter*goodPhotons*identifiedPhotons*identifiedPhotonsCountFilter )