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 122 of file offlineValidation.py.

Constructor & Destructor Documentation

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

Definition at line 123 of file offlineValidation.py.

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

Member Function Documentation

def offlineValidation.OfflineValidationDQM.createConfiguration (   self,
  path 
)

Definition at line 134 of file offlineValidation.py.

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

Definition at line 137 of file offlineValidation.py.

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

Definition at line 140 of file offlineValidation.py.

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

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

Member Data Documentation

offlineValidation.OfflineValidationDQM.__firstRun
private

Definition at line 131 of file offlineValidation.py.

Referenced by offlineValidation.OfflineValidationDQM.getRepMap().

offlineValidation.OfflineValidationDQM.__lastRun
private

Definition at line 132 of file offlineValidation.py.

Referenced by offlineValidation.OfflineValidationDQM.getRepMap().

offlineValidation.OfflineValidationDQM.__PrimaryDataset
private

Definition at line 130 of file offlineValidation.py.

Referenced by offlineValidation.OfflineValidationDQM.getRepMap().