CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Static Private Attributes
validateAlignments.ValidationBase Class Reference

— Classes —############################ More...

Inheritance diagram for validateAlignments.ValidationBase:
validateAlignments.ValidationJob validateAlignments.ValidationJobMultiIOV

Public Member Functions

def __init__
 
def createJob
 
def getValidation
 
def needsproxy
 
def runJob
 

Public Attributes

 alignments
 
 commandLineOptions
 
 config
 
 preexisting
 
 valName
 
 valSection
 
 valType
 

Static Private Attributes

 __metaclass__ = ABCMeta
 

Detailed Description

— Classes —############################

Definition at line 57 of file validateAlignments.py.

Constructor & Destructor Documentation

def validateAlignments.ValidationBase.__init__ (   self,
  validation,
  config,
  options 
)

Definition at line 61 of file validateAlignments.py.

References submitPVValidationJobs.split().

61 
62  def __init__( self, validation, config, options ):
63 
64  if validation[1] == "":
65  # intermediate syntax
66  valString = validation[0].split( "->" )[0]
67  self.alignments = validation[0].split( "->" )[1]
68  # force user to use the normal syntax
69  if "->" in validation[0]:
70  msg = ("Instead of using the intermediate syntax\n'"
71  +valString.strip()+"-> "+alignments.strip()
72  +":'\nyou have to use the now fully supported syntax \n'"
73  +valString.strip()+": "
74  +alignments.strip()+"'.")
75  raise AllInOneError(msg)
76  else:
77  valString = validation[0]
78  self.alignments = validation[1]
79  valString = valString.split()
80  self.valType = valString[0]
81  self.valName = valString[1]
82  self.commandLineOptions = options
83  self.config = config
84  self.preexisting = ("preexisting" in self.valType)
85  if self.valType[0] == "*":
86  self.valType = self.valType[1:]
87  self.preexisting = True
88 
89  # workaround for intermediate parallel version
90  if self.valType == "offlineParallel":
91  print ("offlineParallel and offline are now the same. To run an offline parallel validation,\n"
92  "just set parallelJobs to something > 1. There is no reason to call it offlineParallel anymore.")
93  self.valType = "offline"
94  self.valSection = self.valType + ":" + self.valName
95  if not self.config.has_section( self.valSection ):
96  raise AllInOneError("Validation '%s' of type '%s' is requested in"
97  " '[validation]' section, but is not defined."
98  "\nYou have to add a '[%s]' section."
99  %( self.valName, self.valType, self.valSection ))
100 

Member Function Documentation

def validateAlignments.ValidationBase.createJob (   self)

Definition at line 102 of file validateAlignments.py.

103  def createJob( self ):
104  pass
def validateAlignments.ValidationBase.getValidation (   self)

Definition at line 110 of file validateAlignments.py.

111  def getValidation( self ):
112  pass
def validateAlignments.ValidationBase.needsproxy (   self)

Definition at line 114 of file validateAlignments.py.

115  def needsproxy(self):
116  pass
117 
def validateAlignments.ValidationBase.runJob (   self)

Definition at line 106 of file validateAlignments.py.

107  def runJob( self ):
108  pass

Member Data Documentation

validateAlignments.ValidationBase.__metaclass__ = ABCMeta
staticprivate

Definition at line 59 of file validateAlignments.py.

validateAlignments.ValidationBase.alignments

Definition at line 66 of file validateAlignments.py.

validateAlignments.ValidationBase.commandLineOptions

Definition at line 81 of file validateAlignments.py.

validateAlignments.ValidationBase.config

Definition at line 82 of file validateAlignments.py.

Referenced by zMuMuValidation.ZMuMuValidation.trackcollection().

validateAlignments.ValidationBase.preexisting

Definition at line 83 of file validateAlignments.py.

Referenced by validateAlignments.ValidationJob.__createJob(), validateAlignments.ValidationJob.needsproxy(), validateAlignments.ValidationJobMultiIOV.needsproxy(), and validateAlignments.ValidationJob.runJob().

validateAlignments.ValidationBase.valName

Definition at line 80 of file validateAlignments.py.

Referenced by validateAlignments.ValidationJob.runJob().

validateAlignments.ValidationBase.valSection

Definition at line 93 of file validateAlignments.py.

validateAlignments.ValidationBase.valType

Definition at line 79 of file validateAlignments.py.

Referenced by preexistingValidation.PreexistingValidation.getRepMap(), genericValidation.GenericValidation.getRepMap(), and validateAlignments.ValidationJob.runJob().