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 11 of file monteCarloValidation.py.

Constructor & Destructor Documentation

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

Definition at line 19 of file monteCarloValidation.py.

References genericValidation.GenericValidation.NJobs.

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

Member Function Documentation

def monteCarloValidation.MonteCarloValidation.cfgTemplate (   self)

Definition at line 26 of file monteCarloValidation.py.

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

Definition at line 32 of file monteCarloValidation.py.

References monteCarloValidation.MonteCarloValidation.crabCfgBaseName.

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

Definition at line 29 of file monteCarloValidation.py.

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

Definition at line 35 of file monteCarloValidation.py.

References genericValidation.GenericValidation.general.

Referenced by plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

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

Member Data Documentation

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

Definition at line 17 of file monteCarloValidation.py.

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