CMS 3D CMS Logo

PbPb_ZEESkim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 # HLT dimuon trigger
6 hltZEEHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
7 hltZEEHI.HLTPaths = ["HLT_HIDoubleEle10Gsf_v*"]
8 hltZEEHI.throw = False
9 hltZEEHI.andOr = True
10 
11 # selection of valid vertex
12 primaryVertexFilterForZEE = 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 goodElectronsForZEE = cms.EDFilter("GsfElectronRefSelector",
20  src = cms.InputTag("gedGsfElectrons"),
21  cut = cms.string("pt > 25 && abs(eta)<1.44")
22  )
23 
24 
25 diElectronsForZEE = cms.EDProducer("CandViewShallowCloneCombiner",
26  decay = cms.string("goodElectronsForZEE goodElectronsForZEE"),
27  checkCharge = cms.bool(False),
28  cut = cms.string("mass > 80 && mass < 110")
29  )
30 
31 # dilepton counter
32 diElectronsFilterForZEE = cms.EDFilter("CandViewCountFilter",
33  src = cms.InputTag("diElectronsForZEE"),
34  minNumber = cms.uint32(1)
35  )
36 
37 # Z->ee skim sequence
38 zEESkimSequence = cms.Sequence(
39  hltZEEHI *
40  primaryVertexFilterForZEE *
41  goodElectronsForZEE *
42  diElectronsForZEE *
43  diElectronsFilterForZEE
44 )