CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
zMuMuValidation.ZMuMuValidation Class Reference
Inheritance diagram for zMuMuValidation.ZMuMuValidation:
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
 
- Public Member Functions inherited from genericValidation.GenericValidation
def __init__
 
def createConfiguration
 
def createCrabCfg
 
def createFiles
 
def createScript
 
def getCompareStrings
 
def getRepMap
 

Additional Inherited Members

- Public Attributes inherited from genericValidation.GenericValidationData
 crabWorkingDir
 
 dataset
 
 jobmode
 
- Public Attributes inherited from genericValidation.GenericValidation
 alignmentToValidate
 
 config
 
 configFiles
 
 crabConfigFiles
 
 filesToCompare
 
 general
 
 jobmode
 
 name
 
 randomWorkdirPart
 
 scriptFiles
 
- Static Public Attributes inherited from genericValidation.GenericValidation
string defaultReferenceName = "DEFAULT"
 

Detailed Description

Definition at line 9 of file zMuMuValidation.py.

Constructor & Destructor Documentation

def zMuMuValidation.ZMuMuValidation.__init__ (   self,
  valName,
  alignment,
  config 
)

Definition at line 10 of file zMuMuValidation.py.

10 
11  def __init__(self, valName, alignment,config):
12  defaults = {
13  "zmumureference": ("/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN2"
14  "/TMP_EM/ZMuMu/data/MC/BiasCheck_DYToMuMu_Summer"
15  "11_TkAlZMuMu_IDEAL.root"),
16  "resonance": "Z"
17  }
18  mandatories = ["dataset", "maxevents",
19  "etamaxneg", "etaminneg", "etamaxpos", "etaminpos"]
20  GenericValidationData.__init__(self, valName, alignment, config,
21  "zmumu", addDefaults=defaults,
22  addMandatories=mandatories)

Member Function Documentation

def zMuMuValidation.ZMuMuValidation.createConfiguration (   self,
  path,
  configBaseName = "TkAlZMuMuValidation" 
)

Definition at line 23 of file zMuMuValidation.py.

References genericValidation.GenericValidation.getRepMap(), alignment.Alignment.getRepMap(), entry.name, genericValidation.GenericValidation.name, alignment.Alignment.name, MuonGeometrySanityCheckPoint.name, plotscripts.SawTeethFunction.name, and helperFunctions.replaceByMap().

23 
24  def createConfiguration(self, path, configBaseName = "TkAlZMuMuValidation" ):
25  cfgName = "%s.%s.%s_cfg.py"%( configBaseName, self.name,
26  self.alignmentToValidate.name )
27  repMap = self.getRepMap()
28  cfgs = {cfgName:replaceByMap(configTemplates.ZMuMuValidationTemplate,
29  repMap)}
30  GenericValidationData.createConfiguration(self, cfgs, path)
def replaceByMap
— Helpers —############################
def zMuMuValidation.ZMuMuValidation.createCrabCfg (   self,
  path,
  crabCfgBaseName = "TkAlZMuMuValidation" 
)

Definition at line 45 of file zMuMuValidation.py.

45 
46  def createCrabCfg(self, path, crabCfgBaseName = "TkAlZMuMuValidation"):
47  return GenericValidationData.createCrabCfg(self, path, crabCfgBaseName)
def zMuMuValidation.ZMuMuValidation.createScript (   self,
  path,
  scriptBaseName = "TkAlZMuMuValidation" 
)

Definition at line 31 of file zMuMuValidation.py.

References genericValidation.GenericValidation.configFiles, genericValidation.GenericValidation.getRepMap(), alignment.Alignment.getRepMap(), entry.name, genericValidation.GenericValidation.name, alignment.Alignment.name, MuonGeometrySanityCheckPoint.name, plotscripts.SawTeethFunction.name, and helperFunctions.replaceByMap().

31 
32  def createScript(self, path, scriptBaseName = "TkAlZMuMuValidation"):
33  scriptName = "%s.%s.%s.sh"%(scriptBaseName, self.name,
34  self.alignmentToValidate.name )
35  repMap = self.getRepMap()
36  repMap["CommandLine"]=""
37  for cfg in self.configFiles:
38  repMap["CommandLine"]+= repMap["CommandLineTemplate"]%{"cfgFile":cfg,
39  "postProcess":""
40  }
41  scripts = {scriptName: replaceByMap(configTemplates.zMuMuScriptTemplate,
42  repMap ) }
43  return GenericValidationData.createScript(self, scripts, path)
44 
def replaceByMap
— Helpers —############################
def zMuMuValidation.ZMuMuValidation.getRepMap (   self,
  alignment = None 
)

Definition at line 48 of file zMuMuValidation.py.

References genericValidation.GenericValidation.general.

48 
49  def getRepMap(self, alignment = None):
50  repMap = GenericValidationData.getRepMap(self, alignment)
51  repMap.update({
52  "nEvents": self.general["maxevents"],
53 # "outputFile": "zmumuHisto.root"
54  "outputFile": ("0_zmumuHisto.root"
55  ",genSimRecoPlots.root"
56  ",FitParameters.txt")
57  })
58  return repMap