test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 primaryVertexFilterForZMM = 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 muonSelectorForZMM = cms.EDFilter("MuonSelector",
19  src = cms.InputTag("muons"),
20  cut = cms.string("(isTrackerMuon && isGlobalMuon) && pt > 25."),
21  filter = cms.bool(True)
22  )
23 
24 muonFilterForZMM = cms.EDFilter("MuonCountFilter",
25  src = cms.InputTag("muonSelectorForZMM"),
26  minNumber = cms.uint32(2)
27  )
28 
29 dimuonMassCutForZMM = cms.EDProducer("CandViewShallowCloneCombiner",
30  checkCharge = cms.bool(True),
31  cut = cms.string(' 80 < mass < 110'),
32  decay = cms.string("muonSelectorForZMM@+ muonSelectorForZMM@-")
33  )
34 
35 dimuonMassCutFilterForZMM = cms.EDFilter("CandViewCountFilter",
36  src = cms.InputTag("dimuonMassCutForZMM"),
37  minNumber = cms.uint32(1)
38  )
39 
40 # Z->mumu skim sequence
41 zMMSkimSequence = cms.Sequence(
42  hltZMMPA *
43  primaryVertexFilterForZMM *
44  muonSelectorForZMM *
45  muonFilterForZMM *
46  dimuonMassCutForZMM *
47  dimuonMassCutFilterForZMM
48  )