CMS 3D CMS Logo

extraflags_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 from PhysicsTools.NanoAOD.globalVariablesTableProducer_cfi import globalVariablesTableProducer
4 
5 # Bad/clone muon filters - tagging mode to keep the event
6 from RecoMET.METFilters.badGlobalMuonTaggersMiniAOD_cff import badGlobalMuonTaggerMAOD, cloneGlobalMuonTaggerMAOD
7 badGlobalMuonTagger = badGlobalMuonTaggerMAOD.clone(
8  taggingMode = True
9 )
10 
11 cloneGlobalMuonTagger = cloneGlobalMuonTaggerMAOD.clone(
12  taggingMode = True
13 )
14 
15 from RecoMET.METFilters.BadPFMuonFilter_cfi import BadPFMuonFilter
16 BadPFMuonTagger = BadPFMuonFilter.clone(
17  PFCandidates = cms.InputTag("packedPFCandidates"),
18  muons = cms.InputTag("slimmedMuons"),
19  vtx = cms.InputTag("offlineSlimmedPrimaryVertices"),
20  taggingMode = True,
21 )
22 
23 # Bad charge hadron
24 from RecoMET.METFilters.BadChargedCandidateFilter_cfi import BadChargedCandidateFilter
25 BadChargedCandidateTagger = BadChargedCandidateFilter.clone(
26  PFCandidates = cms.InputTag("packedPFCandidates"),
27  muons = cms.InputTag("slimmedMuons"),
28  vtx = cms.InputTag("offlineSlimmedPrimaryVertices"),
29  taggingMode = True,
30 )
31 
32 extraFlagsTable = globalVariablesTableProducer.clone(
33  variables = cms.PSet(
34  Flag_BadGlobalMuon = ExtVar(cms.InputTag("badGlobalMuonTagger:notBadEvent"), bool, doc = "Bad muon flag"),
35  Flag_CloneGlobalMuon = ExtVar(cms.InputTag("cloneGlobalMuonTagger:notBadEvent"), bool, doc = "Clone muon flag"),
36  Flag_BadPFMuonFilter = ExtVar(cms.InputTag("BadPFMuonTagger"), bool, doc = "Bad PF muon flag"),
37  Flag_BadChargedCandidateFilter = ExtVar(cms.InputTag("BadChargedCandidateTagger"), bool, doc = "Bad charged hadron flag"),
38  )
39 )
40 
42 ecalBadCalibFilterNanoTagger = ecalBadCalibFilter.clone(
43  taggingMode = cms.bool(True)
44 )
45 
46 
47 # empty task as default
48 extraFlagsProducersTask = cms.Task()
49 extraFlagsTableTask = cms.Task()
The muon bad track filter (2016) ________________________________________________||.
def ExtVar(tag, valtype, doc=None, precision=-1)
Definition: common_cff.py:28
The charged hadron track track filter (2016) ____________________________________||.