CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customizedCOC_cff.py
Go to the documentation of this file.
2 
3 cocPatElectrons = cms.EDProducer("PATElectronCleaner",
4  ## pat electron input source
5  src = cms.InputTag("isolatedPatElectrons"),
6 
7  # preselection (any string-based cut for pat::Electron)
8  preselection = cms.string(''),
9 
10  # overlap checking configurables
11  checkOverlaps = cms.PSet(
12  muons = cms.PSet(
13  src = cms.InputTag("selectedPatMuons"),
14  algorithm = cms.string("byDeltaR"),
15  preselection = cms.string(""), # don't preselect the muons
16  deltaR = cms.double(0.3),
17  checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
18  pairCut = cms.string(""),
19  requireNoOverlaps = cms.bool(False), # overlaps don't cause the electron to be discared
20  ),
21  isolatedMuons = cms.PSet(
22  src = cms.InputTag("isolatedPatMuons"),
23  algorithm = cms.string("byDeltaR"),
24  preselection = cms.string(""), # don't preselect the muons
25  deltaR = cms.double(0.3),
26  checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
27  pairCut = cms.string(""),
28  requireNoOverlaps = cms.bool(False), # overlaps don't cause the electron to be discared
29  )
30  ),
31 
32  # finalCut (any string-based cut for pat::Electron)
33  finalCut = cms.string(''),
34 )
35 
36 cocPatJets = cms.EDProducer("PATJetCleaner",
37  src = cms.InputTag("selectedPatJets"),
38 
39  # preselection (any string-based cut on pat::Jet)
40  preselection = cms.string(''),
41 
42  # overlap checking configurables
43  checkOverlaps = cms.PSet(
44  muons = cms.PSet(
45  src = cms.InputTag("selectedPatMuons"),
46  algorithm = cms.string("byDeltaR"),
47  preselection = cms.string(""),
48  deltaR = cms.double(0.5),
49  checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
50  pairCut = cms.string(""),
51  requireNoOverlaps = cms.bool(False), # overlaps don't cause the jet to be discared
52  ),
53  isolatedMuons = cms.PSet(
54  src = cms.InputTag("isolatedPatMuons"),
55  algorithm = cms.string("byDeltaR"),
56  preselection = cms.string(""),
57  deltaR = cms.double(0.5),
58  checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
59  pairCut = cms.string(""),
60  requireNoOverlaps = cms.bool(False), # overlaps don't cause the jet to be discared
61  ),
62  electrons = cms.PSet(
63  src = cms.InputTag("selectedPatElectrons"),
64  algorithm = cms.string("byDeltaR"),
65  preselection = cms.string(""),
66  deltaR = cms.double(0.5),
67  checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
68  pairCut = cms.string(""),
69  requireNoOverlaps = cms.bool(False), # overlaps don't cause the jet to be discared
70  ),
71  isolatedElectrons = cms.PSet(
72  src = cms.InputTag("isolatedPatElectrons"),
73  algorithm = cms.string("byDeltaR"),
74  preselection = cms.string(""),
75  deltaR = cms.double(0.5),
76  checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
77  pairCut = cms.string(""),
78  requireNoOverlaps = cms.bool(False), # overlaps don't cause the jet to be discared
79  ),
80  cocElectrons = cms.PSet(
81  src = cms.InputTag("cocPatElectrons"),
82  algorithm = cms.string("byDeltaR"),
83  preselection = cms.string(""),
84  deltaR = cms.double(0.5),
85  checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
86  pairCut = cms.string(""),
87  requireNoOverlaps = cms.bool(False), # overlaps don't cause the jet to be discared
88  ),
89  ),
90  # finalCut (any string-based cut on pat::Jet)
91  finalCut = cms.string(''),
92 )
93 
94 customCOC = cms.Sequence(
95  cocPatElectrons * cocPatJets
96 )