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 genericValidation.ValidationMetaClass offlineValidation.OfflineValidation overlapValidation.OverlapValidation primaryVertexValidation.PrimaryVertexValidation trackSplittingValidation.TrackSplittingValidation offlineValidation.OfflineValidationDQM preexistingValidation.PreexistingOfflineValidation preexistingValidation.PreexistingPrimaryVertexValidation preexistingValidation.PreexistingTrackSplittingValidation

Public Member Functions

def cosmics0T (self)
 
def DefinePath (self)
 
def getRepMap (self, alignment=None)
 
def isPVValidation (self)
 
def TrackSelectionRefitting (self)
 
def use_d0cut (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)
 
- Public Member Functions inherited from genericValidation.ValidationMetaClass
def __new__ (cls, clsname, bases, dct)
 

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"}
 
- Static Public Attributes inherited from genericValidation.ValidationMetaClass
list dicts = ["defaults"]
 
list sets = ["mandatories", "optionals", "needpackages"]
 

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 509 of file genericValidation.py.

Member Function Documentation

◆ cosmics0T()

def genericValidation.GenericValidationData_CTSR.cosmics0T (   self)

Definition at line 556 of file genericValidation.py.

References genericValidation.GenericValidationData.dataset, genericValidation.GenericValidation.general, and genericValidation.GenericValidation.name.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

556  def cosmics0T(self):
557  if "Cosmics" not in self.general["trackcollection"]: return False
558  Bfield = self.dataset.magneticFieldForRun()
559  if Bfield < 0.5: return True
560  if isinstance(Bfield, str):
561  if "unknown " in Bfield:
562  msg = Bfield.replace("unknown ","",1)
563  elif Bfield == "unknown":
564  msg = "Can't get the B field for %s." % self.dataset.name()
565  else:
566  msg = "B field = {}???".format(Bfield)
567  raise AllInOneError(msg + "\n"
568  "To use this dataset, specify magneticfield = [value] in your .ini config file.")
569  return False
570 

◆ DefinePath()

def genericValidation.GenericValidationData_CTSR.DefinePath (   self)

Definition at line 550 of file genericValidation.py.

550  def DefinePath(self):
551  return configTemplates.DefinePath_CommonSelectionRefitting

◆ getRepMap()

def genericValidation.GenericValidationData_CTSR.getRepMap (   self,
  alignment = None 
)

Definition at line 518 of file genericValidation.py.

References genericValidation.GenericValidationData_CTSR.cosmics0T(), genericValidation.GenericValidationData_CTSR.isPVValidation(), join(), submitPVValidationJobs.split(), str, genericValidation.GenericValidationData_CTSR.use_d0cut(), and genericValidation.GenericValidationData_CTSR.ValidationSequence().

Referenced by plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

518  def getRepMap(self, alignment=None):
519  result = super(GenericValidationData_CTSR, self).getRepMap(alignment)
520 
521  from .trackSplittingValidation import TrackSplittingValidation
522  result.update({
523  "ValidationSequence": self.ValidationSequence,
524  "istracksplitting": str(isinstance(self, TrackSplittingValidation)),
525  "cosmics0T": str(self.cosmics0T),
526  "use_d0cut": str(self.use_d0cut),
527  "ispvvalidation": str(self.isPVValidation)
528  })
529 
530  commands = []
531  for removeorappend in "remove", "append":
532  optionname = removeorappend + "trackhitfiltercommands"
533  if result[optionname]:
534  for command in result[optionname].split(","):
535  command = command.strip()
536  commands.append('process.TrackerTrackHitFilter.commands.{}("{}")'.format(removeorappend, command))
537  result["trackhitfiltercommands"] = "\n".join(commands)
538 
539  return result
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
#define str(s)

◆ isPVValidation()

def genericValidation.GenericValidationData_CTSR.isPVValidation (   self)

Definition at line 544 of file genericValidation.py.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

544  def isPVValidation(self):
545  return False # only for PV Validation sequence

◆ TrackSelectionRefitting()

def genericValidation.GenericValidationData_CTSR.TrackSelectionRefitting (   self)

Definition at line 547 of file genericValidation.py.

547  def TrackSelectionRefitting(self):
548  return configTemplates.CommonTrackSelectionRefitting

◆ use_d0cut()

def genericValidation.GenericValidationData_CTSR.use_d0cut (   self)

Definition at line 541 of file genericValidation.py.

References genericValidation.GenericValidation.general.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

541  def use_d0cut(self):
542  return "Cosmics" not in self.general["trackcollection"] #use it for collisions only

◆ ValidationSequence()

def genericValidation.GenericValidationData_CTSR.ValidationSequence (   self)

Definition at line 553 of file genericValidation.py.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

553  def ValidationSequence(self):
554  pass

Member Data Documentation

◆ defaults

dictionary genericValidation.GenericValidationData_CTSR.defaults
static
Initial value:
= {
"momentumconstraint": "None",
"openmasswindow": "False",
"cosmicsdecomode": "True",
"removetrackhitfiltercommands": "",
"appendtrackhitfiltercommands": "",
}

Definition at line 511 of file genericValidation.py.

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