CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
fftjetcorrectionesproducer_cfi Namespace Reference

Classes

class  ValidFFTJetCorr
 

Functions

def configure_FFTGenericScaleCalculator
 
def configure_fftjet_pooldbessource
 
def configure_L2L3_fftjet_esproducer
 
def configure_L2Res_fftjet_esproducer
 
def configure_L3Res_fftjet_esproducer
 

Variables

dictionary fftjet_corr_types
 

Function Documentation

def fftjetcorrectionesproducer_cfi.configure_FFTGenericScaleCalculator (   variables,
  factorsForTheseVariables 
)

Definition at line 209 of file fftjetcorrectionesproducer_cfi.py.

210 def configure_FFTGenericScaleCalculator(variables, factorsForTheseVariables):
211  if len(variables) == 0:
212  raise ValueError("Must have at least one variable mapped")
213  if len(variables) != len(factorsForTheseVariables):
214  raise ValueError("Incompatible length of the input arguments")
215  subclass = cms.PSet(
216  Class = cms.string("FFTGenericScaleCalculator"),
217  factors = cms.vdouble(factorsForTheseVariables),
218  eta=cms.int32(-1),
219  phi=cms.int32(-1),
220  pt=cms.int32(-1),
221  logPt=cms.int32(-1),
222  mass=cms.int32(-1),
223  logMass=cms.int32(-1),
224  energy=cms.int32(-1),
225  logEnergy=cms.int32(-1),
226  gamma=cms.int32(-1),
227  logGamma=cms.int32(-1),
228  pileup=cms.int32(-1),
229  ncells=cms.int32(-1),
230  etSum=cms.int32(-1),
231  etaWidth=cms.int32(-1),
232  phiWidth=cms.int32(-1),
233  averageWidth=cms.int32(-1),
234  widthRatio=cms.int32(-1),
235  etaPhiCorr=cms.int32(-1),
236  fuzziness=cms.int32(-1),
237  convergenceDistance=cms.int32(-1),
238  recoScale=cms.int32(-1),
239  recoScaleRatio=cms.int32(-1),
240  membershipFactor=cms.int32(-1),
241  magnitude=cms.int32(-1),
242  logMagnitude=cms.int32(-1),
243  magS1=cms.int32(-1),
244  LogMagS1=cms.int32(-1),
245  magS2=cms.int32(-1),
246  LogMagS2=cms.int32(-1),
247  driftSpeed=cms.int32(-1),
248  magSpeed=cms.int32(-1),
249  lifetime=cms.int32(-1),
250  splitTime=cms.int32(-1),
251  mergeTime=cms.int32(-1),
252  scale=cms.int32(-1),
253  logScale=cms.int32(-1),
254  nearestNeighborDistance=cms.int32(-1),
255  clusterRadius=cms.int32(-1),
256  clusterSeparation=cms.int32(-1),
257  dRFromJet=cms.int32(-1),
258  LaplacianS1=cms.int32(-1),
259  LaplacianS2=cms.int32(-1),
260  LaplacianS3=cms.int32(-1),
261  HessianS2=cms.int32(-1),
262  HessianS4=cms.int32(-1),
263  HessianS6=cms.int32(-1),
264  nConstituents=cms.int32(-1),
265  aveConstituentPt=cms.int32(-1),
266  logAveConstituentPt=cms.int32(-1),
267  constituentPtDistribution=cms.int32(-1),
268  constituentEtaPhiSpread=cms.int32(-1),
269  chargedHadronEnergyFraction=cms.int32(-1),
270  neutralHadronEnergyFraction=cms.int32(-1),
271  photonEnergyFraction=cms.int32(-1),
272  electronEnergyFraction=cms.int32(-1),
273  muonEnergyFraction=cms.int32(-1),
274  HFHadronEnergyFraction=cms.int32(-1),
275  HFEMEnergyFraction=cms.int32(-1),
276  chargedHadronMultiplicity=cms.int32(-1),
277  neutralHadronMultiplicity=cms.int32(-1),
278  photonMultiplicity=cms.int32(-1),
279  electronMultiplicity=cms.int32(-1),
280  muonMultiplicity=cms.int32(-1),
281  HFHadronMultiplicity=cms.int32(-1),
282  HFEMMultiplicity=cms.int32(-1),
283  chargedEmEnergyFraction=cms.int32(-1),
284  chargedMuEnergyFraction=cms.int32(-1),
285  neutralEmEnergyFraction=cms.int32(-1),
286  EmEnergyFraction=cms.int32(-1),
287  chargedMultiplicity=cms.int32(-1),
288  neutralMultiplicity=cms.int32(-1)
289  )
290  for i, varname in enumerate(variables):
291  setattr(subclass, varname, cms.int32(i))
292  return subclass
293 
294 #
295 # Procedure for configuring the ES source which fetches
296 # the database record. "process.CondDBCommon" should be
297 # already defined before calling this procedure.
#
def fftjetcorrectionesproducer_cfi.configure_fftjet_pooldbessource (   process,
  sequenceTag 
)

Definition at line 298 of file fftjetcorrectionesproducer_cfi.py.

