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.ValidationMetaClass genericValidation.ValidationMetaClass 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 appendToMerge (self)
 
def appendToPlots (self)
 
def comparealignmentsname (cls)
 
def createCrabCfg (self, path)
 
def createScript (self, path)
 
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 isPVValidation (self)
 
def TrackSelectionRefitting (self)
 
def use_d0cut (self)
 
- Public Member Functions inherited from genericValidation.GenericValidationData
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 filesToCompare (self)
 
def LoadBasicModules (self)
 
- Public Member Functions inherited from genericValidation.GenericValidation
def createConfiguration (self, fileContents, path, schedule=None, repMap=None, repMaps=None)
 
def createFiles (self, fileContents, path, repMap=None, repMaps=None)
 
def getCompareStrings (self, requestId=None, plain=False)
 
- Public Member Functions inherited from genericValidation.ValidationMetaClass
def __new__ (cls, clsname, bases, dct)
 
- Public Member Functions inherited from genericValidation.ParallelValidation
def doInitMerge (cls)
 
def doMerge (self)
 
- Public Member Functions inherited from genericValidation.ValidationWithComparison
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 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 createPlottingScript (cls, validations)
 
def doRunPlots (cls, validations)
 
def runPlots (cls, validations)
 

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"}
 
- Static Public Attributes inherited from genericValidation.ValidationMetaClass
list dicts = ["defaults"]
 
list sets = ["mandatories", "optionals", "needpackages"]
 

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

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from offlineValidation.OfflineValidation.

Definition at line 158 of file offlineValidation.py.

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

Member Function Documentation

◆ FileOutputTemplate()

def offlineValidation.OfflineValidationDQM.FileOutputTemplate (   self)

Reimplemented from offlineValidation.OfflineValidation.

Definition at line 187 of file offlineValidation.py.

187  def FileOutputTemplate(self):
188  return configTemplates.offlineDqmFileOutputTemplate

◆ getRepMap()

def offlineValidation.OfflineValidationDQM.getRepMap (   self,
  alignment = None 
)

Reimplemented from offlineValidation.OfflineValidation.

Definition at line 168 of file offlineValidation.py.

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

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

Referenced by plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

Member Data Documentation

◆ __firstRun

offlineValidation.OfflineValidationDQM.__firstRun
private

◆ __lastRun

offlineValidation.OfflineValidationDQM.__lastRun
private

◆ __PrimaryDataset

offlineValidation.OfflineValidationDQM.__PrimaryDataset
private

◆ configBaseName

string offlineValidation.OfflineValidationDQM.configBaseName = "TkAlOfflineValidationDQM"
static
createfilelist.int
int
Definition: createfilelist.py:10
configTemplates.FileOutputTemplate
string FileOutputTemplate
Definition: configTemplates.py:207