Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002 from PhysicsTools.PatAlgos.producersLayer1.muonProducer_cfi import patMuons
00003 patMuons.addGenMatch = cms.bool(False)
00004
00005 goodVertex = cms.EDFilter("VertexSelector",
00006 src = cms.InputTag("offlinePrimaryVertices"),
00007 cut = cms.string("(!isFake) & ndof > 3 & abs(z) < 15 & position.Rho < 2"),
00008 filter = cms.bool(True)
00009 )
00010
00011 goodMuons = cms.EDFilter("PATMuonSelector",
00012 src = cms.InputTag("patMuons"),
00013 cut = cms.string(
00014 'pt > 10 && abs(eta) < 2.5 && isGlobalMuon && isTrackerMuon '
00015 ' && innerTrack.hitPattern.numberOfValidTrackerHits > 9 & innerTrack.hitPattern.numberOfValidPixelHits > 0'
00016 ' && abs(dB) < 0.2 && globalTrack.normalizedChi2 < 10'
00017 ' && globalTrack.hitPattern.numberOfValidMuonHits > 0 && numberOfMatches > 1'
00018 ),
00019 filter = cms.bool(True)
00020 )
00021
00022 goodMuonsPFIso = cms.EDFilter("PATMuonRefSelector",
00023 src = cms.InputTag("goodMuons"),
00024 cut = cms.string('(pfIsolationR04().sumChargedHadronPt - pfIsolationR04().sumPUPt)<0.1*pt'),
00025 filter = cms.bool(False)
00026 )
00027
00028 goldenZmumuCandidatesGe0IsoMuons = cms.EDProducer("CandViewShallowCloneCombiner",
00029 checkCharge = cms.bool(True),
00030
00031 cut = cms.string('charge = 0 & max(daughter(0).pt,daughter(1).pt)>20'),
00032 decay = cms.string("goodMuons@+ goodMuons@-")
00033 )
00034
00035
00036
00037
00038
00039
00040 goldenZmumuCandidatesGe2IsoMuons = goldenZmumuCandidatesGe0IsoMuons.clone(
00041 decay = cms.string("goodMuonsPFIso@+ goodMuonsPFIso@-")
00042 )
00043
00044 goldenZmumuFilter = cms.EDFilter("CandViewCountFilter",
00045 src = cms.InputTag("goldenZmumuCandidatesGe0IsoMuons"),
00046
00047 minNumber = cms.uint32(1)
00048 )
00049
00050 goldenZmumuSelectionSequence = cms.Sequence(
00051 goodVertex
00052 * patMuons
00053 * goodMuons
00054 * goodMuonsPFIso
00055 * goldenZmumuCandidatesGe0IsoMuons
00056
00057 * goldenZmumuCandidatesGe2IsoMuons
00058 * goldenZmumuFilter
00059 )