CMS 3D CMS Logo

Classes | Functions
plottingOptions Namespace Reference

Classes

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

Functions

def PlottingOptions (config, valType)
 

Function Documentation

◆ PlottingOptions()

def plottingOptions.PlottingOptions (   config,
  valType 
)

Definition at line 239 of file plottingOptions.py.

239 def PlottingOptions(config, valType):
240  plottingOptionsClasses = {
241  "offline": PlottingOptionsOffline,
242  "split": PlottingOptionsTrackSplitting,
243  "zmumu": PlottingOptionsZMuMu,
244  "primaryvertex": PlottingOptionsPrimaryVertex,
245  "overlap": PlottingOptionsOverlap,
246  "pvresolution": PlottingOptionsPVResolution,
247  }
248  if isinstance(valType, type):
249  valType = valType.valType
250 
251  if valType not in globalDictionaries.plottingOptions:
252  if config is None:
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()
256 
257 
258 

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

plottingOptions.PlottingOptions
def PlottingOptions(config, valType)
Definition: plottingOptions.py:239
format