CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/DPGAnalysis/Skims/python/ZMuSkim_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 ### HLT filter
00004 import copy
00005 from HLTrigger.HLTfilters.hltHighLevel_cfi import *
00006 ZMuHLTFilter = copy.deepcopy(hltHighLevel)
00007 ZMuHLTFilter.throw = cms.bool(False)
00008 ZMuHLTFilter.HLTPaths = ["HLT_Mu*","HLT_IsoMu*","HLT_DoubleMu*"]
00009 
00010 ### Z -> MuMu candidates
00011 
00012 # Get muons of needed quality for Zs
00013 looseMuonsForZ = cms.EDFilter("MuonSelector",
00014                              src = cms.InputTag("muons"),
00015                              cut = cms.string('pt > 10 && abs(eta)<2.4 && isGlobalMuon = 1 && isTrackerMuon = 1 && abs(innerTrack().dxy)<2.0'),
00016                              filter = cms.bool(True)                                
00017                              )
00018 
00019 tightMuonsForZ = cms.EDFilter("MuonSelector",
00020                              src = cms.InputTag("looseMuonsForZ"),
00021                              cut = cms.string('pt > 20'),
00022                              filter = cms.bool(True)                                
00023                              )
00024 
00025 # build Z-> MuMu candidates
00026 dimuons = cms.EDProducer("CandViewShallowCloneCombiner",
00027                          checkCharge = cms.bool(False),
00028                          cut = cms.string('mass > 30'),
00029                          decay = cms.string("tightMuonsForZ looseMuonsForZ")
00030                          )
00031 
00032 # Z filter
00033 dimuonsFilter = cms.EDFilter("CandViewCountFilter",
00034                              src = cms.InputTag("dimuons"),
00035                              minNumber = cms.uint32(1)
00036                              )
00037 
00038 # Z Skim sequence
00039 diMuonSelSeq = cms.Sequence(ZMuHLTFilter *
00040                             looseMuonsForZ *
00041                             tightMuonsForZ *
00042                             dimuons *
00043                             dimuonsFilter
00044                             )
00045 
00046