CMS 3D CMS Logo

PbPb_EMuSkim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # HLT dimuon trigger
5 hltEMuHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
6 hltEMuHI.HLTPaths = ["HLT_HIL1Mu5Eta2p5_Ele20Gsf_v*"]
7 hltEMuHI.throw = False
8 hltEMuHI.andOr = True
9 
10 # selection of valid vertex
11 primaryVertexFilterForEMu = cms.EDFilter("VertexSelector",
12  src = cms.InputTag("offlinePrimaryVertices"),
13  cut = cms.string("!isFake && abs(z) <= 25 && position.Rho <= 2"),
14  filter = cms.bool(True), # otherwise it won't filter the events
15  )
16 
17 # single lepton selector
18 electronSelectorForEMu = cms.EDFilter("GsfElectronRefSelector",
19  src = cms.InputTag("gedGsfElectrons"),
20  cut = cms.string("pt > 20 && abs(eta)<1.44")
21  )
22 
23 muonSelectorForEMu = cms.EDFilter("MuonSelector",
24  src = cms.InputTag("muons"),
25  cut = cms.string("(isTrackerMuon && isGlobalMuon) && pt > 20."),
26  filter = cms.bool(True)
27  )
28 
29 
30 # EMu skim sequence
31 emuSkimSequence = cms.Sequence(
32  hltEMuHI *
33  primaryVertexFilterForEMu *
34  electronSelectorForEMu *
35  muonSelectorForEMu
36 )