CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
goldenZmmSelectionVBTF_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import copy
4 
5 # Trigger requirements
7 zmmHLTFilter = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
8 zmmHLTFilter.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT")
9 zmmHLTFilter.HLTPaths = ["HLT_Mu9", "HLT_Mu11", "HLT_Mu15"]
10 zmmHLTFilter.throw = cms.bool(False)
11 
12 # Cuts for both muons
13 goodMuons = cms.EDFilter("MuonViewRefSelector",
14  src = cms.InputTag("muons"),
15  cut = cms.string('pt>20. && abs(eta)<2.1 && isGlobalMuon=1 && isTrackerMuon=1 && abs(globalTrack().dxy)<0.2 && globalTrack().normalizedChi2<10 && globalTrack().hitPattern().numberOfValidTrackerHits>10 && globalTrack().hitPattern().numberOfValidMuonHits>0 && globalTrack().hitPattern().numberOfValidPixelHits>0 && numberOfMatches>1 && (isolationR03().sumPt+isolationR03().emEt+isolationR03().hadEt)<0.15*pt'),
16  filter = cms.bool(True)
17 )
18 
19 # Cuts on dimuon system
20 zmmCands = cms.EDProducer("CandViewShallowCloneCombiner",
21  checkCharge = cms.bool(True),
22  cut = cms.string('mass>60 && mass<120 && charge=0'),
23  decay = cms.string("goodMuons@+ goodMuons@-")
24 )
25 zmmFilter = cms.EDFilter("CandViewCountFilter",
26  src = cms.InputTag("zmmCands"),
27  minNumber = cms.uint32(1)
28 )
29 
30 # Selection sequence
31 goldenZmmSelectionSequence = cms.Sequence(
32  zmmHLTFilter *
33  goodMuons *
34  zmmCands*zmmFilter
35 )
hltHighLevel_cfi