1 import FWCore.ParameterSet.Config
as cms
5 from RecoMET.METFilters.badGlobalMuonTaggersMiniAOD_cff
import badGlobalMuonTaggerMAOD, cloneGlobalMuonTaggerMAOD
6 badGlobalMuonTagger = badGlobalMuonTaggerMAOD.clone(
10 cloneGlobalMuonTagger = cloneGlobalMuonTaggerMAOD.clone(
15 BadPFMuonTagger = BadPFMuonFilter.clone(
16 PFCandidates = cms.InputTag(
"packedPFCandidates"),
17 muons = cms.InputTag(
"slimmedMuons"),
18 vtx = cms.InputTag(
"offlineSlimmedPrimaryVertices"),
24 BadChargedCandidateTagger = BadChargedCandidateFilter.clone(
25 PFCandidates = cms.InputTag(
"packedPFCandidates"),
26 muons = cms.InputTag(
"slimmedMuons"),
27 vtx = cms.InputTag(
"offlineSlimmedPrimaryVertices"),
31 extraFlagsTable = cms.EDProducer(
"GlobalVariablesTableProducer",
33 Flag_BadGlobalMuon =
ExtVar(cms.InputTag(
"badGlobalMuonTagger:notBadEvent"), bool, doc =
"Bad muon flag"),
34 Flag_CloneGlobalMuon =
ExtVar(cms.InputTag(
"cloneGlobalMuonTagger:notBadEvent"), bool, doc =
"Clone muon flag"),
35 Flag_BadPFMuonFilter =
ExtVar(cms.InputTag(
"BadPFMuonTagger"), bool, doc =
"Bad PF muon flag"),
36 Flag_BadChargedCandidateFilter =
ExtVar(cms.InputTag(
"BadChargedCandidateTagger"), bool, doc =
"Bad charged hadron flag"),
40 extraFlagsProducers = cms.Sequence(badGlobalMuonTagger + cloneGlobalMuonTagger + BadPFMuonTagger + BadChargedCandidateTagger)
43 ecalBadCalibFilterNanoTagger = ecalBadCalibFilter.clone(
44 taggingMode = cms.bool(
True)
47 extraFlagsProducers102x = cms.Sequence(ecalBadCalibFilterNanoTagger)