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.general["zmumureference"].startswith("/store"):
29  self.general["zmumureference"] = "root://eoscms//eos/cms" + self.general["zmumureference"]
30  if self.NJobs > 1:
31  raise AllInOneError("Parallel jobs not implemented for the Z->mumu validation!\n"
32  "Please set parallelJobs = 1.")

Member Function Documentation

def zMuMuValidation.ZMuMuValidation.createConfiguration (   self,
  path 
)

Definition at line 33 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, TrackerSectorStruct.name, MuonGeometrySanityCheckPoint.name, and plotscripts.SawTeethFunction.name.

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

Definition at line 43 of file zMuMuValidation.py.

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

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

Definition at line 40 of file zMuMuValidation.py.

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

Definition at line 46 of file zMuMuValidation.py.

References genericValidation.GenericValidation.alignmentToValidate, genericValidation.GenericValidation.general, entry.name, genericValidation.GenericValidation.name, alignment.Alignment.name, TrackerSectorStruct.name, MuonGeometrySanityCheckPoint.name, plotscripts.SawTeethFunction.name, monteCarloValidation.MonteCarloValidation.outputBaseName, trackSplittingValidation.TrackSplittingValidation.outputBaseName, zMuMuValidation.ZMuMuValidation.outputBaseName, and offlineValidation.OfflineValidation.outputBaseName.

46 
47  def getRepMap(self, alignment = None):
48  if alignment == None:
49  alignment = self.alignmentToValidate
50  repMap = GenericValidationData.getRepMap(self, alignment)
51  repMap.update({
52  "nEvents": self.general["maxevents"],
53  "outputFile": ("0_zmumuHisto.root"
54  ",genSimRecoPlots.root"
55  ",FitParameters.txt"),
56  "eosdir": os.path.join(self.general["eosdir"], "%s/%s/%s" % (self.outputBaseName, self.name, alignment.name)),
57  "workingdir": ".oO[datadir]Oo./%s/%s/%s" % (self.outputBaseName, self.name, alignment.name),
58  "plotsdir": ".oO[datadir]Oo./%s/%s/%s/plots" % (self.outputBaseName, self.name, alignment.name),
59  })
60  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 zMuMuValidation.ZMuMuValidation.getRepMap(), and 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().