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 224 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().

224 def PlottingOptions(config, valType):
225  plottingOptionsClasses = {
226  "offline": PlottingOptionsOffline,
227  "split": PlottingOptionsTrackSplitting,
228  "zmumu": PlottingOptionsZMuMu,
229  "primaryvertex": PlottingOptionsPrimaryVertex,
230  }
231  if isinstance(valType, type):
232  valType = valType.valType
233 
234  if valType not in globalDictionaries.plottingOptions:
235  if config is None:
236  raise ValueError("Have to provide a config the first time you call PlottingOptions for {}".format(valType))
237  globalDictionaries.plottingOptions[valType] = plottingOptionsClasses[valType](config)
238  return globalDictionaries.plottingOptions[valType].getRepMap()
239 
def PlottingOptions(config, valType)