CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Attributes
offlineValidation.OfflineValidationDQM Class Reference
Inheritance diagram for offlineValidation.OfflineValidationDQM:
offlineValidation.OfflineValidation genericValidation.GenericValidationData_CTSR genericValidation.ParallelValidation genericValidation.ValidationWithComparison genericValidation.ValidationWithPlotsSummary genericValidation.ValidationForPresentation genericValidation.GenericValidationData genericValidation.GenericValidation genericValidation.GenericValidation genericValidation.ValidationWithPlotsSummaryBase genericValidation.ValidationWithPlots genericValidation.GenericValidation genericValidation.ValidationWithPlots genericValidation.GenericValidation genericValidation.GenericValidation

Public Member Functions

def __init__ (self, valName, alignment, config)
 
def FileOutputTemplate (self)
 
def getRepMap (self, alignment=None)
 
- Public Member Functions inherited from offlineValidation.OfflineValidation
def __init__ (self, valName, alignment, config)
 
def appendToMerge (self)
 
def appendToPlots (self)
 
def comparealignmentsname (cls)
 
def createCrabCfg (self, path)
 
def createScript (self, path)
 
def FileOutputTemplate (self)
 
def getRepMap (self, alignment=None)
 
def initMerge (cls)
 
def plotsdirname (cls)
 
def plottingscriptname (cls)
 
def plottingscripttemplate (cls)
 
def presentationsubsections (cls)
 
def ProcessName (self)
 
def ValidationSequence (self)
 
def ValidationTemplate (self)
 
- Public Member Functions inherited from genericValidation.GenericValidationData_CTSR
def cosmics0T (self)
 
def DefinePath (self)
 
def getRepMap (self, alignment=None)
 
def isPVValidation (self)
 
def TrackSelectionRefitting (self)
 
def use_d0cut (self)
 
def ValidationSequence (self)
 
- Public Member Functions inherited from genericValidation.GenericValidationData
def __init__ (self, valName, alignment, config)
 
def Bookkeeping (self)
 
def cfgName (self)
 
def cfgTemplate (self)
 
def createConfiguration (self, path)
 
def createCrabCfg (self, path, crabCfgBaseName)
 
def createScript (self, path, template=configTemplates.scriptTemplate, downloadFiles=[], repMap=None, repMaps=None)
 
def DefinePath (self)
 
def FileOutputTemplate (self)
 
def filesToCompare (self)
 
def getRepMap (self, alignment=None)
 
def LoadBasicModules (self)
 
def ProcessName (self)
 
def TrackSelectionRefitting (self)
 
def ValidationTemplate (self)
 
- Public Member Functions inherited from genericValidation.GenericValidation
def __init__ (self, valName, alignment, config)
 
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 filesToCompare (self)
 
def getCompareStrings (self, requestId=None, plain=False)
 
def getRepMap (self, alignment=None)
 
- Public Member Functions inherited from genericValidation.ParallelValidation
def appendToMerge (self)
 
def doInitMerge (cls)
 
def doMerge (self)
 
def initMerge (cls)
 
- Public Member Functions inherited from genericValidation.ValidationWithComparison
def comparealignmentsname (cls)
 
def comparealignmentspath (cls)
 
def comparisontemplate (cls)
 
def doComparison (cls, validations)
 
- Public Member Functions inherited from genericValidation.ValidationWithPlotsSummary
def getsummaryitems (cls, folder)
 
- Public Member Functions inherited from genericValidation.ValidationWithPlotsSummaryBase
def getsummaryitems (cls, folder)
 
def printsummaryitems (cls, args, kwargs)
 
def summaryitemsstring (cls, folder=None, latex=False, transpose=True)
 
def writesummaryitems (cls, filename, args, kwargs)
 
- Public Member Functions inherited from genericValidation.ValidationWithPlots
def appendToPlots (self)
 
def createPlottingScript (cls, validations)
 
def doRunPlots (cls, validations)
 
def plotsdirname (cls)
 
def plottingscriptname (cls)
 
def plottingscripttemplate (cls)
 
def runPlots (cls, validations)
 
- Public Member Functions inherited from genericValidation.ValidationForPresentation
def presentationsubsections (cls)
 

Static Public Attributes

