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
 
 name
 
 title
 
- Public Attributes inherited from genericValidation.GenericValidation
 alignmentToValidate
 
 AutoAlternates
 
 cmssw
 
 cmsswreleasebase
 
 config
 
 configFiles
 
 crabConfigFiles
 
 filesToCompare
 
 general
 
 jobmode
 
 name
 
 NJobs
 
 randomWorkdirPart
 
 scramarch
 
 scriptFiles
 
- Static Public Attributes inherited from genericValidation.GenericValidation
string defaultReferenceName = "DEFAULT"
 

Detailed Description

Definition at line 83 of file preexistingValidation.py.

Constructor & Destructor Documentation

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

Definition at line 85 of file preexistingValidation.py.

85 
86  addDefaults = {}, addMandatories=[]):
87  defaults = {
88  "DMRMethod":"median,rmsNorm",
89  "DMRMinimum":"30",
90  "DMROptions":"",
91  "OfflineTreeBaseDir":"TrackHitFilter",
92  "SurfaceShapes":"none"
93  }
94  defaults.update(addDefaults)
95  PreexistingValidation.__init__(self, valName, config, "offline",
defaults, addMandatories)

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 96 of file preexistingValidation.py.

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

96 
97  def appendToExtendedValidation( self, validationsSoFar = "" ):
98  """
99  if no argument or "" is passed a string with an instantiation is
100  returned, else the validation is appended to the list
101  """
102  repMap = self.getRepMap()
103  repMap["file"] = self.getCompareStrings("OfflineValidation", plain = True)
104  if validationsSoFar == "":
105  validationsSoFar = ('PlotAlignmentValidation p("%(file)s",'
106  '"%(title)s", %(color)s, %(style)s);\n')%repMap
107  else:
108  validationsSoFar += (' p.loadFileList("%(file)s", "%(title)s",'
109  '%(color)s, %(style)s);\n')%repMap
110  return validationsSoFar