6 patMuons.addGenMatch = cms.bool(
False)
7 patMuons.embedHighLevelSelection = cms.bool(
True)
8 patMuons.usePV = cms.bool(
False)
10 patMuons.embedCaloMETMuonCorrs = cms.bool(
False)
11 patMuons.embedTcMETMuonCorrs = cms.bool(
False)
20 goodVertex = cms.EDFilter(
"VertexSelector",
21 src = cms.InputTag(
"offlinePrimaryVertices"),
22 cut = cms.string(
"(!isFake) & ndof > 3 & abs(z) < 15 & position.Rho < 2"),
23 filter = cms.bool(
True)
27 muonsWithPFIso = cms.EDProducer(
"MuonWithPFIsoProducerCopy",
28 MuonTag = cms.untracked.InputTag(
"muons")
29 , PfTag = cms.untracked.InputTag(
"pfNoPileUp")
30 , UsePfMuonsOnly = cms.untracked.bool(
False)
31 , TrackIsoVeto = cms.untracked.double(0.01)
32 , GammaIsoVeto = cms.untracked.double(0.07)
33 , NeutralHadronIsoVeto = cms.untracked.double(0.1)
36 patMuons.muonSource = cms.InputTag(
"muonsWithPFIso")
38 goodMuons = cms.EDFilter(
"PATMuonSelector",
39 src = cms.InputTag(
"patMuons"),
41 'pt > 10 & abs(eta) < 2.5 & isGlobalMuon & isTrackerMuon ' \
42 +
' & innerTrack.hitPattern.numberOfValidTrackerHits > 10 & innerTrack.hitPattern.numberOfValidPixelHits > 0' \
43 +
' & abs(dB)<0.2 & globalTrack.normalizedChi2 < 10' \
44 +
' & globalTrack.hitPattern.numberOfValidMuonHits > 0 & numberOfMatches > 1'
46 filter = cms.bool(
True)
51 goodMuonsPFIso =cms.EDFilter(
"PATMuonSelector",
52 src = cms.InputTag(
"goodMuons"),
54 cut = cms.string(
"trackIso() < 0.1*pt " ),
56 filter = cms.bool(
False)
61 goldenZmumuCandidatesGe0IsoMuons = cms.EDProducer(
"CandViewShallowCloneCombiner",
62 checkCharge = cms.bool(
True),
64 cut = cms.string(
'charge = 0 & max(daughter(0).pt,daughter(1).pt)>20'),
65 decay = cms.string(
"goodMuons@+ goodMuons@-")
69 goldenZmumuCandidatesGe1IsoMuons = goldenZmumuCandidatesGe0IsoMuons.clone()
70 goldenZmumuCandidatesGe1IsoMuons.decay = cms.string(
"goodMuons@+ goodMuonsPFIso@-")
72 goldenZmumuCandidatesGe2IsoMuons = goldenZmumuCandidatesGe0IsoMuons.clone()
73 goldenZmumuCandidatesGe2IsoMuons.decay = cms.string(
"goodMuonsPFIso@+ goodMuonsPFIso@-")
76 goldenZmumuFilter = cms.EDFilter(
"CandViewCountFilter",
78 src = cms.InputTag(
"goldenZmumuCandidatesGe1IsoMuons"),
79 minNumber = cms.uint32(1)
82 print "Zmumu skim will use: ", goldenZmumuFilter.src
86 goldenZmumuSelectionSequence = cms.Sequence(
93 * goldenZmumuCandidatesGe0IsoMuons
94 * goldenZmumuCandidatesGe1IsoMuons
95 * goldenZmumuCandidatesGe2IsoMuons