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
monteCarloValidation.MonteCarloValidation Class Reference
Inheritance diagram for monteCarloValidation.MonteCarloValidation:
genericValidation.GenericValidationData genericValidation.GenericValidation

Public Member Functions

def __init__
 
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 10 of file monteCarloValidation.py.

Constructor & Destructor Documentation

def monteCarloValidation.MonteCarloValidation.__init__ (   self,
  valName,
  alignment,
  config,
  configBaseName = "TkAlMcValidate",
  scriptBaseName = "TkAlMcValidate",
  crabCfgBaseName = "TkAlMcValidate",
  resultBaseName = "McValidation",
  outputBaseName = "McValidation" 
)

Definition at line 13 of file monteCarloValidation.py.

13 
14  resultBaseName = "McValidation", outputBaseName = "McValidation"):
15  self.configBaseName = configBaseName
16  self.scriptBaseName = scriptBaseName
17  self.crabCfgBaseName = crabCfgBaseName
18  self.resultBaseName = resultBaseName
19  self.outputBaseName = outputBaseName
20  self.needParentFiles = True
21  GenericValidationData.__init__(self, valName, alignment, config,
22  "mcValidate")
23  if self.NJobs > 1:
24  raise AllInOneError("Parallel jobs not implemented for the MC validation!\n"
25  "Please set parallelJobs = 1.")

Member Function Documentation

def monteCarloValidation.MonteCarloValidation.createConfiguration (   self,
  path 
)

Definition at line 26 of file monteCarloValidation.py.

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

26 
27  def createConfiguration(self, path ):
28  cfgName = "%s.%s.%s_cfg.py"%(self.configBaseName, self.name,
29  self.alignmentToValidate.name)
30  repMap = self.getRepMap()
31  cfgs = {cfgName: configTemplates.mcValidateTemplate}
32  self.filesToCompare[GenericValidationData.defaultReferenceName] = \
33  repMap["finalResultFile"]
34  GenericValidationData.createConfiguration(self, cfgs, path, repMap = repMap)
def monteCarloValidation.MonteCarloValidation.createCrabCfg (   self,
  path 
)

Definition at line 38 of file monteCarloValidation.py.

References monteCarloValidation.MonteCarloValidation.crabCfgBaseName.

38 
39  def createCrabCfg(self, path):
40  return GenericValidationData.createCrabCfg(self, path, self.crabCfgBaseName)
def monteCarloValidation.MonteCarloValidation.createScript (   self,
  path 
)

Definition at line 35 of file monteCarloValidation.py.

35 
36  def createScript(self, path):
37  return GenericValidationData.createScript(self, path)
def monteCarloValidation.MonteCarloValidation.getRepMap (   self,
  alignment = None 
)

Definition at line 41 of file monteCarloValidation.py.

References genericValidation.GenericValidation.general.

41 
42  def getRepMap( self, alignment = None ):
43  repMap = GenericValidationData.getRepMap(self, alignment)
44  repMap.update({
45  "nEvents": self.general["maxevents"]
46  })
47  repMap["outputFile"] = os.path.expandvars( repMap["outputFile"] )
48  repMap["resultFile"] = os.path.expandvars( repMap["resultFile"] )
49  return repMap
50 

Member Data Documentation

monteCarloValidation.MonteCarloValidation.configBaseName

Definition at line 14 of file monteCarloValidation.py.

Referenced by monteCarloValidation.MonteCarloValidation.createConfiguration(), trackSplittingValidation.TrackSplittingValidation.createConfiguration(), zMuMuValidation.ZMuMuValidation.createConfiguration(), and offlineValidation.OfflineValidation.createConfiguration().

monteCarloValidation.MonteCarloValidation.crabCfgBaseName

Definition at line 16 of file monteCarloValidation.py.

Referenced by monteCarloValidation.MonteCarloValidation.createCrabCfg(), trackSplittingValidation.TrackSplittingValidation.createCrabCfg(), zMuMuValidation.ZMuMuValidation.createCrabCfg(), and offlineValidation.OfflineValidation.createCrabCfg().

monteCarloValidation.MonteCarloValidation.needParentFiles

Definition at line 19 of file monteCarloValidation.py.

monteCarloValidation.MonteCarloValidation.outputBaseName

Definition at line 18 of file monteCarloValidation.py.

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

monteCarloValidation.MonteCarloValidation.resultBaseName

Definition at line 17 of file monteCarloValidation.py.

Referenced by genericValidation.GenericValidationData.getRepMap().

monteCarloValidation.MonteCarloValidation.scriptBaseName

Definition at line 15 of file monteCarloValidation.py.

Referenced by genericValidation.GenericValidationData.createScript().