CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/HeavyIonsAnalysis/Configuration/python/HI_ZMMSkim_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # HLT dimuon trigger
00004 import HLTrigger.HLTfilters.hltHighLevel_cfi
00005 hltZMMHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
00006 hltZMMHI.HLTPaths = ["HLT_HIL2DoubleMu3"]
00007 hltZMMHI.throw = False
00008 hltZMMHI.andOr = True
00009 
00010 # selection of valid vertex
00011 primaryVertexFilterForZMM = cms.EDFilter("VertexSelector",
00012     src = cms.InputTag("hiSelectedVertex"),
00013     cut = cms.string("!isFake && abs(z) <= 25 && position.Rho <= 2"), 
00014     filter = cms.bool(True),   # otherwise it won't filter the events
00015     )
00016 
00017 # selection of dimuons (at least STA+STA) with mass in Z range
00018 muonSelector = cms.EDFilter("muonSelector",
00019     src = cms.InputTag("muons"),
00020     cut = cms.string("(isStandAloneMuon || isGlobalMuon) && pt > 1."),
00021     filter = cms.bool(True)
00022     )
00023 
00024 muonFilter = cms.EDFilter("MuonCountFilter",
00025     src = cms.InputTag("muonSelector"),
00026     minNumber = cms.uint32(1)
00027     )
00028 
00029 dimuonMassCut = cms.EDProducer("CandViewShallowCloneCombiner",
00030     checkCharge = cms.bool(True),
00031     cut = cms.string(' 60 < mass < 120'),
00032     decay = cms.string("muonSelector@+ muonSelector@-")
00033     )
00034 
00035 dimuonMassCutFilter = cms.EDFilter("CandViewCountFilter",
00036     src = cms.InputTag("dimuonMassCut"),
00037     minNumber = cms.uint32(1)
00038     )
00039 
00040 # Z->mumu skim sequence
00041 zMMSkimSequence = cms.Sequence(
00042     hltZMMHI *
00043     primaryVertexFilterForZMM *
00044     muonSelector *
00045     muonFilter *
00046     dimuonMassCut *
00047     dimuonMassCutFilter
00048     )