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
trackSplittingValidation.TrackSplittingValidation Class Reference
Inheritance diagram for trackSplittingValidation.TrackSplittingValidation:

Public Member Functions

def appendToMerge
 
def appendToPlots
 
def createCrabCfg
 
def createScript
 
def getRepMap
 
def plotsdirname
 
def plottingscriptname
 
def plottingscripttemplate
 
def presentationsubsections
 
def ProcessName
 
def ValidationSequence
 
def ValidationTemplate
 

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"
 

Detailed Description

Definition at line 10 of file trackSplittingValidation.py.

Member Function Documentation

def trackSplittingValidation.TrackSplittingValidation.appendToMerge (   self)

Definition at line 63 of file trackSplittingValidation.py.

References overlapValidation.OverlapValidation.getRepMap(), monteCarloValidation.MonteCarloValidation.getRepMap(), trackSplittingValidation.TrackSplittingValidation.getRepMap(), primaryVertexResolution.PrimaryVertexResolution.getRepMap(), preexistingValidation.PreexistingValidation.getRepMap(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), geometryComparison.GeometryComparison.getRepMap(), offlineValidation.OfflineValidation.getRepMap(), preexistingValidation.PreexistingOfflineValidation.getRepMap(), plottingOptions.BasePlottingOptions.getRepMap(), preexistingValidation.PreexistingPrimaryVertexValidation.getRepMap(), genericValidation.GenericValidation.getRepMap(), offlineValidation.OfflineValidationDQM.getRepMap(), alignment.Alignment.getRepMap(), genericValidation.GenericValidationData.getRepMap(), genericValidation.GenericValidationData_CTSR.getRepMap(), and join().

63 
64  def appendToMerge(self):
65  repMap = self.getRepMap()
66 
67  parameters = " ".join(os.path.join("root://eoscms//eos/cms", file.lstrip("/")) for file in repMap["resultFiles"])
68 
69  mergedoutputfile = os.path.join("root://eoscms//eos/cms", repMap["finalResultFile"].lstrip("/"))
70  return "hadd -f %s %s" % (mergedoutputfile, parameters)
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
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(), overlapValidation.OverlapValidation.getRepMap(), monteCarloValidation.MonteCarloValidation.getRepMap(), trackSplittingValidation.TrackSplittingValidation.getRepMap(), primaryVertexResolution.PrimaryVertexResolution.getRepMap(), preexistingValidation.PreexistingValidation.getRepMap(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), geometryComparison.GeometryComparison.getRepMap(), offlineValidation.OfflineValidation.getRepMap(), preexistingValidation.PreexistingOfflineValidation.getRepMap(), plottingOptions.BasePlottingOptions.getRepMap(), preexistingValidation.PreexistingPrimaryVertexValidation.getRepMap(), genericValidation.GenericValidation.getRepMap(), offlineValidation.OfflineValidationDQM.getRepMap(), alignment.Alignment.getRepMap(), genericValidation.GenericValidationData.getRepMap(), and genericValidation.GenericValidationData_CTSR.getRepMap().

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

Definition at line 35 of file trackSplittingValidation.py.

References primaryVertexResolution.PrimaryVertexResolution.crabCfgBaseName, primaryVertexValidation.PrimaryVertexValidation.crabCfgBaseName, offlineValidation.OfflineValidation.crabCfgBaseName, trackSplittingValidation.TrackSplittingValidation.crabCfgBaseName, monteCarloValidation.MonteCarloValidation.crabCfgBaseName, and overlapValidation.OverlapValidation.crabCfgBaseName.

35 
36  def createCrabCfg(self, path):
37  return super(TrackSplittingValidation, self).createCrabCfg(path, self.crabCfgBaseName)
def trackSplittingValidation.TrackSplittingValidation.createScript (   self,
  path 
)

Definition at line 32 of file trackSplittingValidation.py.

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

Definition at line 38 of file trackSplittingValidation.py.

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

Referenced by trackSplittingValidation.TrackSplittingValidation.appendToMerge(), trackSplittingValidation.TrackSplittingValidation.appendToPlots(), zMuMuValidation.ZMuMuValidation.appendToPlots(), and zMuMuValidation.ZMuMuValidation.filesToCompare().

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

Definition at line 80 of file trackSplittingValidation.py.

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

Definition at line 72 of file trackSplittingValidation.py.

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

Definition at line 76 of file trackSplittingValidation.py.

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

Definition at line 84 of file trackSplittingValidation.py.

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

Definition at line 29 of file trackSplittingValidation.py.

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

Definition at line 25 of file trackSplittingValidation.py.

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

Definition at line 21 of file trackSplittingValidation.py.

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

Member Data Documentation

string trackSplittingValidation.TrackSplittingValidation.configBaseName = "TkAlTrackSplitting"
static

Definition at line 11 of file trackSplittingValidation.py.

Referenced by genericValidation.GenericValidationData.cfgName().

string trackSplittingValidation.TrackSplittingValidation.crabCfgBaseName = "TkAlTrackSplitting"
static

Definition at line 13 of file trackSplittingValidation.py.

Referenced by trackSplittingValidation.TrackSplittingValidation.createCrabCfg(), and zMuMuValidation.ZMuMuValidation.createCrabCfg().

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

Definition at line 16 of file trackSplittingValidation.py.

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

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

Definition at line 17 of file trackSplittingValidation.py.

string trackSplittingValidation.TrackSplittingValidation.outputBaseName = "TrackSplitting"
static

Definition at line 15 of file trackSplittingValidation.py.

Referenced by zMuMuValidation.ZMuMuValidation.getRepMap(), and genericValidation.GenericValidationData.getRepMap().

string trackSplittingValidation.TrackSplittingValidation.resultBaseName = "TrackSplitting"
static

Definition at line 14 of file trackSplittingValidation.py.

Referenced by genericValidation.GenericValidationData.getRepMap().

string trackSplittingValidation.TrackSplittingValidation.scriptBaseName = "TkAlTrackSplitting"
static

Definition at line 12 of file trackSplittingValidation.py.

Referenced by genericValidation.GenericValidationData.createScript().

string trackSplittingValidation.TrackSplittingValidation.valType = "split"
static

Definition at line 18 of file trackSplittingValidation.py.

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