CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
patRefSel_refMuJets_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 from EgammaAnalysis.ElectronTools.electronRegressionEnergyProducer_cfi import eleRegressionEnergy
5 from EgammaAnalysis.ElectronTools.calibratedPatElectrons_cfi import calibratedPatElectrons
8 
9 # Step 1
10 
11 selectedMuons = selectedPatMuons.clone(
12  src = cms.InputTag( 'patMuons' )
13 , cut = '' # muonCut
14 )
15 
16 preSignalMuons = selectedPatMuons.clone(
17  src = cms.InputTag( 'selectedMuons' )
18 , cut = '' # signalMuonCut
19 )
20 
21 signalMuons = cms.EDProducer(
22  "MuonSelectorVertex"
23 , muonSource = cms.InputTag( 'preSignalMuons' )
24 , vertexSource = cms.InputTag( 'offlinePrimaryVertices' )
25 , maxDZ = cms.double( 999. ) # muonVertexMaxDZ
26 )
27 
28 standAloneSignalMuonFilter = cms.EDFilter(
29  "PATCandViewCountFilter"
30 , src = cms.InputTag( 'signalMuons' )
31 , minNumber = cms.uint32( 1 )
32 , maxNumber = cms.uint32( 1 )
33 )
34 
35 # Step 2
36 
37 standAloneLooseMuonVetoFilter = cms.EDFilter(
38  "PATCandViewCountFilter"
39 , src = cms.InputTag( 'selectedMuons' )
40 , minNumber = cms.uint32( 0 )
41 , maxNumber = cms.uint32( 1 )
42 )
43 
44 # Step 3
45 
46 electronsWithRegression = eleRegressionEnergy.clone(
47  inputElectronsTag = cms.InputTag( 'patElectrons' )
48 , rhoCollection = cms.InputTag( 'fixedGridRhoFastjetAll' )
49 , vertexCollection = cms.InputTag( 'offlinePrimaryVertices' )
50 )
51 calibratedElectrons = calibratedPatElectrons.clone(
52  inputPatElectronsTag = cms.InputTag( 'electronsWithRegression' )
53 , inputDataset = 'Summer12'
54 )
55 
56 selectedElectrons = selectedPatElectrons.clone(
57  src = cms.InputTag( 'patElectrons' )
58 , cut = '' # electronCut
59 )
60 
61 standAloneElectronVetoFilter = cms.EDFilter(
62  "PATCandViewCountFilter"
63 , src = cms.InputTag( 'selectedElectrons' )
64 , minNumber = cms.uint32( 0 )
65 , maxNumber = cms.uint32( 0 )
66 )
67 
68 # Step 4
69 
70 selectedJets = selectedPatJets.clone(
71  src = cms.InputTag( 'patJets' )
72 , cut = '' # jetCut
73 )
74 
75 signalVeryTightJets = selectedPatJets.clone(
76  src = cms.InputTag( 'selectedJets' )
77 , cut = '' # veryTightJetCut
78 )
79 
80 standAloneSignalVeryTightJetsFilter = cms.EDFilter(
81  "PATCandViewCountFilter"
82 , src = cms.InputTag( 'signalVeryTightJets' )
83 , minNumber = cms.uint32( 1 )
84 , maxNumber = cms.uint32( 99 )
85 )
86 
87 signalTightJets = selectedPatJets.clone(
88  src = cms.InputTag( 'selectedJets' )
89 , cut = '' # tightJetCut
90 )
91 
92 standAloneSignalTightJetsFilter = cms.EDFilter(
93  "PATCandViewCountFilter"
94 , src = cms.InputTag( 'signalTightJets' )
95 , minNumber = cms.uint32( 2 )
96 , maxNumber = cms.uint32( 99 )
97 )
98 
99 signalLooseJets = selectedPatJets.clone(
100  src = cms.InputTag( 'selectedJets' )
101 , cut = '' # looseJetCut
102 )
103 
104 standAloneSignalLooseJetsFilter = cms.EDFilter(
105  "PATCandViewCountFilter"
106 , src = cms.InputTag( 'signalLooseJets' )
107 , minNumber = cms.uint32( 3 )
108 , maxNumber = cms.uint32( 99 )
109 )
110 
111 # Step 5
112 
113 signalVeryLooseJets = selectedPatJets.clone(
114  src = cms.InputTag( 'selectedJets' )
115 , cut = '' # veryLooseJetCut
116 )
117 
118 standAloneSignalVeryLooseJetsFilter = cms.EDFilter(
119  "PATCandViewCountFilter"
120 , src = cms.InputTag( 'signalVeryLooseJets' )
121 , minNumber = cms.uint32( 4 )
122 , maxNumber = cms.uint32( 99 )
123 )
124 
125 # Step 6
126 
127 selectedBTagJets = selectedPatJets.clone(
128  src = cms.InputTag( 'selectedJets' )
129 , cut = '' # btagCut
130 )
131 
132 standAloneSignalBTagsFilter = cms.EDFilter(
133  "PATCandViewCountFilter"
134 , src = cms.InputTag( 'selectedBTagJets' )
135 , minNumber = cms.uint32( 2 )
136 , maxNumber = cms.uint32( 99 )
137 )