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.ValidationMetaClass genericValidation.ValidationWithPlots genericValidation.GenericValidation genericValidation.ValidationMetaClass genericValidation.GenericValidation genericValidation.ValidationMetaClass 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.ValidationMetaClass
def __new__ (cls, clsname, bases, dct)
 
- 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 defaults = {"multiIOV":"False"}
 
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"}
 
- 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 10 of file trackSplittingValidation.py.

Member Function Documentation

◆ appendToMerge()

def trackSplittingValidation.TrackSplittingValidation.appendToMerge (   self)

Definition at line 63 of file trackSplittingValidation.py.

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

63  def appendToMerge(self):
64  repMap = self.getRepMap()
65 
66  parameters = " ".join(os.path.join("root://eoscms//eos/cms", file.lstrip("/")) for file in repMap["resultFiles"])
67 
68  mergedoutputfile = os.path.join("root://eoscms//eos/cms", repMap["finalResultFile"].lstrip("/"))
69  return "hadd -f %s %s" % (mergedoutputfile, parameters)
70 
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

◆ appendToPlots()

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

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

54  def appendToPlots(self):
55  """
56  if no argument or "" is passed a string with an instantiation is
57  returned, else the validation is appended to the list
58  """
59  repMap = self.getRepMap()
60  comparestring = self.getCompareStrings("TrackSplittingValidation")
61  return ' "{},"'.format(comparestring)
62 

◆ createCrabCfg()

def trackSplittingValidation.TrackSplittingValidation.createCrabCfg (   self,
  path 
)

◆ createScript()

def trackSplittingValidation.TrackSplittingValidation.createScript (   self,
  path 
)

Definition at line 32 of file trackSplittingValidation.py.

32  def createScript(self, path):
33  return super(TrackSplittingValidation, self).createScript(path)
34 

◆ getRepMap()

def trackSplittingValidation.TrackSplittingValidation.getRepMap (   self,
  alignment = None 
)

Definition at line 38 of file trackSplittingValidation.py.

References genericValidation.GenericValidation.general.

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

◆ plotsdirname()

def trackSplittingValidation.TrackSplittingValidation.plotsdirname (   cls)

Definition at line 80 of file trackSplittingValidation.py.

Referenced by presentation.ValidationPlots.validationclass().

80  def plotsdirname(cls):
81  return "TrackSplittingPlots"
82 

◆ plottingscriptname()

def trackSplittingValidation.TrackSplittingValidation.plottingscriptname (   cls)

Definition at line 72 of file trackSplittingValidation.py.

72  def plottingscriptname(cls):
73  return "TkAlTrackSplitPlot.C"
74 

◆ plottingscripttemplate()

def trackSplittingValidation.TrackSplittingValidation.plottingscripttemplate (   cls)

Definition at line 76 of file trackSplittingValidation.py.

76  def plottingscripttemplate(cls):
77  return configTemplates.trackSplitPlotTemplate
78 

◆ presentationsubsections()

def trackSplittingValidation.TrackSplittingValidation.presentationsubsections (   cls)

Definition at line 84 of file trackSplittingValidation.py.

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

◆ ProcessName()

def trackSplittingValidation.TrackSplittingValidation.ProcessName (   self)

Definition at line 29 of file trackSplittingValidation.py.

29  def ProcessName(self):
30  return "splitter"
31 
def ProcessName(process)
Definition: CustomConfigs.py:8

◆ ValidationSequence()

def trackSplittingValidation.TrackSplittingValidation.ValidationSequence (   self)

Definition at line 25 of file trackSplittingValidation.py.

25  def ValidationSequence(self):
26  return configTemplates.TrackSplittingSequence
27 

◆ ValidationTemplate()

def trackSplittingValidation.TrackSplittingValidation.ValidationTemplate (   self)

Definition at line 21 of file trackSplittingValidation.py.

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

Member Data Documentation

◆ configBaseName

string trackSplittingValidation.TrackSplittingValidation.configBaseName = "TkAlTrackSplitting"
static

◆ crabCfgBaseName

string trackSplittingValidation.TrackSplittingValidation.crabCfgBaseName = "TkAlTrackSplitting"
static

◆ defaults

dictionary trackSplittingValidation.TrackSplittingValidation.defaults = {"multiIOV":"False"}
static

Definition at line 16 of file trackSplittingValidation.py.

Referenced by tree.Tree.reset(), and tree.Tree.var().

◆ mandatories

dictionary trackSplittingValidation.TrackSplittingValidation.mandatories = {"trackcollection"}
static

Definition at line 17 of file trackSplittingValidation.py.

◆ outputBaseName

string trackSplittingValidation.TrackSplittingValidation.outputBaseName = "TrackSplitting"
static

◆ resultBaseName

string trackSplittingValidation.TrackSplittingValidation.resultBaseName = "TrackSplitting"
static

◆ scriptBaseName

string trackSplittingValidation.TrackSplittingValidation.scriptBaseName = "TkAlTrackSplitting"
static

◆ valType

string trackSplittingValidation.TrackSplittingValidation.valType = "split"
static