CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes
overlapValidation.OverlapValidation Class Reference
Inheritance diagram for overlapValidation.OverlapValidation:
genericValidation.GenericValidationData_CTSR genericValidation.ParallelValidation genericValidation.ValidationWithPlots genericValidation.GenericValidationData genericValidation.GenericValidation genericValidation.GenericValidation genericValidation.GenericValidation genericValidation.ValidationMetaClass genericValidation.ValidationMetaClass genericValidation.ValidationMetaClass

Public Member Functions

def appendToMerge (self)
 
def appendToPlots (self)
 
def getRepMap (self, alignment=None)
 
def plotsdirname (cls)
 
def plottingscriptname (cls)
 
def plottingscripttemplate (cls)
 
def ProcessName (self)
 
def runPlots (cls, validations)
 
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 __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 FileOutputTemplate (self)
 
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)
 
def initMerge (cls)
 
- Public Member Functions inherited from genericValidation.ValidationWithPlots
def createPlottingScript (cls, validations)
 
def doRunPlots (cls, validations)
 

Static Public Attributes

string configBaseName = "TkAlOverlapValidation"
 
string crabCfgBaseName = "TkAlOverlapValidation"
 
dictionary mandatories = {"trackcollection"}
 
string outputBaseName = "OverlapValidation"
 
string resultBaseName = "OverlapValidation"
 
string scriptBaseName = "TkAlOverlapValidation"
 
string valType = "overlap"
 
- 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"]
 

Additional Inherited Members

- 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 12 of file overlapValidation.py.

Member Function Documentation

◆ appendToMerge()

def overlapValidation.OverlapValidation.appendToMerge (   self)

Reimplemented from genericValidation.ParallelValidation.

Definition at line 48 of file overlapValidation.py.

48  def appendToMerge(self):
49  repMap = self.getRepMap()
50 
51  parameters = " ".join(os.path.join("root://eoscms//eos/cms", file.lstrip("/")) for file in repMap["resultFiles"])
52 
53  mergedoutputfile = os.path.join("root://eoscms//eos/cms", repMap["finalResultFile"].lstrip("/"))
54  return "hadd -f %s %s" % (mergedoutputfile, parameters)
55 

References genericValidation.GenericValidation.getRepMap(), alignment.Alignment.getRepMap(), and join().

◆ appendToPlots()

def overlapValidation.OverlapValidation.appendToPlots (   self)
if no argument or "" is passed a string with an instantiation is
returned, else the validation is appended to the list

Reimplemented from genericValidation.ValidationWithPlots.

Definition at line 41 of file overlapValidation.py.

41  def appendToPlots(self):
42  """
43  if no argument or "" is passed a string with an instantiation is
44  returned, else the validation is appended to the list
45  """
46  return '("{file}", "{title}", {color}, {style}),'.format(file=self.getCompareStrings(plain=True)["DEFAULT"], **self.getRepMap())
47 

References genericValidation.GenericValidation.getCompareStrings(), genericValidation.GenericValidation.getRepMap(), and alignment.Alignment.getRepMap().

◆ getRepMap()

def overlapValidation.OverlapValidation.getRepMap (   self,
  alignment = None 
)

Reimplemented from genericValidation.GenericValidationData_CTSR.

Definition at line 33 of file overlapValidation.py.

33  def getRepMap( self, alignment = None ):
34  repMap = super(OverlapValidation, self).getRepMap(alignment)
35  repMap.update({
36  "nEvents": self.general["maxevents"],
37  "TrackCollection": self.general["trackcollection"],
38  })
39  return repMap
40 

References genericValidation.GenericValidation.general.

Referenced by plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

◆ plotsdirname()

def overlapValidation.OverlapValidation.plotsdirname (   cls)
override with a classmethod

Reimplemented from genericValidation.ValidationWithPlots.

Definition at line 65 of file overlapValidation.py.

65  def plotsdirname(cls):
66  return "OverlapValidationPlots"
67 

Referenced by presentation.ValidationPlots.validationclass().

◆ plottingscriptname()

def overlapValidation.OverlapValidation.plottingscriptname (   cls)
override with a classmethod

Reimplemented from genericValidation.ValidationWithPlots.

Definition at line 57 of file overlapValidation.py.

57  def plottingscriptname(cls):
58  return "TkAlOverlapValidation.py"
59 

◆ plottingscripttemplate()

def overlapValidation.OverlapValidation.plottingscripttemplate (   cls)
override with a classmethod

Reimplemented from genericValidation.ValidationWithPlots.

Definition at line 61 of file overlapValidation.py.

61  def plottingscripttemplate(cls):
62  return configTemplates.overlapPlottingTemplate
63 

◆ ProcessName()

def overlapValidation.OverlapValidation.ProcessName (   self)

Reimplemented from genericValidation.GenericValidationData.

Definition at line 30 of file overlapValidation.py.

30  def ProcessName(self):
31  return "overlap"
32 

◆ runPlots()

def overlapValidation.OverlapValidation.runPlots (   cls,
  validations 
)

Reimplemented from genericValidation.ValidationWithPlots.

Definition at line 69 of file overlapValidation.py.

69  def runPlots(cls, validations):
70  return ("rfcp .oO[plottingscriptpath]Oo. .\n"
71  "python .oO[plottingscriptname]Oo.")
72 

◆ ValidationSequence()

def overlapValidation.OverlapValidation.ValidationSequence (   self)

Reimplemented from genericValidation.GenericValidationData_CTSR.

Definition at line 26 of file overlapValidation.py.

26  def ValidationSequence(self):
27  return configTemplates.overlapValidationSequence
28 

◆ ValidationTemplate()

def overlapValidation.OverlapValidation.ValidationTemplate (   self)

Reimplemented from genericValidation.GenericValidationData.

Definition at line 22 of file overlapValidation.py.

22  def ValidationTemplate(self):
23  return configTemplates.overlapTemplate
24 

Member Data Documentation

◆ configBaseName

string overlapValidation.OverlapValidation.configBaseName = "TkAlOverlapValidation"
static

◆ crabCfgBaseName

string overlapValidation.OverlapValidation.crabCfgBaseName = "TkAlOverlapValidation"
static

◆ mandatories

dictionary overlapValidation.OverlapValidation.mandatories = {"trackcollection"}
static

Definition at line 18 of file overlapValidation.py.

◆ outputBaseName

string overlapValidation.OverlapValidation.outputBaseName = "OverlapValidation"
static

◆ resultBaseName

string overlapValidation.OverlapValidation.resultBaseName = "OverlapValidation"
static

◆ scriptBaseName

string overlapValidation.OverlapValidation.scriptBaseName = "TkAlOverlapValidation"
static

◆ valType

string overlapValidation.OverlapValidation.valType = "overlap"
static
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
CustomConfigs.ProcessName
def ProcessName(process)
Definition: CustomConfigs.py:8
format