CMS 3D CMS Logo

Classes | Functions
plottingOptions Namespace Reference

Classes

class  BasePlottingOptions
 
class  PlottingOptionsOffline
 
class  PlottingOptionsPrimaryVertex
 
class  PlottingOptionsTrackSplitting
 
class  PlottingOptionsZMuMu
 

Functions

def PlottingOptions (config, valType)
 

Function Documentation

def plottingOptions.PlottingOptions (   config,
  valType 
)

Definition at line 227 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().

227 def PlottingOptions(config, valType):
228  plottingOptionsClasses = {
229  "offline": PlottingOptionsOffline,
230  "split": PlottingOptionsTrackSplitting,
231  "zmumu": PlottingOptionsZMuMu,
232  "primaryvertex": PlottingOptionsPrimaryVertex,
233  }
234  if isinstance(valType, type):
235  valType = valType.valType
236 
237  if valType not in globalDictionaries.plottingOptions:
238  if config is None:
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)