CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PA_ZEESkim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 # HLT dimuon trigger
6 hltZEEPA = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
7 hltZEEPA.HLTPaths = ["HLT_PADoublePhoton15_Eta3p1_Mass50_1000_v*"]
8 hltZEEPA.throw = False
9 hltZEEPA.andOr = True
10 
11 # selection of valid vertex
12 primaryVertexFilterForZEEPA = cms.EDFilter("VertexSelector",
13  src = cms.InputTag("offlinePrimaryVertices"),
14  cut = cms.string("!isFake && abs(z) <= 25 && position.Rho <= 2"),
15  filter = cms.bool(True), # otherwise it won't filter the events
16  )
17 
18 # single lepton selector
19 goodElectronsForZEEPA = cms.EDFilter("GsfElectronRefSelector",
20  src = cms.InputTag("gedGsfElectrons"),
21  cut = cms.string("pt > 25 && abs(eta)<1.44")
22  )
23 
24 ## dilepton selectors
25 diElectronsForZEEPA = cms.EDProducer("CandViewShallowCloneCombiner",
26  decay = cms.string("goodElectronsForZEEPA goodElectronsForZEEPA"),
27  checkCharge = cms.bool(False),
28  cut = cms.string("mass > 80 && mass < 110")
29  )
30 
31 # dilepton counter
32 diElectronsFilterForZEEPA = cms.EDFilter("CandViewCountFilter",
33  src = cms.InputTag("diElectronsForZEEPA"),
34  minNumber = cms.uint32(1)
35  )
36 
37 # Z->ee skim sequence
38 zEEPASkimSequence = cms.Sequence(
39  hltZEEPA *
40  primaryVertexFilterForZEEPA *
41  goodElectronsForZEEPA *
42  diElectronsForZEEPA *
43  diElectronsFilterForZEEPA
44 )