CMS 3D CMS Logo

HI_ZMMSkim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # HLT dimuon trigger
5 hltZMMHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
6 hltZMMHI.HLTPaths = ["HLT_HIL2DoubleMu3"]
7 hltZMMHI.throw = False
8 hltZMMHI.andOr = True
9 
10 # selection of valid vertex
11 primaryVertexFilterForZMM = cms.EDFilter("VertexSelector",
12  src = cms.InputTag("hiSelectedVertex"),
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 # selection of dimuons (at least STA+STA) with mass in Z range
18 muonSelector = cms.EDFilter("MuonSelector",
19  src = cms.InputTag("muons"),
20  cut = cms.string("(isStandAloneMuon || isGlobalMuon) && pt > 1."),
21  filter = cms.bool(True)
22  )
23 
24 muonFilter = cms.EDFilter("MuonCountFilter",
25  src = cms.InputTag("muonSelector"),
26  minNumber = cms.uint32(1)
27  )
28 
29 dimuonMassCut = cms.EDProducer("CandViewShallowCloneCombiner",
30  checkCharge = cms.bool(True),
31  cut = cms.string(' 60 < mass < 120'),
32  decay = cms.string("muonSelector@+ muonSelector@-")
33  )
34 
35 dimuonMassCutFilter = cms.EDFilter("CandViewCountFilter",
36  src = cms.InputTag("dimuonMassCut"),
37  minNumber = cms.uint32(1)
38  )
39 
40 # Z->mumu skim sequence
41 zMMSkimSequence = cms.Sequence(
42  hltZMMHI *
43  primaryVertexFilterForZMM *
44  muonSelector *
45  muonFilter *
46  dimuonMassCut *
47  dimuonMassCutFilter
48  )
hltHighLevel_cfi