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
 
 jobmode
 
 name
 
 NJobs
 
 randomWorkdirPart
 
 scramarch
 
 scriptFiles
 
- Static Public Attributes inherited from genericValidation.GenericValidation
string defaultReferenceName = "DEFAULT"
 

Detailed Description

Definition at line 84 of file preexistingValidation.py.

Constructor & Destructor Documentation

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

Definition at line 86 of file preexistingValidation.py.

86 
87  addDefaults = {}, addMandatories=[]):
88  defaults = {
89  "DMRMethod":"median,rmsNorm",
90  "DMRMinimum":"30",
91  "DMROptions":"",
92  "OfflineTreeBaseDir":"TrackHitFilter",
93  "SurfaceShapes":"coarse",
94  }
95  defaults.update(addDefaults)
96  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 97 of file preexistingValidation.py.

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

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