234 plottingOptionsClasses = {
235 "offline": PlottingOptionsOffline,
236 "split": PlottingOptionsTrackSplitting,
237 "zmumu": PlottingOptionsZMuMu,
238 "primaryvertex": PlottingOptionsPrimaryVertex,
239 "overlap": PlottingOptionsOverlap
241 if isinstance(valType, type):
242 valType = valType.valType
244 if valType
not in globalDictionaries.plottingOptions:
246 raise ValueError(
"Have to provide a config the first time you call PlottingOptions for {}".
format(valType))
247 globalDictionaries.plottingOptions[valType] = plottingOptionsClasses[valType](config)
248 return globalDictionaries.plottingOptions[valType].getRepMap()
252 def PlottingOptions(config, valType)