CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
offlineValidation.OfflineValidationDQM Class Reference
Inheritance diagram for offlineValidation.OfflineValidationDQM:
offlineValidation.OfflineValidation genericValidation.GenericValidationData genericValidation.GenericValidation

Public Member Functions

def __init__ (self, valName, alignment, config, configBaseName="TkAlOfflineValidationDQM")
 
def createConfiguration (self, path)
 
def createScript (self, path)
 
def getRepMap (self, alignment=None)
 
- Public Member Functions inherited from offlineValidation.OfflineValidation
def __init__ (self, valName, alignment, config, addDefaults={}, addMandatories=[], configBaseName="TkAlOfflineValidation", scriptBaseName="TkAlOfflineValidation", crabCfgBaseName="TkAlOfflineValidation", resultBaseName="AlignmentValidation", outputBaseName="AlignmentValidation")
 
def appendToExtendedValidation (self, validationsSoFar="")
 
def appendToMerge (self, validationsSoFar="")
 
def createConfiguration (self, path)
 
def createCrabCfg (self, path)
 
def createScript (self, path)
 
def getRepMap (self, alignment=None)
 
- Public Member Functions inherited from genericValidation.GenericValidationData
def __init__ (self, valName, alignment, config, valType, addDefaults={}, addMandatories=[], addneedpackages=[])
 
def createCrabCfg (self, path, crabCfgBaseName)
 
def createScript (self, path, template=configTemplates.scriptTemplate, downloadFiles=[], repMap=None, repMaps=None)
 
def getRepMap (self, alignment=None)
 
- Public Member Functions inherited from genericValidation.GenericValidation
def __init__ (self, valName, alignment, config, valType, addDefaults={}, addMandatories=[], addneedpackages=[])
 
def createConfiguration (self, fileContents, path, schedule=None, repMap=None, repMaps=None)
 
def createCrabCfg (self, fileContents, path)
 
def createFiles (self, fileContents, path, repMap=None, repMaps=None)
 
def createScript (self, fileContents, path, downloadFiles=[], repMap=None, repMaps=None)
 
def getCompareStrings (self, requestId=None, plain=False)
 
def getRepMap (self, alignment=None)
 

Private Attributes

 __firstRun
 
 __lastRun
 
 __PrimaryDataset
 

Additional Inherited Members

- Public Attributes inherited from offlineValidation.OfflineValidation
 configBaseName
 
 crabCfgBaseName
 
 needParentFiles
 
 outputBaseName
 
 resultBaseName
 
 scriptBaseName
 
- Public Attributes inherited from genericValidation.GenericValidationData
 crabWorkingDir
 
 dataset
 
- 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 132 of file offlineValidation.py.

Constructor & Destructor Documentation

def offlineValidation.OfflineValidationDQM.__init__ (   self,
  valName,
  alignment,
  config,
  configBaseName = "TkAlOfflineValidationDQM" 
)

Definition at line 133 of file offlineValidation.py.

133  def __init__(self, valName, alignment, config, configBaseName = "TkAlOfflineValidationDQM"):
134  OfflineValidation.__init__(self, valName, alignment, config,
135  configBaseName = configBaseName)
136  if not config.has_section("DQM"):
137  msg = "You need to have a DQM section in your configfile!"
138  raise AllInOneError(msg)
139 
140  self.__PrimaryDataset = config.get("DQM", "primaryDataset")
141  self.__firstRun = int(config.get("DQM", "firstRun"))
142  self.__lastRun = int(config.get("DQM", "lastRun"))
143 
def __init__(self, valName, alignment, config, configBaseName="TkAlOfflineValidationDQM")

Member Function Documentation

def offlineValidation.OfflineValidationDQM.createConfiguration (   self,
  path 
)

Definition at line 144 of file offlineValidation.py.

144  def createConfiguration(self, path):
145  OfflineValidation.createConfiguration(self, path)
146 
def offlineValidation.OfflineValidationDQM.createScript (   self,
  path 
)

Definition at line 147 of file offlineValidation.py.

147  def createScript(self, path):
148  return OfflineValidation.createScript(self, path)
149 
def offlineValidation.OfflineValidationDQM.getRepMap (   self,
  alignment = None 
)

Definition at line 150 of file offlineValidation.py.

References offlineValidation.OfflineValidationDQM.__firstRun, offlineValidation.OfflineValidationDQM.__lastRun, and offlineValidation.OfflineValidationDQM.__PrimaryDataset.

Referenced by plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

150  def getRepMap(self, alignment = None):
151  repMap = OfflineValidation.getRepMap(self, alignment)
152  repMap.update({
153  "workdir": os.path.expandvars(repMap["workdir"]),
154  "offlineValidationMode": "Dqm",
155  "offlineValidationFileOutput": configTemplates.offlineDqmFileOutputTemplate,
156  "workflow": ("/%s/TkAl%s-.oO[alignmentName]Oo._R%09i_R%09i_"
157  "ValSkim-v1/ALCARECO"
158  %(self.__PrimaryDataset,
159  datetime.datetime.now().strftime("%y"),
160  self.__firstRun, self.__lastRun)),
161  "firstRunNumber": "%i"% self.__firstRun
162  })
163  if "__" in repMap["workflow"]:
164  msg = ("the DQM workflow specefication must not contain '__'. "
165  "it is: %s"%repMap["workflow"])
166  raise AllInOneError(msg)
167  return repMap

Member Data Documentation

offlineValidation.OfflineValidationDQM.__firstRun
private
offlineValidation.OfflineValidationDQM.__lastRun
private
offlineValidation.OfflineValidationDQM.__PrimaryDataset
private