CMS 3D CMS Logo

extraflags_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
4 
5 # Bad/clone muon filters - tagging mode to keep the event
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")
12 )
13 
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")
20 )
21 
22 BadPFMuonTagger = cms.EDFilter("BadParticleFilter",
23  PFCandidates = cms.InputTag("particleFlow"),
24  algo = cms.int32(14),
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")
37 )
38 
39 # Bad charge hadron
40 BadChargedCandidateTagger = cms.EDFilter("BadParticleFilter",
41  PFCandidates = cms.InputTag("packedPFCandidates"),
42  algo = cms.int32(14),
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")
55 )
56 
57 extraFlagsTable = cms.EDProducer("GlobalVariablesTableProducer",
58  variables = cms.PSet(
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"),
63  )
64 )
65 
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
76  ),
77  debug = cms.bool(False),
78  ecalMinEt = cms.double(50.0),
79  taggingMode = cms.bool(True)
80 )
81 
82 
83 # empty task as default
84 extraFlagsProducersTask = cms.Task()
85 extraFlagsTableTask = cms.Task()
86 
87 
88 extraFlagsProducersTask_80x = cms.Task(badGlobalMuonTagger,cloneGlobalMuonTagger,BadPFMuonTagger,BadChargedCandidateTagger)
89 extraFlagsProducersTask_102x = cms.Task(ecalBadCalibFilterNanoTagger)
90 
def ExtVar(tag, valtype, doc=None, precision=-1)
Definition: common_cff.py:27