CMS 3D CMS Logo

objectEnergyScale_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
88 
89 
90 ## initialize random number generator
91 RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
92  scaledElectrons = cms.PSet(
93  initialSeed = cms.untracked.uint32(897867),
94  engineName = cms.untracked.string('HepJamesRandom')
95  ),
96  scaledMuons = cms.PSet(
97  initialSeed = cms.untracked.uint32(17987),
98  engineName = cms.untracked.string('HepJamesRandom')
99  ),
100  theSource = cms.PSet(
101  initialSeed = cms.untracked.uint32(7893456),
102  engineName = cms.untracked.string('HepJamesRandom')
103  ),
104  scaledTaus = cms.PSet(
105  initialSeed = cms.untracked.uint32(38476),
106  engineName = cms.untracked.string('HepJamesRandom')
107  ),
108  scaledJets = cms.PSet(
109  initialSeed = cms.untracked.uint32(61587),
110  engineName = cms.untracked.string('HepJamesRandom')
111  ),
112  scaledMETs = cms.PSet(
113  initialSeed = cms.untracked.uint32(3489766),
114  engineName = cms.untracked.string('HepJamesRandom')
115  )
116 )
117 
118 ## Electrons
119 scaledElectrons = cms.EDFilter("ElectronEnergyScale",
120  scaledObject = cms.InputTag("selectedPatElectrons"),
121  fixMass = cms.bool(False),
122  shiftFactor = cms.double(1.),
123  useDefaultInitialResolution = cms.bool(True),
124  initialResolution = cms.double(0.),
125  initialResolutionByFraction = cms.bool(True),
126  worsenResolution = cms.double(1.),
127  worsenResolutionByFactor = cms.bool(True),
128 )
129 
130 ## Muons
131 scaledMuons = cms.EDFilter("MuonEnergyScale",
132  scaledObject = cms.InputTag("selectedPatMuons"),
133  fixMass = cms.bool(False),
134  shiftFactor = cms.double(1.),
135  useDefaultInitialResolution = cms.bool(True),
136  initialResolution = cms.double(0.),
137  initialResolutionByFraction = cms.bool(True),
138  worsenResolution = cms.double(1.),
139  worsenResolutionByFactor = cms.bool(True),
140 )
141 
142 ## Taus
143 scaledTaus = cms.EDFilter("TauEnergyScale",
144  scaledObject = cms.InputTag("selectedPatTaus"),
145  fixMass = cms.bool(False),
146  shiftFactor = cms.double(1.),
147  useDefaultInitialResolution = cms.bool(True),
148  initialResolution = cms.double(0.),
149  initialResolutionByFraction = cms.bool(True),
150  worsenResolution = cms.double(1.),
151  worsenResolutionByFactor = cms.bool(True),
152 )
153 
154 ## Jets
155 scaledJets = cms.EDFilter("JetEnergyScale",
156  scaledObject = cms.InputTag("selectedPatJets"),
157  fixMass = cms.bool(False),
158  shiftFactor = cms.double(1.),
159  useDefaultInitialResolution = cms.bool(True),
160  initialResolution = cms.double(0.),
161  initialResolutionByFraction = cms.bool(True),
162  worsenResolution = cms.double(1.),
163  worsenResolutionByFactor = cms.bool(True),
164 )
165 
166 ## METs
167 scaledMETs = cms.EDFilter("METEnergyScale",
168  scaledObject = cms.InputTag("selectedPatMETs"),
169  fixMass = cms.bool(False),
170  shiftFactor = cms.double(1.),
171  useDefaultInitialResolution = cms.bool(True),
172  initialResolution = cms.double(0.),
173  initialResolutionByFraction = cms.bool(True),
174  worsenResolution = cms.double(1.),
175  worsenResolutionByFactor = cms.bool(True),
176 )
177 
178 ## Standard sequence for all Objects
179 scaledObjects = cms.Sequence(
180  scaledElectrons +
181  scaledMuons +
182  scaledJets +
183 # scaledTaus +
184  scaledMETs
185 )