Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 import copy
00004
00005
00006
00007
00008
00009 goodGlobalMuons = cms.EDFilter("MuonViewRefSelector",
00010 src = cms.InputTag("muons"),
00011 cut = cms.string('isGlobalMuon = 1 & isTrackerMuon = 1 & pt > 20 & abs(eta)<2.1 & isolationR03().sumPt<3.0 & abs(globalTrack().dxy)<0.2 & globalTrack().hitPattern().numberOfValidTrackerHits>10'),
00012 filter = cms.bool(True)
00013 )
00014
00015
00016
00017
00018
00019 zmmCands = cms.EDFilter("CandViewShallowCloneCombiner",
00020 checkCharge = cms.bool(True),
00021 cut = cms.string('mass > 60 & mass<120 & charge=0'),
00022 decay = cms.string("goodGlobalMuons@+ goodGlobalMuons@-")
00023 )
00024
00025
00026
00027 dimuonsFilter = cms.EDFilter("CandViewCountFilter",
00028 src = cms.InputTag("zmmCands"),
00029 minNumber = cms.uint32(1)
00030 )
00031
00032
00033
00034
00035
00036 import HLTrigger.HLTfilters.hltHighLevel_cfi
00037
00038 dimuonsHLTFilter = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
00039
00040 dimuonsHLTFilter.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT")
00041
00042
00043 dimuonsHLTFilter.HLTPaths = ["HLT_Mu9"]
00044
00045
00046
00047
00048
00049
00050
00051
00052 zSelection = cms.PSet(
00053
00054 cut = cms.string("charge = 0 & daughter(0).pt > 20 & daughter(1).pt > 20 & abs(daughter(0).eta)<2.1 & abs(daughter(1).eta)<2.1 & mass > 60"),
00055 )
00056
00057
00058
00059 goodZToMuMuAtLeast1HLT = cms.EDFilter(
00060 "ZGoldenSelectorAndFilter",
00061 zSelection,
00062 TrigTag = cms.InputTag("TriggerResults::HLT"),
00063 triggerEvent = cms.InputTag( "hltTriggerSummaryAOD::HLT" ),
00064 src = cms.InputTag("zmmCands"),
00065 condition =cms.string("atLeastOneMatched"),
00066 hltPath = cms.string("HLT_Mu9"),
00067 L3FilterName= cms.string("hltSingleMu9L3Filtered9"),
00068 maxDPtRel = cms.double( 1.0 ),
00069 maxDeltaR = cms.double( 0.2 ),
00070 filter = cms.bool(True)
00071 )
00072
00073
00074
00075
00076 ewkZMuMuGoldenSequence = cms.Sequence(
00077 goodGlobalMuons
00078
00079
00080 * zmmCands
00081 * dimuonsFilter
00082
00083
00084 )
00085
00086