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

Detailed Description

Definition at line 123 of file offlineValidation.py.

Constructor & Destructor Documentation

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

Definition at line 124 of file offlineValidation.py.

125  def __init__(self, valName, alignment, config, configBaseName = "TkAlOfflineValidationDQM"):
126  OfflineValidation.__init__(self, valName, alignment, config,
127  configBaseName = configBaseName)
128  if not config.has_section("DQM"):
129  msg = "You need to have a DQM section in your configfile!"
130  raise AllInOneError(msg)
131 
132  self.__PrimaryDataset = config.get("DQM", "primaryDataset")
133  self.__firstRun = int(config.get("DQM", "firstRun"))
134  self.__lastRun = int(config.get("DQM", "lastRun"))

Member Function Documentation

def offlineValidation.OfflineValidationDQM.createConfiguration (   self,
  path 
)

Definition at line 135 of file offlineValidation.py.

136  def createConfiguration(self, path):
137  OfflineValidation.createConfiguration(self, path)
def offlineValidation.OfflineValidationDQM.createScript (   self,
  path 
)

Definition at line 138 of file offlineValidation.py.

139  def createScript(self, path):
140  return OfflineValidation.createScript(self, path)
def offlineValidation.OfflineValidationDQM.getRepMap (   self,
  alignment = None 
)

Definition at line 141 of file offlineValidation.py.

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

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

Member Data Documentation

offlineValidation.OfflineValidationDQM.__firstRun
private

Definition at line 132 of file offlineValidation.py.

Referenced by offlineValidation.OfflineValidationDQM.getRepMap().

offlineValidation.OfflineValidationDQM.__lastRun
private

Definition at line 133 of file offlineValidation.py.

Referenced by offlineValidation.OfflineValidationDQM.getRepMap().

offlineValidation.OfflineValidationDQM.__PrimaryDataset
private

Definition at line 131 of file offlineValidation.py.

Referenced by offlineValidation.OfflineValidationDQM.getRepMap().