test
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": ("/store/caf/user/emiglior/Alignment/TkAlDiMuonValidation/Reference/BiasCheck_DYToMuMu_Summer12_TkAlZMuMu_IDEAL.root"),
14  "resonance": "Z"
15  }
16  mandatories = ["dataset", "maxevents",
17  "etamaxneg", "etaminneg", "etamaxpos", "etaminpos"]
18  GenericValidationData.__init__(self, valName, alignment, config,
19  "zmumu", addDefaults=defaults,
20  addMandatories=mandatories)

Member Function Documentation

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

Definition at line 21 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().

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

Definition at line 43 of file zMuMuValidation.py.

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

Definition at line 29 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().

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

Definition at line 46 of file zMuMuValidation.py.

References genericValidation.GenericValidation.general.

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