1 import FWCore.ParameterSet.Config
as cms
6 badGlobalMuonTagger = cms.EDFilter(
"BadGlobalMuonTagger",
7 muonPtCut = cms.double(20),
8 muons = cms.InputTag(
"slimmedMuons"),
9 selectClones = cms.bool(
False),
10 taggingMode = cms.bool(
True),
11 vtx = cms.InputTag(
"offlineSlimmedPrimaryVertices")
14 cloneGlobalMuonTagger = cms.EDFilter(
"BadGlobalMuonTagger",
15 muonPtCut = cms.double(20),
16 muons = cms.InputTag(
"slimmedMuons"),
17 selectClones = cms.bool(
True),
18 taggingMode = cms.bool(
True),
19 vtx = cms.InputTag(
"offlineSlimmedPrimaryVertices")
22 BadPFMuonTagger = cms.EDFilter(
"BadParticleFilter",
23 PFCandidates = cms.InputTag(
"particleFlow"),
25 filterType = cms.string(
'BadPFMuon'),
26 innerTrackRelErr = cms.double(1),
27 maxDR = cms.double(0.001),
28 mightGet = cms.optional.untracked.vstring,
29 minDzBestTrack = cms.double(-1),
30 minMuonPt = cms.double(100),
31 minMuonTrackRelErr = cms.double(2),
32 minPtDiffRel = cms.double(0),
33 muons = cms.InputTag(
"muons"),
34 segmentCompatibility = cms.double(0.3),
35 taggingMode = cms.bool(
False),
36 vtx = cms.InputTag(
"offlinePrimaryVertices")
40 BadChargedCandidateTagger = cms.EDFilter(
"BadParticleFilter",
41 PFCandidates = cms.InputTag(
"packedPFCandidates"),
43 filterType = cms.string(
'BadChargedCandidate'),
44 innerTrackRelErr = cms.double(1),
45 maxDR = cms.double(1e-05),
46 mightGet = cms.optional.untracked.vstring,
47 minDzBestTrack = cms.double(-1),
48 minMuonPt = cms.double(100),
49 minMuonTrackRelErr = cms.double(2),
50 minPtDiffRel = cms.double(1e-05),
51 muons = cms.InputTag(
"slimmedMuons"),
52 segmentCompatibility = cms.double(0.3),
53 taggingMode = cms.bool(
True),
54 vtx = cms.InputTag(
"offlineSlimmedPrimaryVertices")
57 extraFlagsTable = cms.EDProducer(
"GlobalVariablesTableProducer",
59 Flag_BadGlobalMuon =
ExtVar(cms.InputTag(
"badGlobalMuonTagger:notBadEvent"), bool, doc =
"Bad muon flag"),
60 Flag_CloneGlobalMuon =
ExtVar(cms.InputTag(
"cloneGlobalMuonTagger:notBadEvent"), bool, doc =
"Clone muon flag"),
61 Flag_BadPFMuonFilter =
ExtVar(cms.InputTag(
"BadPFMuonTagger"), bool, doc =
"Bad PF muon flag"),
62 Flag_BadChargedCandidateFilter =
ExtVar(cms.InputTag(
"BadChargedCandidateTagger"), bool, doc =
"Bad charged hadron flag"),
66 ecalBadCalibFilterNanoTagger = cms.EDFilter(
"EcalBadCalibFilter",
67 EcalRecHitSource = cms.InputTag(
"reducedEcalRecHitsEE"),
68 baddetEcal = cms.vuint32(
69 872439604, 872422825, 872420274, 872423218, 872423215,
70 872416066, 872435036, 872439336, 872420273, 872436907,
71 872420147, 872439731, 872436657, 872420397, 872439732,
72 872439339, 872439603, 872422436, 872439861, 872437051,
73 872437052, 872420649, 872421950, 872437185, 872422564,
74 872421566, 872421695, 872421955, 872421567, 872437184,
75 872421951, 872421694, 872437056, 872437057, 872437313
77 debug = cms.bool(
False),
78 ecalMinEt = cms.double(50.0),
79 taggingMode = cms.bool(
True)
84 extraFlagsProducersTask = cms.Task()
85 extraFlagsTableTask = cms.Task()
88 extraFlagsProducersTask_80x = cms.Task(badGlobalMuonTagger,cloneGlobalMuonTagger,BadPFMuonTagger,BadChargedCandidateTagger)
89 extraFlagsProducersTask_102x = cms.Task(ecalBadCalibFilterNanoTagger)
def ExtVar(tag, valtype, doc=None, precision=-1)