299 def configure_fftjet_pooldbessource(process, sequenceTag):
300  config = cms.ESSource(
301  "PoolDBESSource",
302  process.CondDBCommon,
303  toGet = cms.VPSet(cms.PSet(
304  record = cms.string(fftjet_corr_types[sequenceTag].dbRecord),
305  tag = cms.string(fftjet_corr_types[sequenceTag].dbTag),
306  ))
307  )
308  sourceName = "FFT" + sequenceTag + "DBESSource"
309  setattr(process, sourceName, config)
310  return
def fftjetcorrectionesproducer_cfi.configure_L2L3_fftjet_esproducer (   sequenceTag,
  tableName,
  tableCategory 
)

Definition at line 105 of file fftjetcorrectionesproducer_cfi.py.

106 def configure_L2L3_fftjet_esproducer(sequenceTag, tableName, tableCategory):
107  #
108  # The ES producer name comes from the C++ plugin registration code
109  esProducer = fftjet_corr_types[sequenceTag].esProducer
110  config = cms.ESProducer(
111  esProducer,
112  sequence = cms.VPSet(
113  cms.PSet(
114  level = cms.uint32(2),
115  applyTo = cms.string("DataOrMC"),
116  adjuster = cms.PSet(
117  Class = cms.string("FFTSimpleScalingAdjuster")
118  ),
119  scalers = cms.VPSet(
120  cms.PSet(
121  Class = cms.string("auto"),
122  name = cms.string(tableName),
123  nameIsRegex = cms.bool(False),
124  category = cms.string(tableCategory),
125  categoryIsRegex = cms.bool(False)
126  )
127  )
128  )
129  ),
130  isArchiveCompressed = cms.bool(False),
131  verbose = cms.untracked.bool(False)
132  )
133  return (config, esProducer)
134 
135 #
136 # ES producer for L2 residual corrections
#
def fftjetcorrectionesproducer_cfi.configure_L2Res_fftjet_esproducer (   sequenceTag,
  tableName,
  tableCategory 
)

Definition at line 137 of file fftjetcorrectionesproducer_cfi.py.

138 def configure_L2Res_fftjet_esproducer(sequenceTag, tableName, tableCategory):
139  #
140  # The ES producer name comes from the C++ plugin registration code
141  esProducer = fftjet_corr_types[sequenceTag].esProducer
142  config = cms.ESProducer(
143  esProducer,
144  sequence = cms.VPSet(
145  cms.PSet(
146  level = cms.uint32(3),
147  applyTo = cms.string("DataOnly"),
148  adjuster = cms.PSet(
149  Class = cms.string("FFTSimpleScalingAdjuster")
150  ),
151  scalers = cms.VPSet(
152  cms.PSet(
153  Class = cms.string("FFTSpecificScaleCalculator"),
154  Subclass = cms.PSet(
155  Class = cms.string("L2ResScaleCalculator"),
156  radiusFactor = cms.double(1.0)
157  ),
158  name = cms.string(tableName),
159  nameIsRegex = cms.bool(False),
160  category = cms.string(tableCategory),
161  categoryIsRegex = cms.bool(False)
162  )
163  )
164  )
165  ),
166  isArchiveCompressed = cms.bool(False),
167  verbose = cms.untracked.bool(False)
168  )
169  return (config, esProducer)
170 
171 #
172 # ES producer for L3 residual corrections
#
def fftjetcorrectionesproducer_cfi.configure_L3Res_fftjet_esproducer (   sequenceTag,
  tableName,
  tableCategory 
)

Definition at line 173 of file fftjetcorrectionesproducer_cfi.py.

174 def configure_L3Res_fftjet_esproducer(sequenceTag, tableName, tableCategory):
175  #
176  # The ES producer name comes from the C++ plugin registration code
177  esProducer = fftjet_corr_types[sequenceTag].esProducer
178  config = cms.ESProducer(
179  esProducer,
180  sequence = cms.VPSet(
181  cms.PSet(
182  level = cms.uint32(4),
183  applyTo = cms.string("DataOnly"),
184  adjuster = cms.PSet(
185  Class = cms.string("FFTSimpleScalingAdjuster")
186  ),
187  scalers = cms.VPSet(
188  cms.PSet(
189  Class = cms.string("FFTSpecificScaleCalculator"),
190  Subclass = cms.PSet(
191  Class = cms.string("L2RecoScaleCalculator"),
192  radiusFactor = cms.double(1.0)
193  ),
194  name = cms.string(tableName),
195  nameIsRegex = cms.bool(False),
196  category = cms.string(tableCategory),
197  categoryIsRegex = cms.bool(False)
198  )
199  )
200  )
201  ),
202  isArchiveCompressed = cms.bool(False),
203  verbose = cms.untracked.bool(False)
204  )
205  return (config, esProducer)
206 
207 #
208 # Helper function for configuring FFTGenericScaleCalculator
#

Variable Documentation

dictionary fftjetcorrectionesproducer_cfi.fftjet_corr_types

Definition at line 32 of file fftjetcorrectionesproducer_cfi.py.