210 if len(variables) == 0:
211 raise ValueError(
"Must have at least one variable mapped")
212 if len(variables) != len(factorsForTheseVariables):
213 raise ValueError(
"Incompatible length of the input arguments")
215 Class = cms.string(
"FFTGenericScaleCalculator"),
216 factors = cms.vdouble(factorsForTheseVariables),
222 logMass=cms.int32(-1),
223 energy=cms.int32(-1),
224 logEnergy=cms.int32(-1),
226 logGamma=cms.int32(-1),
227 pileup=cms.int32(-1),
228 ncells=cms.int32(-1),
230 etaWidth=cms.int32(-1),
231 phiWidth=cms.int32(-1),
232 averageWidth=cms.int32(-1),
233 widthRatio=cms.int32(-1),
234 etaPhiCorr=cms.int32(-1),
235 fuzziness=cms.int32(-1),
236 convergenceDistance=cms.int32(-1),
237 recoScale=cms.int32(-1),
238 recoScaleRatio=cms.int32(-1),
239 membershipFactor=cms.int32(-1),
240 magnitude=cms.int32(-1),
241 logMagnitude=cms.int32(-1),
243 LogMagS1=cms.int32(-1),
245 LogMagS2=cms.int32(-1),
246 driftSpeed=cms.int32(-1),
247 magSpeed=cms.int32(-1),
248 lifetime=cms.int32(-1),
249 splitTime=cms.int32(-1),
250 mergeTime=cms.int32(-1),
252 logScale=cms.int32(-1),
253 nearestNeighborDistance=cms.int32(-1),
254 clusterRadius=cms.int32(-1),
255 clusterSeparation=cms.int32(-1),
256 dRFromJet=cms.int32(-1),
257 LaplacianS1=cms.int32(-1),
258 LaplacianS2=cms.int32(-1),
259 LaplacianS3=cms.int32(-1),
260 HessianS2=cms.int32(-1),
261 HessianS4=cms.int32(-1),
262 HessianS6=cms.int32(-1),
263 nConstituents=cms.int32(-1),
264 aveConstituentPt=cms.int32(-1),
265 logAveConstituentPt=cms.int32(-1),
266 constituentPtDistribution=cms.int32(-1),
267 constituentEtaPhiSpread=cms.int32(-1),
268 chargedHadronEnergyFraction=cms.int32(-1),
269 neutralHadronEnergyFraction=cms.int32(-1),
270 photonEnergyFraction=cms.int32(-1),
271 electronEnergyFraction=cms.int32(-1),
272 muonEnergyFraction=cms.int32(-1),
273 HFHadronEnergyFraction=cms.int32(-1),
274 HFEMEnergyFraction=cms.int32(-1),
275 chargedHadronMultiplicity=cms.int32(-1),
276 neutralHadronMultiplicity=cms.int32(-1),
277 photonMultiplicity=cms.int32(-1),
278 electronMultiplicity=cms.int32(-1),
279 muonMultiplicity=cms.int32(-1),
280 HFHadronMultiplicity=cms.int32(-1),
281 HFEMMultiplicity=cms.int32(-1),
282 chargedEmEnergyFraction=cms.int32(-1),
283 chargedMuEnergyFraction=cms.int32(-1),
284 neutralEmEnergyFraction=cms.int32(-1),
285 EmEnergyFraction=cms.int32(-1),
286 chargedMultiplicity=cms.int32(-1),
287 neutralMultiplicity=cms.int32(-1)
289 for i, varname
in enumerate(variables):
290 setattr(subclass, varname, cms.int32(i))