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_fftjet_pooldbessource
 
def configure_L2L3_fftjet_esproducer
 

Variables

dictionary fftjet_corr_types
 

Function Documentation

def fftjetcorrectionesproducer_cfi.configure_fftjet_pooldbessource (   process,
  sequenceTag 
)

Definition at line 139 of file fftjetcorrectionesproducer_cfi.py.

140 def configure_fftjet_pooldbessource(process, sequenceTag):
141  config = cms.ESSource(
142  "PoolDBESSource",
143  process.CondDBCommon,
144  toGet = cms.VPSet(cms.PSet(
145  record = cms.string(fftjet_corr_types[sequenceTag].dbRecord),
146  tag = cms.string(fftjet_corr_types[sequenceTag].dbTag),
147  ))
148  )
149  sourceName = "FFT" + sequenceTag + "DBESSource"
150  setattr(process, sourceName, config)
151  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 # Procedure for configuring the ES source which fetches
137 # the database record. "process.CondDBCommon" should be
138 # already defined before calling this procedure.
#

Variable Documentation

dictionary fftjetcorrectionesproducer_cfi.fftjet_corr_types

Definition at line 32 of file fftjetcorrectionesproducer_cfi.py.