CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/ElectroWeakAnalysis/Utilities/python/goldenZmmSelectionLOOSE_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 import copy
00004 
00005 # Uncomment to use 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", "HLT_DoubleMu3"]
00010 #zmmHLTFilter.throw = cms.bool(False)
00011 
00012 # Cuts for each muon
00013 goodMuons1 = cms.EDFilter("MuonViewRefSelector",
00014   src = cms.InputTag("muons"),
00015   cut = cms.string('isGlobalMuon=1 && isTrackerMuon=1 && abs(eta)<2.1 && abs(globalTrack().dxy)<0.2 && pt>20. && 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 for each muon
00020 goodMuons2 = cms.EDFilter("MuonViewRefSelector",
00021   src = cms.InputTag("muons"),
00022   cut = cms.string('isGlobalMuon=1 && pt>20. && abs(eta)<2.4 && abs(globalTrack().dxy)<1.0 && globalTrack().hitPattern().numberOfValidTrackerHits>6'),
00023   filter = cms.bool(True)
00024 )
00025 
00026 # Cuts on dimuon system
00027 zmmCands = cms.EDProducer("CandViewShallowCloneCombiner",
00028     checkCharge = cms.bool(False),
00029     cut = cms.string('mass>60'),
00030     decay = cms.string("goodMuons1 goodMuons2")
00031 )
00032 zmmFilter = cms.EDFilter("CandViewCountFilter",
00033     src = cms.InputTag("zmmCands"),
00034     minNumber = cms.uint32(1)
00035 )
00036 
00037 # Selection sequence
00038 goldenZmmSelectionSequence = cms.Sequence(
00039      #zmmHLTFilter *
00040      goodMuons1*goodMuons2 *
00041      zmmCands*zmmFilter
00042 )