CMS 3D CMS Logo

extraflags_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 
4 # Bad/clone muon filters - tagging mode to keep the event
5 from RecoMET.METFilters.badGlobalMuonTaggersMiniAOD_cff import badGlobalMuonTaggerMAOD, cloneGlobalMuonTaggerMAOD
6 badGlobalMuonTagger = badGlobalMuonTaggerMAOD.clone(
7  taggingMode = True
8 )
9 
10 cloneGlobalMuonTagger = cloneGlobalMuonTaggerMAOD.clone(
11  taggingMode = True
12 )
13 
14 from RecoMET.METFilters.BadPFMuonFilter_cfi import BadPFMuonFilter
15 BadPFMuonTagger = BadPFMuonFilter.clone(
16  PFCandidates = cms.InputTag("packedPFCandidates"),
17  muons = cms.InputTag("slimmedMuons"),
18  taggingMode = True,
19 )
20 
21 # Bad charge hadron
22 from RecoMET.METFilters.BadChargedCandidateFilter_cfi import BadChargedCandidateFilter
23 BadChargedCandidateTagger = BadChargedCandidateFilter.clone(
24  PFCandidates = cms.InputTag("packedPFCandidates"),
25  muons = cms.InputTag("slimmedMuons"),
26  taggingMode = True,
27 )
28 
29 extraFlagsTable = cms.EDProducer("GlobalVariablesTableProducer",
30  variables = cms.PSet(
31  Flag_BadGlobalMuon = ExtVar(cms.InputTag("badGlobalMuonTagger:notBadEvent"), bool, doc = "Bad muon flag"),
32  Flag_CloneGlobalMuon = ExtVar(cms.InputTag("cloneGlobalMuonTagger:notBadEvent"), bool, doc = "Clone muon flag"),
33  Flag_BadPFMuonFilter = ExtVar(cms.InputTag("BadPFMuonTagger"), bool, doc = "Bad PF muon flag"),
34  Flag_BadChargedCandidateFilter = ExtVar(cms.InputTag("BadChargedCandidateTagger"), bool, doc = "Bad charged hadron flag"),
35  )
36 )
37 
38 extraFlagsProducers = cms.Sequence(badGlobalMuonTagger + cloneGlobalMuonTagger + BadPFMuonTagger + BadChargedCandidateTagger)
The muon bad track filter (2016) ________________________________________________||.
def ExtVar(tag, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:31
The charged hadron track track filter (2016) ____________________________________||.