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  vtx = cms.InputTag("offlineSlimmedPrimaryVertices"),
19  taggingMode = True,
20 )
21 
22 # Bad charge hadron
23 from RecoMET.METFilters.BadChargedCandidateFilter_cfi import BadChargedCandidateFilter
24 BadChargedCandidateTagger = BadChargedCandidateFilter.clone(
25  PFCandidates = cms.InputTag("packedPFCandidates"),
26  muons = cms.InputTag("slimmedMuons"),
27  vtx = cms.InputTag("offlineSlimmedPrimaryVertices"),
28  taggingMode = True,
29 )
30 
31 extraFlagsTable = cms.EDProducer("GlobalVariablesTableProducer",
32  variables = cms.PSet(
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"),
37  )
38 )
39 
40 extraFlagsProducers = cms.Sequence(badGlobalMuonTagger + cloneGlobalMuonTagger + BadPFMuonTagger + BadChargedCandidateTagger)
41 
43 ecalBadCalibFilterNanoTagger = ecalBadCalibFilter.clone(
44  taggingMode = cms.bool(True)
45 )
46 
47 extraFlagsProducers102x = cms.Sequence(ecalBadCalibFilterNanoTagger)
common_cff
common_cff.ExtVar
def ExtVar(tag, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:31
BadPFMuonFilter_cfi
The muon bad track filter (2016) ________________________________________________||.
ecalBadCalibFilter_cfi
BadChargedCandidateFilter_cfi
The charged hadron track track filter (2016) ____________________________________||.