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