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 240 of file plottingOptions.py.

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

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:240
format