CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
trackSplittingValidation.TrackSplittingValidation Class Reference
Inheritance diagram for trackSplittingValidation.TrackSplittingValidation:
genericValidation.GenericValidationData genericValidation.GenericValidation

Public Member Functions

def __init__
 
def appendToExtendedValidation
 
def appendToMerge
 
def createConfiguration
 
def createCrabCfg
 
def createScript
 
def getRepMap
 
- Public Member Functions inherited from genericValidation.GenericValidationData
def __init__
 
def createCrabCfg
 
def createScript
 
def getRepMap
 
- Public Member Functions inherited from genericValidation.GenericValidation
def __init__
 
def createConfiguration
 
def createCrabCfg
 
def createFiles
 
def createScript
 
def getCompareStrings
 
def getRepMap
 

Public Attributes

 configBaseName
 
 crabCfgBaseName
 
 needParentFiles
 
 outputBaseName
 
 resultBaseName
 
 scriptBaseName
 
- Public Attributes inherited from genericValidation.GenericValidationData
 crabWorkingDir
 
 dataset
 
- Public Attributes inherited from genericValidation.GenericValidation
 alignmentToValidate
 
 AutoAlternates
 
 cmssw
 
 cmsswreleasebase
 
 config
 
 configFiles
 
 crabConfigFiles
 
 filesToCompare
 
 general
 
 jobmode
 
 name
 
 NJobs
 
 randomWorkdirPart
 
 scramarch
 
 scriptFiles
 

Additional Inherited Members

- Static Public Attributes inherited from genericValidation.GenericValidation
string defaultReferenceName = "DEFAULT"
 

Detailed Description

Definition at line 8 of file trackSplittingValidation.py.

Constructor & Destructor Documentation

def trackSplittingValidation.TrackSplittingValidation.__init__ (   self,
  valName,
  alignment,
  config,
  configBaseName = "TkAlTrackSplitting",
  scriptBaseName = "TkAlTrackSplitting",
  crabCfgBaseName = "TkAlTrackSplitting",
  resultBaseName = "TrackSplitting",
  outputBaseName = "TrackSplitting" 
)

Definition at line 11 of file trackSplittingValidation.py.

11 
12  resultBaseName = "TrackSplitting", outputBaseName = "TrackSplitting"):
13  mandatories = ["trackcollection"]
14  self.configBaseName = configBaseName
15  self.scriptBaseName = scriptBaseName
16  self.crabCfgBaseName = crabCfgBaseName
17  self.resultBaseName = resultBaseName
18  self.outputBaseName = outputBaseName
19  self.needParentFiles = False
20  GenericValidationData.__init__(self, valName, alignment, config,
21  "split", addMandatories = mandatories)

Member Function Documentation

def trackSplittingValidation.TrackSplittingValidation.appendToExtendedValidation (   self,
  validationsSoFar = "" 
)
if no argument or "" is passed a string with an instantiation is
returned, else the validation is appended to the list

Definition at line 49 of file trackSplittingValidation.py.

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

49 
50  def appendToExtendedValidation( self, validationsSoFar = "" ):
51  """
52  if no argument or "" is passed a string with an instantiation is
53  returned, else the validation is appended to the list
54  """
55  repMap = self.getRepMap()
56  comparestring = self.getCompareStrings("TrackSplittingValidation")
57  if validationsSoFar != "":
58  validationsSoFar += ',"\n "'
59  validationsSoFar += comparestring
60  return validationsSoFar
def trackSplittingValidation.TrackSplittingValidation.appendToMerge (   self,
  validationsSoFar = "" 
)
if no argument or "" is passed a string with an instantiation is returned,
else the validation is appended to the list

Definition at line 61 of file trackSplittingValidation.py.

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

61 
62  def appendToMerge( self, validationsSoFar = "" ):
63  """
64  if no argument or "" is passed a string with an instantiation is returned,
65  else the validation is appended to the list
66  """
67  repMap = self.getRepMap()
68 
69  parameters = " ".join(os.path.join("root://eoscms//eos/cms", file.lstrip("/")) for file in repMap["resultFiles"])
70 
71  mergedoutputfile = os.path.join("root://eoscms//eos/cms", repMap["finalResultFile"].lstrip("/"))
72  validationsSoFar += "hadd -f %s %s\n" % (mergedoutputfile, parameters)
73  return validationsSoFar
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def trackSplittingValidation.TrackSplittingValidation.createConfiguration (   self,
  path 
)

Definition at line 22 of file trackSplittingValidation.py.

References trackSplittingValidation.TrackSplittingValidation.configBaseName, monteCarloValidation.MonteCarloValidation.configBaseName, offlineValidation.OfflineValidation.configBaseName, genericValidation.GenericValidation.filesToCompare, genericValidation.GenericValidation.getRepMap(), alignment.Alignment.getRepMap(), entry.name, genericValidation.GenericValidation.name, alignment.Alignment.name, MuonGeometrySanityCheckPoint.name, and plotscripts.SawTeethFunction.name.

22 
23  def createConfiguration(self, path ):
24  cfgName = "%s.%s.%s_cfg.py"%(self.configBaseName, self.name,
25  self.alignmentToValidate.name)
26  repMap = self.getRepMap()
27  cfgs = {cfgName: configTemplates.TrackSplittingTemplate}
28  self.filesToCompare[GenericValidationData.defaultReferenceName] = \
29  repMap["finalResultFile"]
30  GenericValidationData.createConfiguration(self, cfgs, path, repMap = repMap)
def trackSplittingValidation.TrackSplittingValidation.createCrabCfg (   self,
  path 
)

Definition at line 34 of file trackSplittingValidation.py.

References trackSplittingValidation.TrackSplittingValidation.crabCfgBaseName, monteCarloValidation.MonteCarloValidation.crabCfgBaseName, and offlineValidation.OfflineValidation.crabCfgBaseName.

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

Definition at line 31 of file trackSplittingValidation.py.

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

Definition at line 37 of file trackSplittingValidation.py.

References genericValidation.GenericValidation.general.

37 
38  def getRepMap( self, alignment = None ):
39  repMap = GenericValidationData.getRepMap(self)
40  repMap.update({
41  "nEvents": self.general["maxevents"],
42  "TrackCollection": self.general["trackcollection"]
43  })
44  # repMap["outputFile"] = os.path.abspath( repMap["outputFile"] )
45  # if self.jobmode.split( ',' )[0] == "crab":
46  # repMap["outputFile"] = os.path.basename( repMap["outputFile"] )
47  return repMap
48 

Member Data Documentation

trackSplittingValidation.TrackSplittingValidation.configBaseName

Definition at line 13 of file trackSplittingValidation.py.

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

trackSplittingValidation.TrackSplittingValidation.crabCfgBaseName

Definition at line 15 of file trackSplittingValidation.py.

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

trackSplittingValidation.TrackSplittingValidation.needParentFiles

Definition at line 18 of file trackSplittingValidation.py.

trackSplittingValidation.TrackSplittingValidation.outputBaseName

Definition at line 17 of file trackSplittingValidation.py.

Referenced by genericValidation.GenericValidationData.getRepMap().

trackSplittingValidation.TrackSplittingValidation.resultBaseName

Definition at line 16 of file trackSplittingValidation.py.

Referenced by genericValidation.GenericValidationData.getRepMap().

trackSplittingValidation.TrackSplittingValidation.scriptBaseName

Definition at line 14 of file trackSplittingValidation.py.

Referenced by genericValidation.GenericValidationData.createScript().