CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes
monteCarloValidation.MonteCarloValidation Class Reference
Inheritance diagram for monteCarloValidation.MonteCarloValidation:
genericValidation.GenericValidationData genericValidation.GenericValidation

Public Member Functions

def __init__ (self, valName, alignment, config)
 
def cfgTemplate (self)
 
def createCrabCfg (self, path)
 
def createScript (self, path)
 
def getRepMap (self, alignment=None)
 
- 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)
 

Static Public Attributes

string configBaseName = "TkAlMcValidate"
 
string crabCfgBaseName = "TkAlMcValidate"
 
bool needParentFiles = True
 
string outputBaseName = "McValidation"
 
string resultBaseName = "McValidation"
 
string scriptBaseName = "TkAlMcValidate"
 
string valType = "mcValidate"
 
- 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 monteCarloValidation.py.

Constructor & Destructor Documentation

def monteCarloValidation.MonteCarloValidation.__init__ (   self,
  valName,
  alignment,
  config 
)

Definition at line 18 of file monteCarloValidation.py.

References genericValidation.GenericValidation.NJobs.

18  def __init__(self, valName, alignment, config):
19  super(MonteCarloValidation, self).__init__(valName, alignment, config)
20  if self.NJobs > 1:
21  raise AllInOneError("Parallel jobs not implemented for the MC validation!\n"
22  "Please set parallelJobs = 1.")
23 
def __init__(self, valName, alignment, config)

Member Function Documentation

def monteCarloValidation.MonteCarloValidation.cfgTemplate (   self)

Definition at line 25 of file monteCarloValidation.py.

25  def cfgTemplate(self):
26  return configTemplates.mcValidateTemplate
27 
def monteCarloValidation.MonteCarloValidation.createCrabCfg (   self,
  path 
)

Definition at line 31 of file monteCarloValidation.py.

References monteCarloValidation.MonteCarloValidation.crabCfgBaseName.

31  def createCrabCfg(self, path):
32  return super(MonteCarloValidation, self).createCrabCfg(path, self.crabCfgBaseName)
33 
def monteCarloValidation.MonteCarloValidation.createScript (   self,
  path 
)

Definition at line 28 of file monteCarloValidation.py.

28  def createScript(self, path):
29  return super(MonteCarloValidation, self).createScript(path)
30 
def monteCarloValidation.MonteCarloValidation.getRepMap (   self,
  alignment = None 
)

Definition at line 34 of file monteCarloValidation.py.

References genericValidation.GenericValidation.general, and betterConfigParser.BetterConfigParser.general.

Referenced by plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

34  def getRepMap( self, alignment = None ):
35  repMap = super(MonteCarloValidation, self).getRepMap(alignment)
36  repMap.update({
37  "nEvents": self.general["maxevents"]
38  })
39  repMap["outputFile"] = os.path.expandvars( repMap["outputFile"] )
40  repMap["resultFile"] = os.path.expandvars( repMap["resultFile"] )
41  return repMap
42 

Member Data Documentation

string monteCarloValidation.MonteCarloValidation.configBaseName = "TkAlMcValidate"
static
bool monteCarloValidation.MonteCarloValidation.needParentFiles = True
static

Definition at line 16 of file monteCarloValidation.py.

string monteCarloValidation.MonteCarloValidation.outputBaseName = "McValidation"
static
string monteCarloValidation.MonteCarloValidation.resultBaseName = "McValidation"
static
string monteCarloValidation.MonteCarloValidation.scriptBaseName = "TkAlMcValidate"
static