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 genericValidation.ValidationMetaClass

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 Bookkeeping (self)
 
def cfgName (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 LoadBasicModules (self)
 
def ProcessName (self)
 
def TrackSelectionRefitting (self)
 
def ValidationTemplate (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)
 

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

Constructor & Destructor Documentation

◆ __init__()

def monteCarloValidation.MonteCarloValidation.__init__ (   self,
  valName,
  alignment,
  config 
)
This method adds additional items to the `self.general` dictionary
which are only needed for validations using datasets.

Arguments:
- `valName`: String which identifies individual validation instances
- `alignment`: `Alignment` instance to validate
- `config`: `BetterConfigParser` instance which includes the
    configuration of the validations

Reimplemented from genericValidation.GenericValidationData.

Definition at line 19 of file monteCarloValidation.py.

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 

References genericValidation.GenericValidation.NJobs.

Member Function Documentation

◆ cfgTemplate()

def monteCarloValidation.MonteCarloValidation.cfgTemplate (   self)

Reimplemented from genericValidation.GenericValidationData.

Definition at line 26 of file monteCarloValidation.py.

26  def cfgTemplate(self):
27  return configTemplates.mcValidateTemplate
28 

◆ createCrabCfg()

def monteCarloValidation.MonteCarloValidation.createCrabCfg (   self,
  path 
)

Definition at line 32 of file monteCarloValidation.py.

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

References monteCarloValidation.MonteCarloValidation.crabCfgBaseName.

◆ createScript()

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 

◆ getRepMap()

def monteCarloValidation.MonteCarloValidation.getRepMap (   self,
  alignment = None 
)

Reimplemented from genericValidation.GenericValidationData.

Definition at line 35 of file monteCarloValidation.py.

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 

References genericValidation.GenericValidation.general.

Referenced by plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

Member Data Documentation

◆ configBaseName

string monteCarloValidation.MonteCarloValidation.configBaseName = "TkAlMcValidate"
static

◆ crabCfgBaseName

string monteCarloValidation.MonteCarloValidation.crabCfgBaseName = "TkAlMcValidate"
static

◆ needParentFiles

bool monteCarloValidation.MonteCarloValidation.needParentFiles = True
static

Definition at line 17 of file monteCarloValidation.py.

◆ outputBaseName

string monteCarloValidation.MonteCarloValidation.outputBaseName = "McValidation"
static

◆ resultBaseName

string monteCarloValidation.MonteCarloValidation.resultBaseName = "McValidation"
static

◆ scriptBaseName

string monteCarloValidation.MonteCarloValidation.scriptBaseName = "TkAlMcValidate"
static

◆ valType

string monteCarloValidation.MonteCarloValidation.valType = "mcValidate"
static
mps_setup.cfgTemplate
cfgTemplate
Definition: mps_setup.py:60