228 plottingOptionsClasses = {
229 "offline": PlottingOptionsOffline,
230 "split": PlottingOptionsTrackSplitting,
231 "zmumu": PlottingOptionsZMuMu,
232 "primaryvertex": PlottingOptionsPrimaryVertex,
234 if isinstance(valType, type):
235 valType = valType.valType
237 if valType
not in globalDictionaries.plottingOptions:
239 raise ValueError(
"Have to provide a config the first time you call PlottingOptions for {}".
format(valType))
240 globalDictionaries.plottingOptions[valType] = plottingOptionsClasses[valType](config)
241 return globalDictionaries.plottingOptions[valType].getRepMap()
242 def PlottingOptions(config, valType)