CMS 3D CMS Logo

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__ (self, validation, config, options)
 
def createJob (self)
 
def getValidation (self)
 
def needsproxy (self)
 
def runJob (self)
 

Public Attributes

 alignments
 
 commandLineOptions
 
 config
 
 preexisting
 
 valName
 
 valSection
 
 valType
 

Static Private Attributes

 __metaclass__
 

Detailed Description

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

Definition at line 55 of file validateAlignments.py.

Constructor & Destructor Documentation

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

Definition at line 59 of file validateAlignments.py.

References cms::dd.split().

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

Member Function Documentation

def validateAlignments.ValidationBase.createJob (   self)

Definition at line 100 of file validateAlignments.py.

100  def createJob( self ):
101  pass
102 
def validateAlignments.ValidationBase.getValidation (   self)

Definition at line 108 of file validateAlignments.py.

108  def getValidation( self ):
109  pass
110 
def validateAlignments.ValidationBase.needsproxy (   self)

Definition at line 112 of file validateAlignments.py.

112  def needsproxy(self):
113  pass
114 
115 
def validateAlignments.ValidationBase.runJob (   self)

Definition at line 104 of file validateAlignments.py.

104  def runJob( self ):
105  pass
106 

Member Data Documentation

validateAlignments.ValidationBase.__metaclass__
staticprivate

Definition at line 57 of file validateAlignments.py.

validateAlignments.ValidationBase.alignments

Definition at line 64 of file validateAlignments.py.

validateAlignments.ValidationBase.commandLineOptions

Definition at line 79 of file validateAlignments.py.

validateAlignments.ValidationBase.config

Definition at line 80 of file validateAlignments.py.

validateAlignments.ValidationBase.preexisting
validateAlignments.ValidationBase.valName

Definition at line 78 of file validateAlignments.py.

Referenced by validateAlignments.ValidationJob.runJob().

validateAlignments.ValidationBase.valSection

Definition at line 91 of file validateAlignments.py.

validateAlignments.ValidationBase.valType