string configBaseName = "TkAlOfflineValidationDQM"
 
- Static Public Attributes inherited from offlineValidation.OfflineValidation
string configBaseName = "TkAlOfflineValidation"
 
string crabCfgBaseName = "TkAlOfflineValidation"
 
dictionary defaults
 
dictionary deprecateddefaults
 
dictionary mandatories = {"trackcollection"}
 
string outputBaseName = "AlignmentValidation"
 
string resultBaseName = "AlignmentValidation"
 
string scriptBaseName = "TkAlOfflineValidation"
 
string valType = "offline"
 
- Static Public Attributes inherited from genericValidation.GenericValidationData_CTSR
dictionary defaults
 
- Static Public Attributes inherited from genericValidation.GenericValidationData
dictionary defaults
 
dictionary mandatories = {"dataset", "maxevents"}
 
bool needParentFiles = False
 
dictionary optionals = {"magneticfield"}
 
- Static Public Attributes inherited from genericValidation.GenericValidation
string defaultReferenceName = "DEFAULT"
 
dictionary defaults
 
 mandatories = set()
 
dictionary needpackages = {"Alignment/OfflineValidation"}
 
dictionary optionals = {"jobmode"}
 

Private Attributes

 __firstRun
 
 __lastRun
 
 __PrimaryDataset
 

Additional Inherited Members

- Public Attributes inherited from offlineValidation.OfflineValidation
 NTracks
 
- Public Attributes inherited from genericValidation.GenericValidationData
 crabWorkingDir
 
 dataset
 
- Public Attributes inherited from genericValidation.GenericValidation
 alignmentToValidate
 
 AutoAlternates
 
 cmssw
 
 cmsswreleasebase
 
 config
 
 configFiles
 
 crabConfigFiles
 
 general
 
 jobid
 
 jobmode
 
 name
 
 needsproxy
 
 NJobs
 
 packages
 
 randomWorkdirPart
 
 scramarch
 
 scriptFiles
 

Detailed Description

Definition at line 151 of file offlineValidation.py.

Constructor & Destructor Documentation

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

Definition at line 153 of file offlineValidation.py.

153  def __init__(self, valName, alignment, config):
154  super(OfflineValidationDQM, self).__init__(valName, alignment, config)
155  if not config.has_section("DQM"):
156  msg = "You need to have a DQM section in your configfile!"
157  raise AllInOneError(msg)
158 
159  self.__PrimaryDataset = config.get("DQM", "primaryDataset")
160  self.__firstRun = int(config.get("DQM", "firstRun"))
161  self.__lastRun = int(config.get("DQM", "lastRun"))
162 
def __init__(self, valName, alignment, config)

Member Function Documentation

def offlineValidation.OfflineValidationDQM.FileOutputTemplate (   self)

Definition at line 182 of file offlineValidation.py.

183  return configTemplates.offlineDqmFileOutputTemplate
def offlineValidation.OfflineValidationDQM.getRepMap (   self,
  alignment = None 
)

Definition at line 163 of file offlineValidation.py.

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

Referenced by plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

163  def getRepMap(self, alignment = None):
164  repMap = super(OfflineValidationDQM, self).getRepMap(alignment)
165  repMap.update({
166  "workdir": os.path.expandvars(repMap["workdir"]),
167  "offlineValidationMode": "Dqm",
168  "workflow": ("/%s/TkAl%s-.oO[alignmentName]Oo._R%09i_R%09i_"
169  "ValSkim-v1/ALCARECO"
170  %(self.__PrimaryDataset,
171  datetime.datetime.now().strftime("%y"),
172  self.__firstRun, self.__lastRun)),
173  "firstRunNumber": "%i"% self.__firstRun
174  })
175  if "__" in repMap["workflow"]:
176  msg = ("the DQM workflow specefication must not contain '__'. "
177  "it is: %s"%repMap["workflow"])
178  raise AllInOneError(msg)
179  return repMap
180 

Member Data Documentation

offlineValidation.OfflineValidationDQM.__firstRun
private
offlineValidation.OfflineValidationDQM.__lastRun
private
offlineValidation.OfflineValidationDQM.__PrimaryDataset
private
string offlineValidation.OfflineValidationDQM.configBaseName = "TkAlOfflineValidationDQM"
static