CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Attributes
overlapValidation.OverlapValidation Class Reference
Inheritance diagram for overlapValidation.OverlapValidation:

Public Member Functions

def appendToMerge
 
def appendToPlots
 
def getRepMap
 
def plotsdirname
 
def plottingscriptname
 
def plottingscripttemplate
 
def ProcessName
 
def runPlots
 
def ValidationSequence
 
def ValidationTemplate
 

Static Public Attributes

string configBaseName = "TkAlOverlapValidation"
 
string crabCfgBaseName = "TkAlOverlapValidation"
 
dictionary mandatories = {"trackcollection"}
 
string outputBaseName = "OverlapValidation"
 
string resultBaseName = "OverlapValidation"
 
string scriptBaseName = "TkAlOverlapValidation"
 
string valType = "overlap"
 

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 overlapValidation.OverlapValidation.getRepMap(), monteCarloValidation.MonteCarloValidation.getRepMap(), geometryComparison.GeometryComparison.getRepMap(), offlineValidation.OfflineValidation.getRepMap(), genericValidation.GenericValidation.getRepMap(), offlineValidation.OfflineValidationDQM.getRepMap(), alignment.Alignment.getRepMap(), genericValidation.GenericValidationData.getRepMap(), genericValidation.GenericValidationData_CTSR.getRepMap(), and join().

48 
49  def appendToMerge(self):
50  repMap = self.getRepMap()
51 
52  parameters = " ".join(os.path.join("root://eoscms//eos/cms", file.lstrip("/")) for file in repMap["resultFiles"])
53 
54  mergedoutputfile = os.path.join("root://eoscms//eos/cms", repMap["finalResultFile"].lstrip("/"))
55  return "hadd -f %s %s" % (mergedoutputfile, parameters)
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
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(), overlapValidation.OverlapValidation.getRepMap(), monteCarloValidation.MonteCarloValidation.getRepMap(), geometryComparison.GeometryComparison.getRepMap(), offlineValidation.OfflineValidation.getRepMap(), genericValidation.GenericValidation.getRepMap(), offlineValidation.OfflineValidationDQM.getRepMap(), alignment.Alignment.getRepMap(), genericValidation.GenericValidationData.getRepMap(), and genericValidation.GenericValidationData_CTSR.getRepMap().

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

Definition at line 33 of file overlapValidation.py.

References preexistingValidation.PreexistingValidation.general, plottingOptions.BasePlottingOptions.general, and genericValidation.GenericValidation.general.

Referenced by overlapValidation.OverlapValidation.appendToMerge(), trackSplittingValidation.TrackSplittingValidation.appendToMerge(), primaryVertexResolution.PrimaryVertexResolution.appendToMerge(), primaryVertexValidation.PrimaryVertexValidation.appendToMerge(), overlapValidation.OverlapValidation.appendToPlots(), trackSplittingValidation.TrackSplittingValidation.appendToPlots(), primaryVertexResolution.PrimaryVertexResolution.appendToPlots(), primaryVertexValidation.PrimaryVertexValidation.appendToPlots(), zMuMuValidation.ZMuMuValidation.appendToPlots(), zMuMuValidation.ZMuMuValidation.filesToCompare(), and plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

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

Definition at line 65 of file overlapValidation.py.

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

Definition at line 57 of file overlapValidation.py.

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

Definition at line 61 of file overlapValidation.py.

61 
62  def plottingscripttemplate(cls):
63  return configTemplates.overlapPlottingTemplate
def overlapValidation.OverlapValidation.ProcessName (   self)

Definition at line 30 of file overlapValidation.py.

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

Definition at line 69 of file overlapValidation.py.

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

Definition at line 26 of file overlapValidation.py.

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

Definition at line 22 of file overlapValidation.py.

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

Member Data Documentation

string overlapValidation.OverlapValidation.configBaseName = "TkAlOverlapValidation"
static

Definition at line 13 of file overlapValidation.py.

Referenced by genericValidation.GenericValidationData.cfgName().

string overlapValidation.OverlapValidation.crabCfgBaseName = "TkAlOverlapValidation"
static

Definition at line 15 of file overlapValidation.py.

Referenced by trackSplittingValidation.TrackSplittingValidation.createCrabCfg(), primaryVertexResolution.PrimaryVertexResolution.createCrabCfg(), primaryVertexValidation.PrimaryVertexValidation.createCrabCfg(), and zMuMuValidation.ZMuMuValidation.createCrabCfg().

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

Definition at line 18 of file overlapValidation.py.

string overlapValidation.OverlapValidation.outputBaseName = "OverlapValidation"
static

Definition at line 17 of file overlapValidation.py.

Referenced by primaryVertexResolution.PrimaryVertexResolution.getRepMap(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), zMuMuValidation.ZMuMuValidation.getRepMap(), and genericValidation.GenericValidationData.getRepMap().

string overlapValidation.OverlapValidation.resultBaseName = "OverlapValidation"
static

Definition at line 16 of file overlapValidation.py.

Referenced by genericValidation.GenericValidationData.getRepMap().

string overlapValidation.OverlapValidation.scriptBaseName = "TkAlOverlapValidation"
static

Definition at line 14 of file overlapValidation.py.

Referenced by genericValidation.GenericValidationData.createScript().

string overlapValidation.OverlapValidation.valType = "overlap"
static

Definition at line 19 of file overlapValidation.py.

Referenced by preexistingValidation.PreexistingValidation.getRepMap(), genericValidation.GenericValidation.getRepMap(), validateAlignments.ValidationJob.runJob(), and zMuMuValidation.ZMuMuValidation.trackcollection().