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

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 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.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)
 

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"}
 

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

def overlapValidation.OverlapValidation.appendToMerge (   self)

Definition at line 48 of file overlapValidation.py.

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

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 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def getRepMap(self, alignment=None)
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

Definition at line 41 of file overlapValidation.py.

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

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 
def getRepMap(self, alignment=None)
def getCompareStrings(self, requestId=None, plain=False)
def overlapValidation.OverlapValidation.getRepMap (   self,
  alignment = None 
)

Definition at line 33 of file overlapValidation.py.

References genericValidation.GenericValidation.general.

Referenced by plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

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 
def getRepMap(self, alignment=None)
def overlapValidation.OverlapValidation.plotsdirname (   cls)

Definition at line 65 of file overlapValidation.py.

Referenced by presentation.ValidationPlots.validationclass().

65  def plotsdirname(cls):
66  return "OverlapValidationPlots"
67 
def overlapValidation.OverlapValidation.plottingscriptname (   cls)

Definition at line 57 of file overlapValidation.py.

58  return "TkAlOverlapValidation.py"
59 
def overlapValidation.OverlapValidation.plottingscripttemplate (   cls)

Definition at line 61 of file overlapValidation.py.

62  return configTemplates.overlapPlottingTemplate
63 
def overlapValidation.OverlapValidation.ProcessName (   self)

Definition at line 30 of file overlapValidation.py.

30  def ProcessName(self):
31  return "overlap"
32 
def overlapValidation.OverlapValidation.runPlots (   cls,
  validations 
)

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 
73 
def overlapValidation.OverlapValidation.ValidationSequence (   self)

Definition at line 26 of file overlapValidation.py.

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

Definition at line 22 of file overlapValidation.py.

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

Member Data Documentation

string overlapValidation.OverlapValidation.configBaseName = "TkAlOverlapValidation"
static
string overlapValidation.OverlapValidation.crabCfgBaseName = "TkAlOverlapValidation"
static
dictionary overlapValidation.OverlapValidation.mandatories = {"trackcollection"}
static

Definition at line 18 of file overlapValidation.py.

string overlapValidation.OverlapValidation.outputBaseName = "OverlapValidation"
static
string overlapValidation.OverlapValidation.resultBaseName = "OverlapValidation"
static
string overlapValidation.OverlapValidation.scriptBaseName = "TkAlOverlapValidation"
static
string overlapValidation.OverlapValidation.valType = "overlap"
static