CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes
genericValidation.GenericValidationData_CTSR Class Reference
Inheritance diagram for genericValidation.GenericValidationData_CTSR:
genericValidation.GenericValidationData genericValidation.GenericValidation offlineValidation.OfflineValidation trackSplittingValidation.TrackSplittingValidation offlineValidation.OfflineValidationDQM preexistingValidation.PreexistingOfflineValidation preexistingValidation.PreexistingTrackSplittingValidation

Public Member Functions

def cosmics0T (self)
 
def DefinePath (self)
 
def getRepMap (self)
 
def TrackSelectionRefitting (self)
 
def ValidationSequence (self)
 
- Public Member Functions inherited from genericValidation.GenericValidationData
def __init__ (self, valName, alignment, config)
 
def Bookkeeping (self)
 
def cfgName (self)
 
def cfgTemplate (self)
 
def createConfiguration (self, path)
 
def createCrabCfg (self, path, crabCfgBaseName)
 
def createScript (self, path, template=configTemplates.scriptTemplate, downloadFiles=[], repMap=None, repMaps=None)
 
def DefinePath (self)
 
def FileOutputTemplate (self)
 
def filesToCompare (self)
 
def getRepMap (self, alignment=None)
 
def LoadBasicModules (self)
 
def ProcessName (self)
 
def TrackSelectionRefitting (self)
 
def ValidationTemplate (self)
 
- Public Member Functions inherited from genericValidation.GenericValidation
def __init__ (self, valName, alignment, config)
 
def createConfiguration (self, fileContents, path, schedule=None, repMap=None, repMaps=None)
 
def createCrabCfg (self, fileContents, path)
 
def createFiles (self, fileContents, path, repMap=None, repMaps=None)
 
def createScript (self, fileContents, path, downloadFiles=[], repMap=None, repMaps=None)
 
def filesToCompare (self)
 
def getCompareStrings (self, requestId=None, plain=False)
 
def getRepMap (self, alignment=None)
 

Static Public Attributes

dictionary defaults
 
- Static Public Attributes inherited from genericValidation.GenericValidationData
dictionary defaults
 
dictionary mandatories = {"dataset", "maxevents"}
 
bool needParentFiles = False
 
dictionary optionals = {"magneticfield"}
 
- Static Public Attributes inherited from genericValidation.GenericValidation
string defaultReferenceName = "DEFAULT"
 
dictionary defaults
 
 mandatories = set()
 
dictionary needpackages = {"Alignment/OfflineValidation"}
 
dictionary optionals = {"jobmode"}
 

Additional Inherited Members

- Public Attributes inherited from genericValidation.GenericValidationData
 crabWorkingDir
 
 dataset
 
- Public Attributes inherited from genericValidation.GenericValidation
 alignmentToValidate
 
 AutoAlternates
 
 cmssw
 
 cmsswreleasebase
 
 config
 
 configFiles
 
 crabConfigFiles
 
 general
 
 jobid
 
 jobmode
 
 name
 
 needsproxy
 
 NJobs
 
 packages
 
 randomWorkdirPart
 
 scramarch
 
 scriptFiles
 

Detailed Description

Definition at line 504 of file genericValidation.py.

Member Function Documentation

def genericValidation.GenericValidationData_CTSR.cosmics0T (   self)

Definition at line 531 of file genericValidation.py.

References genericValidation.GenericValidation.general.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

531  def cosmics0T(self):
532  if "Cosmics" not in self.general["trackcollection"]: return False
533  Bfield = self.dataset.magneticFieldForRun()
534  if Bfield < 0.5: return True
535  if isinstance(Bfield, str):
536  if "unknown " in Bfield:
537  msg = Bfield.replace("unknown ","",1)
538  elif Bfield == "unknown":
539  msg = "Can't get the B field for %s." % self.dataset.name()
540  else:
541  msg = "B field = {}???".format(Bfield)
542  raise AllInOneError(msg + "\n"
543  "To use this dataset, specify magneticfield = [value] in your .ini config file.")
544  return False
545 
def genericValidation.GenericValidationData_CTSR.DefinePath (   self)

Definition at line 525 of file genericValidation.py.

525  def DefinePath(self):
526  return configTemplates.DefinePath_CommonSelectionRefitting
def genericValidation.GenericValidationData_CTSR.getRepMap (   self)

Definition at line 511 of file genericValidation.py.

References genericValidation.GenericValidationData_CTSR.cosmics0T(), genericValidation.GenericValidation.general, harvestTrackValidationPlots.str, and genericValidation.GenericValidationData_CTSR.ValidationSequence().

Referenced by plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

511  def getRepMap(self):
512  result = super(GenericValidationData_CTSR, self).getRepMap()
513  from trackSplittingValidation import TrackSplittingValidation
514  result.update({
515  "ValidationSequence": self.ValidationSequence,
516  "istracksplitting": str(isinstance(self, TrackSplittingValidation)),
517  "cosmics0T": str(self.cosmics0T),
518  "use_d0cut": str("Cosmics" not in self.general["trackcollection"]), #use it for collisions only
519  })
520  return result
def genericValidation.GenericValidationData_CTSR.TrackSelectionRefitting (   self)

Definition at line 522 of file genericValidation.py.

523  return configTemplates.CommonTrackSelectionRefitting
def genericValidation.GenericValidationData_CTSR.ValidationSequence (   self)

Member Data Documentation

dictionary genericValidation.GenericValidationData_CTSR.defaults
static
Initial value:
1 = {
2  "momentumconstraint": "None",
3  "openmasswindow": "False",
4  "cosmicsdecomode": "True",
5  }

Definition at line 506 of file genericValidation.py.

Referenced by tree.Tree.reset(), and tree.Tree.var().