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, 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.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 10 of file trackSplittingValidation.py.

Member Function Documentation

def trackSplittingValidation.TrackSplittingValidation.appendToMerge (   self)

Definition at line 62 of file trackSplittingValidation.py.

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

62  def appendToMerge(self):
63  repMap = self.getRepMap()
64 
65  parameters = " ".join(os.path.join("root://eoscms//eos/cms", file.lstrip("/")) for file in repMap["resultFiles"])
66 
67  mergedoutputfile = os.path.join("root://eoscms//eos/cms", repMap["finalResultFile"].lstrip("/"))
68  return "hadd -f %s %s" % (mergedoutputfile, parameters)
69 
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 53 of file trackSplittingValidation.py.

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

53  def appendToPlots(self):
54  """
55  if no argument or "" is passed a string with an instantiation is
56  returned, else the validation is appended to the list
57  """
58  repMap = self.getRepMap()
59  comparestring = self.getCompareStrings("TrackSplittingValidation")
60  return ' "{},"'.format(comparestring)
61 
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 31 of file trackSplittingValidation.py.

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

Definition at line 37 of file trackSplittingValidation.py.

References genericValidation.GenericValidation.general.

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

Definition at line 79 of file trackSplittingValidation.py.

Referenced by presentation.ValidationPlots.validationclass().

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

Definition at line 71 of file trackSplittingValidation.py.

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

Definition at line 75 of file trackSplittingValidation.py.

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

Definition at line 83 of file trackSplittingValidation.py.

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

Definition at line 28 of file trackSplittingValidation.py.

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

Definition at line 24 of file trackSplittingValidation.py.

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

Definition at line 20 of file trackSplittingValidation.py.

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

Member Data Documentation

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

Definition at line 16 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