test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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__
 
def createConfiguration
 
def createScript
 
def getRepMap
 
- Public Member Functions inherited from offlineValidation.OfflineValidation
def __init__
 
def appendToExtendedValidation
 
def appendToMerge
 
def createConfiguration
 
def createCrabCfg
 
def createScript
 
def getRepMap
 
- Public Member Functions inherited from genericValidation.GenericValidationData
def __init__
 
def createCrabCfg
 
- Public Member Functions inherited from genericValidation.GenericValidation
def __init__
 
def createConfiguration
 
def createCrabCfg
 
def createFiles
 
def createScript
 
def getCompareStrings
 
def getRepMap
 

Private Attributes

 __firstRun
 
 __lastRun
 
 __PrimaryDataset
 

Additional Inherited Members

- Public Attributes inherited from genericValidation.GenericValidationData
 crabWorkingDir
 
 dataset
 
 jobmode
 
- Public Attributes inherited from genericValidation.GenericValidation
 alignmentToValidate
 
 config
 
 configFiles
 
 crabConfigFiles
 
 filesToCompare
 
 general
 
 jobmode
 
 name
 
 randomWorkdirPart
 
 scriptFiles
 
- Static Public Attributes inherited from genericValidation.GenericValidation
string defaultReferenceName = "DEFAULT"
 

Detailed Description

Definition at line 233 of file offlineValidation.py.

Constructor & Destructor Documentation

def offlineValidation.OfflineValidationDQM.__init__ (   self,
  valName,
  alignment,
  config 
)

Definition at line 234 of file offlineValidation.py.

235  def __init__(self, valName, alignment, config):
236  OfflineValidation.__init__(self, valName, alignment, config)
237  if not config.has_section("DQM"):
238  msg = "You need to have a DQM section in your configfile!"
239  raise AllInOneError(msg)
240 
241  self.__PrimaryDataset = config.get("DQM", "primaryDataset")
242  self.__firstRun = int(config.get("DQM", "firstRun"))
243  self.__lastRun = int(config.get("DQM", "lastRun"))

Member Function Documentation

def offlineValidation.OfflineValidationDQM.createConfiguration (   self,
  path 
)

Definition at line 244 of file offlineValidation.py.

245  def createConfiguration(self, path):
246  OfflineValidation.createConfiguration(self, path,
247  "TkAlOfflineValidationDQM")
def offlineValidation.OfflineValidationDQM.createScript (   self,
  path 
)

Definition at line 248 of file offlineValidation.py.

249  def createScript(self, path):
250  return OfflineValidation.createScript(self, path,
251  "TkAlOfflineValidationDQM")
def offlineValidation.OfflineValidationDQM.getRepMap (   self,
  alignment = None 
)

Definition at line 252 of file offlineValidation.py.

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

253  def getRepMap(self, alignment = None):
254  repMap = OfflineValidation.getRepMap(self, alignment)
255  repMap.update({
256  "workdir": os.path.expandvars(repMap["workdir"]),
257  "offlineValidationMode": "Dqm",
258  "offlineValidationFileOutput": configTemplates.offlineDqmFileOutputTemplate,
259  "workflow": ("/%s/TkAl%s-.oO[alignmentName]Oo._R%09i_R%09i_"
260  "ValSkim-v1/ALCARECO"
261  %(self.__PrimaryDataset,
262  datetime.datetime.now().strftime("%y"),
263  self.__firstRun, self.__lastRun)),
264  "firstRunNumber": "%i"% self.__firstRun
265  })
266  if "__" in repMap["workflow"]:
267  msg = ("the DQM workflow specefication must not contain '__'. "
268  "it is: %s"%repMap["workflow"])
269  raise AllInOneError(msg)
270  return repMap

Member Data Documentation

offlineValidation.OfflineValidationDQM.__firstRun
private

Definition at line 241 of file offlineValidation.py.

Referenced by offlineValidation.OfflineValidationDQM.getRepMap().

offlineValidation.OfflineValidationDQM.__lastRun
private

Definition at line 242 of file offlineValidation.py.

Referenced by offlineValidation.OfflineValidationDQM.getRepMap().

offlineValidation.OfflineValidationDQM.__PrimaryDataset
private

Definition at line 240 of file offlineValidation.py.

Referenced by offlineValidation.OfflineValidationDQM.getRepMap().