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")
216 Class = cms.string(
"FFTGenericScaleCalculator"),
217 factors = cms.vdouble(factorsForTheseVariables),
223 logMass=cms.int32(-1),
224 energy=cms.int32(-1),
225 logEnergy=cms.int32(-1),
227 logGamma=cms.int32(-1),
228 pileup=cms.int32(-1),
229 ncells=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),
244 LogMagS1=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),
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)
290 for i, varname
in enumerate(variables):
291 setattr(subclass, varname, cms.int32(i))