241 plottingOptionsClasses = {
242 "offline": PlottingOptionsOffline,
243 "split": PlottingOptionsTrackSplitting,
244 "zmumu": PlottingOptionsZMuMu,
245 "primaryvertex": PlottingOptionsPrimaryVertex,
246 "overlap": PlottingOptionsOverlap,
247 "pvresolution": PlottingOptionsPVResolution,
249 if isinstance(valType, type):
250 valType = valType.valType
252 if valType
not in globalDictionaries.plottingOptions:
254 raise ValueError(
"Have to provide a config the first time you call PlottingOptions for {}".
format(valType))
255 globalDictionaries.plottingOptions[valType] = plottingOptionsClasses[valType](config)
256 return globalDictionaries.plottingOptions[valType].getRepMap()