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
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
 
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 9 of file zMuMuValidation.py.

Constructor & Destructor Documentation

def zMuMuValidation.ZMuMuValidation.__init__ (   self,
  valName,
  alignment,
  config,
  configBaseName = "TkAlZMuMuValidation",
  scriptBaseName = "TkAlZMuMuValidation",
  crabCfgBaseName = "TkAlZMuMuValidation",
  resultBaseName = "ZMuMuValidation",
  outputBaseName = "ZMuMuValidation" 
)

Definition at line 12 of file zMuMuValidation.py.

12 
13  resultBaseName = "ZMuMuValidation", outputBaseName = "ZMuMuValidation"):
14  defaults = {
15  "zmumureference": ("/store/caf/user/emiglior/Alignment/TkAlDiMuonValidation/Reference/BiasCheck_DYToMuMu_Summer12_TkAlZMuMu_IDEAL.root"),
16  "resonance": "Z"
17  }
18  mandatories = ["etamaxneg", "etaminneg", "etamaxpos", "etaminpos"]
19  self.configBaseName = configBaseName
20  self.scriptBaseName = scriptBaseName
21  self.crabCfgBaseName = crabCfgBaseName
22  self.resultBaseName = resultBaseName
23  self.outputBaseName = outputBaseName
24  self.needParentFiles = False
25  GenericValidationData.__init__(self, valName, alignment, config,
26  "zmumu", addDefaults=defaults,
27  addMandatories=mandatories)
28  if self.NJobs > 1:
29  raise AllInOneError("Parallel jobs not implemented for the Z->mumu validation!\n"
30  "Please set parallelJobs = 1.")

Member Function Documentation

def zMuMuValidation.ZMuMuValidation.createConfiguration (   self,
  path 
)

Definition at line 31 of file zMuMuValidation.py.

References monteCarloValidation.MonteCarloValidation.configBaseName, trackSplittingValidation.TrackSplittingValidation.configBaseName, zMuMuValidation.ZMuMuValidation.configBaseName, offlineValidation.OfflineValidation.configBaseName, genericValidation.GenericValidation.getRepMap(), alignment.Alignment.getRepMap(), entry.name, genericValidation.GenericValidation.name, alignment.Alignment.name, MuonGeometrySanityCheckPoint.name, and plotscripts.SawTeethFunction.name.

31 
32  def createConfiguration(self, path):
33  cfgName = "%s.%s.%s_cfg.py"%( self.configBaseName, self.name,
34  self.alignmentToValidate.name )
35  repMap = self.getRepMap()
36  cfgs = {cfgName: configTemplates.ZMuMuValidationTemplate}
37  GenericValidationData.createConfiguration(self, cfgs, path, repMap = repMap)
def zMuMuValidation.ZMuMuValidation.createCrabCfg (   self,
  path 
)

Definition at line 41 of file zMuMuValidation.py.

References monteCarloValidation.MonteCarloValidation.crabCfgBaseName, trackSplittingValidation.TrackSplittingValidation.crabCfgBaseName, zMuMuValidation.ZMuMuValidation.crabCfgBaseName, and offlineValidation.OfflineValidation.crabCfgBaseName.

41 
42  def createCrabCfg(self, path):
43  return GenericValidationData.createCrabCfg(self, path, self.crabCfgBaseName)
def zMuMuValidation.ZMuMuValidation.createScript (   self,
  path 
)

Definition at line 38 of file zMuMuValidation.py.

38 
39  def createScript(self, path):
40  return GenericValidationData.createScript(self, path, template = configTemplates.zMuMuScriptTemplate)
def zMuMuValidation.ZMuMuValidation.getRepMap (   self,
  alignment = None 
)

Definition at line 44 of file zMuMuValidation.py.

References genericValidation.GenericValidation.general.

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

Member Data Documentation

zMuMuValidation.ZMuMuValidation.configBaseName

Definition at line 18 of file zMuMuValidation.py.

Referenced by zMuMuValidation.ZMuMuValidation.createConfiguration().

zMuMuValidation.ZMuMuValidation.crabCfgBaseName

Definition at line 20 of file zMuMuValidation.py.

Referenced by zMuMuValidation.ZMuMuValidation.createCrabCfg().

zMuMuValidation.ZMuMuValidation.needParentFiles

Definition at line 23 of file zMuMuValidation.py.

zMuMuValidation.ZMuMuValidation.outputBaseName

Definition at line 22 of file zMuMuValidation.py.

Referenced by genericValidation.GenericValidationData.getRepMap().

zMuMuValidation.ZMuMuValidation.resultBaseName

Definition at line 21 of file zMuMuValidation.py.

Referenced by genericValidation.GenericValidationData.getRepMap().

zMuMuValidation.ZMuMuValidation.scriptBaseName

Definition at line 19 of file zMuMuValidation.py.

Referenced by genericValidation.GenericValidationData.createScript().