CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes
trackSplittingValidation.TrackSplittingValidation Class Reference
Inheritance diagram for trackSplittingValidation.TrackSplittingValidation:
genericValidation.GenericValidationData_CTSR genericValidation.ParallelValidation genericValidation.ValidationWithPlotsSummary genericValidation.ValidationForPresentation genericValidation.GenericValidationData genericValidation.GenericValidation genericValidation.ValidationWithPlotsSummaryBase genericValidation.ValidationWithPlots genericValidation.GenericValidation genericValidation.ValidationWithPlots genericValidation.GenericValidation genericValidation.GenericValidation preexistingValidation.PreexistingTrackSplittingValidation

Public Member Functions

def appendToMerge (self)
 
def appendToPlots (self)
 
def createCrabCfg (self, path)
 
def createScript (self, path)
 
def getRepMap (self, alignment=None)
 
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)
 
def TrackSelectionRefitting (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.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 = "TkAlTrackSplitting"
 
string crabCfgBaseName = "TkAlTrackSplitting"
 
dictionary mandatories = {"trackcollection"}
 
string outputBaseName = "TrackSplitting"
 
string resultBaseName = "TrackSplitting"
 
string scriptBaseName = "TkAlTrackSplitting"
 
string valType = "split"
 
- 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 9 of file trackSplittingValidation.py.

Member Function Documentation

def trackSplittingValidation.TrackSplittingValidation.appendToMerge (   self)

Definition at line 61 of file trackSplittingValidation.py.

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

61  def appendToMerge(self):
62  repMap = self.getRepMap()
63 
64  parameters = " ".join(os.path.join("root://eoscms//eos/cms", file.lstrip("/")) for file in repMap["resultFiles"])
65 
66  mergedoutputfile = os.path.join("root://eoscms//eos/cms", repMap["finalResultFile"].lstrip("/"))
67  return "hadd -f %s %s" % (mergedoutputfile, parameters)
68 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def getRepMap(self, alignment=None)
def trackSplittingValidation.TrackSplittingValidation.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 52 of file trackSplittingValidation.py.

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

52  def appendToPlots(self):
53  """
54  if no argument or "" is passed a string with an instantiation is
55  returned, else the validation is appended to the list
56  """
57  repMap = self.getRepMap()
58  comparestring = self.getCompareStrings("TrackSplittingValidation")
59  return ' "{},"'.format(comparestring)
60 
def getRepMap(self, alignment=None)
def getCompareStrings(self, requestId=None, plain=False)
def trackSplittingValidation.TrackSplittingValidation.createCrabCfg (   self,
  path 
)
def trackSplittingValidation.TrackSplittingValidation.createScript (   self,
  path 
)

Definition at line 30 of file trackSplittingValidation.py.

30  def createScript(self, path):
31  return super(TrackSplittingValidation, self).createScript(path)
32 
def trackSplittingValidation.TrackSplittingValidation.getRepMap (   self,
  alignment = None 
)

Definition at line 36 of file trackSplittingValidation.py.

References genericValidation.GenericValidation.general.

36  def getRepMap( self, alignment = None ):
37  repMap = super(TrackSplittingValidation, self).getRepMap()
38  if repMap["subdetector"] == "none":
39  subdetselection = ""
40  else:
41  subdetselection = "process.AlignmentTrackSelector.minHitsPerSubDet.in.oO[subdetector]Oo. = 2"
42  repMap.update({
43  "nEvents": self.general["maxevents"],
44  "TrackCollection": self.general["trackcollection"],
45  "subdetselection": subdetselection,
46  })
47  # repMap["outputFile"] = os.path.abspath( repMap["outputFile"] )
48  # if self.jobmode.split( ',' )[0] == "crab":
49  # repMap["outputFile"] = os.path.basename( repMap["outputFile"] )
50  return repMap
51 
def trackSplittingValidation.TrackSplittingValidation.plotsdirname (   cls)

Definition at line 78 of file trackSplittingValidation.py.

Referenced by presentation.ValidationPlots.validationclass().

78  def plotsdirname(cls):
79  return "TrackSplittingPlots"
80 
def trackSplittingValidation.TrackSplittingValidation.plottingscriptname (   cls)

Definition at line 70 of file trackSplittingValidation.py.

71  return "TkAlTrackSplitPlot.C"
72 
def trackSplittingValidation.TrackSplittingValidation.plottingscripttemplate (   cls)

Definition at line 74 of file trackSplittingValidation.py.

75  return configTemplates.trackSplitPlotTemplate
76 
def trackSplittingValidation.TrackSplittingValidation.presentationsubsections (   cls)

Definition at line 82 of file trackSplittingValidation.py.

83  return [
84  SubsectionTrackSplitting('hist.*eps$', 'Track splitting'),
85 # Uncomment and edit to highlight one or more profiles
86 # SubsectionOnePage("profile.phi_org.Delta_phi.*.eps", "modulation"),
87  ]
88 
def trackSplittingValidation.TrackSplittingValidation.ProcessName (   self)

Definition at line 27 of file trackSplittingValidation.py.

27  def ProcessName(self):
28  return "splitter"
29 
def trackSplittingValidation.TrackSplittingValidation.ValidationSequence (   self)

Definition at line 23 of file trackSplittingValidation.py.

23  def ValidationSequence(self):
24  return configTemplates.TrackSplittingSequence
25 
def trackSplittingValidation.TrackSplittingValidation.ValidationTemplate (   self)

Definition at line 19 of file trackSplittingValidation.py.

19  def ValidationTemplate(self):
20  return configTemplates.TrackSplittingTemplate
21 

Member Data Documentation

string trackSplittingValidation.TrackSplittingValidation.configBaseName = "TkAlTrackSplitting"
static
string trackSplittingValidation.TrackSplittingValidation.crabCfgBaseName = "TkAlTrackSplitting"
static
dictionary trackSplittingValidation.TrackSplittingValidation.mandatories = {"trackcollection"}
static

Definition at line 15 of file trackSplittingValidation.py.

string trackSplittingValidation.TrackSplittingValidation.outputBaseName = "TrackSplitting"
static
string trackSplittingValidation.TrackSplittingValidation.resultBaseName = "TrackSplitting"
static
string trackSplittingValidation.TrackSplittingValidation.scriptBaseName = "TkAlTrackSplitting"
static
string trackSplittingValidation.TrackSplittingValidation.valType = "split"
static