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 isPVValidation (self)
 
def TrackSelectionRefitting (self)
 
def use_d0cut (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 FileOutputTemplate (self)
 
def filesToCompare (self)
 
def LoadBasicModules (self)
 
- Public Member Functions inherited from genericValidation.GenericValidation
def createConfiguration (self, fileContents, path, schedule=None, repMap=None, repMaps=None)
 
def createFiles (self, fileContents, path, repMap=None, repMaps=None)
 
def getCompareStrings (self, requestId=None, plain=False)
 
- Public Member Functions inherited from genericValidation.ValidationMetaClass
def __new__ (cls, clsname, bases, dct)
 
- Public Member Functions inherited from genericValidation.ParallelValidation
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 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 createPlottingScript (cls, validations)
 
def doRunPlots (cls, validations)
 
def runPlots (cls, validations)
 

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)

Reimplemented from genericValidation.ParallelValidation.

Definition at line 63 of file trackSplittingValidation.py.

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 

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

◆ 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

Reimplemented from genericValidation.ValidationWithPlots.

Definition at line 54 of file trackSplittingValidation.py.

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 

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

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

Reimplemented from genericValidation.GenericValidationData_CTSR.

Definition at line 38 of file trackSplittingValidation.py.

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 

References genericValidation.GenericValidation.general.

◆ plotsdirname()

def trackSplittingValidation.TrackSplittingValidation.plotsdirname (   cls)
override with a classmethod

Reimplemented from genericValidation.ValidationWithPlots.

Definition at line 80 of file trackSplittingValidation.py.

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

Referenced by presentation.ValidationPlots.validationclass().

◆ plottingscriptname()

def trackSplittingValidation.TrackSplittingValidation.plottingscriptname (   cls)
override with a classmethod

Reimplemented from genericValidation.ValidationWithPlots.

Definition at line 72 of file trackSplittingValidation.py.

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

◆ plottingscripttemplate()

def trackSplittingValidation.TrackSplittingValidation.plottingscripttemplate (   cls)
override with a classmethod

Reimplemented from genericValidation.ValidationWithPlots.

Definition at line 76 of file trackSplittingValidation.py.

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

◆ presentationsubsections()

def trackSplittingValidation.TrackSplittingValidation.presentationsubsections (   cls)
classmethod

Reimplemented from genericValidation.ValidationForPresentation.

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)

Reimplemented from genericValidation.GenericValidationData.

Definition at line 29 of file trackSplittingValidation.py.

29  def ProcessName(self):
30  return "splitter"
31 

◆ ValidationSequence()

def trackSplittingValidation.TrackSplittingValidation.ValidationSequence (   self)

Reimplemented from genericValidation.GenericValidationData_CTSR.

Definition at line 25 of file trackSplittingValidation.py.

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

◆ ValidationTemplate()

def trackSplittingValidation.TrackSplittingValidation.ValidationTemplate (   self)

Reimplemented from genericValidation.GenericValidationData.

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
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
CustomConfigs.ProcessName
def ProcessName(process)
Definition: CustomConfigs.py:8
format