CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/ElectroWeakAnalysis/Utilities/python/goldenZmmSelectionVBTF_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 import copy
00004 
00005 # Trigger requirements
00006 import HLTrigger.HLTfilters.hltHighLevel_cfi
00007 zmmHLTFilter = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
00008 zmmHLTFilter.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT")
00009 zmmHLTFilter.HLTPaths = ["HLT_Mu9", "HLT_Mu11", "HLT_Mu15"]
00010 zmmHLTFilter.throw = cms.bool(False)
00011 
00012 # Cuts for both muons
00013 goodMuons = cms.EDFilter("MuonViewRefSelector",
00014   src = cms.InputTag("muons"),
00015   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'),
00016   filter = cms.bool(True)
00017 )
00018 
00019 # Cuts on dimuon system
00020 zmmCands = cms.EDProducer("CandViewShallowCloneCombiner",
00021     checkCharge = cms.bool(True),
00022     cut = cms.string('mass>60 && mass<120 && charge=0'),
00023     decay = cms.string("goodMuons@+ goodMuons@-")
00024 )
00025 zmmFilter = cms.EDFilter("CandViewCountFilter",
00026     src = cms.InputTag("zmmCands"),
00027     minNumber = cms.uint32(1)
00028 )
00029 
00030 # Selection sequence
00031 goldenZmmSelectionSequence = cms.Sequence(
00032      zmmHLTFilter *
00033      goodMuons *
00034      zmmCands*zmmFilter
00035 )