CMS 3D CMS Logo

Public Member Functions | Private Attributes

validateAlignments::OfflineValidationDQM Class Reference

Inheritance diagram for validateAlignments::OfflineValidationDQM:
validateAlignments::OfflineValidation validateAlignments::GenericValidation

List of all members.

Public Member Functions

def __init__
def createConfiguration
def createScript
def getRepMap

Private Attributes

 __firstRun
 __lastRun
 __PrimaryDataset

Detailed Description

Definition at line 435 of file validateAlignments.py.


Constructor & Destructor Documentation

def validateAlignments::OfflineValidationDQM::__init__ (   self,
  alignment,
  config 
)

Reimplemented from validateAlignments::OfflineValidation.

Definition at line 436 of file validateAlignments.py.

00437                                          :
00438         OfflineValidation.__init__(self, alignment, config)
00439         if not config.has_section("DQM"):
00440             raise StandardError, "You need to have a DQM section in your configfile!"
00441         
00442         self.__PrimaryDataset = config.get("DQM", "primaryDataset")
00443         self.__firstRun = int(config.get("DQM", "firstRun"))
00444         self.__lastRun = int(config.get("DQM", "lastRun"))


Member Function Documentation

def validateAlignments::OfflineValidationDQM::createConfiguration (   self,
  path 
)

Definition at line 445 of file validateAlignments.py.

00446                                        :
00447         OfflineValidation.createConfiguration(self, path, "TkAlOfflineValidationDQM")
        
def validateAlignments::OfflineValidationDQM::createScript (   self,
  path 
)

Definition at line 448 of file validateAlignments.py.

00449                                 :
00450         return OfflineValidation.createScript(self, path, "TkAlOfflineValidationDQM")

def validateAlignments::OfflineValidationDQM::getRepMap (   self,
  alignment = None 
)

Reimplemented from validateAlignments::OfflineValidation.

Definition at line 451 of file validateAlignments.py.

00452                                          :
00453         repMap = OfflineValidation.getRepMap(self, alignment)
00454         repMap.update({
00455                 "workdir": os.path.expandvars(repMap["workdir"]),
00456                 "offlineValidationMode": "Dqm",
00457                 "offlineValidationFileOutput": configTemplates.offlineDqmFileOutputTemplate,
00458                 "workflow": "/%s/TkAl%s-.oO[alignmentName]Oo._R%09i_R%09i_ValSkim-v1/ALCARECO"%(self.__PrimaryDataset, datetime.datetime.now().strftime("%y"), self.__firstRun, self.__lastRun),
00459                 "firstRunNumber": "%i"% self.__firstRun
00460                 }
00461             )
00462         if "__" in repMap["workflow"]:
00463             raise StandardError, "the DQM workflow specefication must not contain '__'. it is: %s"%repMap["workflow"]
00464         return repMap


Member Data Documentation

Definition at line 436 of file validateAlignments.py.

Definition at line 436 of file validateAlignments.py.

Definition at line 436 of file validateAlignments.py.