CMS 3D CMS Logo

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