CMS 3D CMS Logo

Classes | Functions
plottingOptions Namespace Reference

Classes

class  BasePlottingOptions
 
class  PlottingOptionsOffline
 
class  PlottingOptionsOverlap
 
class  PlottingOptionsPrimaryVertex
 
class  PlottingOptionsTrackSplitting
 
class  PlottingOptionsZMuMu
 

Functions

def PlottingOptions (config, valType)
 

Function Documentation

def plottingOptions.PlottingOptions (   config,
  valType 
)

Definition at line 233 of file plottingOptions.py.

Referenced by genericValidation.ValidationWithPlots.createPlottingScript(), genericValidation.ValidationWithComparison.doComparison(), genericValidation.ParallelValidation.doInitMerge(), genericValidation.ValidationWithPlots.doRunPlots(), preexistingValidation.PreexistingValidation.getRepMap(), genericValidation.GenericValidation.getRepMap(), offlineValidation.OfflineValidation.initMerge(), and zMuMuValidation.ZMuMuValidation.trackcollection().

233 def PlottingOptions(config, valType):
234  plottingOptionsClasses = {
235  "offline": PlottingOptionsOffline,
236  "split": PlottingOptionsTrackSplitting,
237  "zmumu": PlottingOptionsZMuMu,
238  "primaryvertex": PlottingOptionsPrimaryVertex,
239  "overlap": PlottingOptionsOverlap
240  }
241  if isinstance(valType, type):
242  valType = valType.valType
243 
244  if valType not in globalDictionaries.plottingOptions:
245  if config is None:
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()
249 
250 
251 
252 
def PlottingOptions(config, valType)