CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
plottingOptions Namespace Reference

Classes

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

Functions

def PlottingOptions
 

Function Documentation

def plottingOptions.PlottingOptions (   config,
  valType 
)

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

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