CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
preexistingValidation.PreexistingOfflineValidation Class Reference
Inheritance diagram for preexistingValidation.PreexistingOfflineValidation:
preexistingValidation.PreexistingValidation genericValidation.GenericValidation

Public Member Functions

def __init__
 
def appendToExtendedValidation
 
- Public Member Functions inherited from preexistingValidation.PreexistingValidation
def __init__
 
def createConfiguration
 
def createCrabCfg
 
def createFiles
 
def createScript
 
def getCompareStrings
 
def getRepMap
 
- Public Member Functions inherited from genericValidation.GenericValidation
def __init__
 
def createConfiguration
 
def createCrabCfg
 
def createFiles
 
def createScript
 
def getCompareStrings
 
def getRepMap
 

Additional Inherited Members

- Public Attributes inherited from preexistingValidation.PreexistingValidation
 config
 
 filesToCompare
 
 general
 
 jobmode
 
 name
 
 title
 
- Public Attributes inherited from genericValidation.GenericValidation
 alignmentToValidate
 
 AutoAlternates
 
 cmssw
 
 cmsswreleasebase
 
 config
 
 configFiles
 
 crabConfigFiles
 
 filesToCompare
 
 general
 
 jobid
 
 jobmode
 
 name
 
 NJobs
 
 packages
 
 randomWorkdirPart
 
 scramarch
 
 scriptFiles
 
 valType
 
- Static Public Attributes inherited from genericValidation.GenericValidation
string defaultReferenceName = "DEFAULT"
 

Detailed Description

Definition at line 89 of file preexistingValidation.py.

Constructor & Destructor Documentation

def preexistingValidation.PreexistingOfflineValidation.__init__ (   self,
  valName,
  config,
  addDefaults = {},
  addMandatories = [] 
)

Definition at line 91 of file preexistingValidation.py.

References genericValidation.GenericValidation.general.

91 
92  addDefaults = {}, addMandatories=[]):
93  defaults = {}
94  deprecateddefaults = {
95  "DMRMethod":"",
96  "DMRMinimum":"",
97  "DMROptions":"",
98  "OfflineTreeBaseDir":"",
99  "SurfaceShapes":""
100  }
101  defaults.update(deprecateddefaults)
102  defaults.update(addDefaults)
103  PreexistingValidation.__init__(self, valName, config, "offline",
104  defaults, addMandatories)
105  for option in deprecateddefaults:
106  if self.general[option]:
107  raise AllInOneError("The '%s' option has been moved to the [plots:offline] section. Please specify it there."%option)

Member Function Documentation

def preexistingValidation.PreexistingOfflineValidation.appendToExtendedValidation (   self,
  validationsSoFar = "" 
)
if no argument or "" is passed a string with an instantiation is
returned, else the validation is appended to the list

Definition at line 108 of file preexistingValidation.py.

References genericValidation.GenericValidation.getCompareStrings(), genericValidation.GenericValidation.getRepMap(), and alignment.Alignment.getRepMap().

109  def appendToExtendedValidation( self, validationsSoFar = "" ):
110  """
111  if no argument or "" is passed a string with an instantiation is
112  returned, else the validation is appended to the list
113  """
114  repMap = self.getRepMap()
115  repMap["file"] = self.getCompareStrings("OfflineValidation", plain = True)
116  if validationsSoFar == "":
117  validationsSoFar = ('PlotAlignmentValidation p("%(file)s",'
118  '"%(title)s", %(color)s, %(style)s, .oO[bigtext]Oo.);\n')%repMap
119  else:
120  validationsSoFar += (' p.loadFileList("%(file)s", "%(title)s",'
121  '%(color)s, %(style)s);\n')%repMap
122  return validationsSoFar