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 FileOutputTemplate (self)
 
def filesToCompare (self)
 
def LoadBasicModules (self)
 
def ProcessName (self)
 
def ValidationTemplate (self)
 
- Public Member Functions inherited from genericValidation.GenericValidation
def createConfiguration (self, fileContents, path, schedule=None, repMap=None, repMaps=None)
 
def createFiles (self, fileContents, path, repMap=None, repMaps=None)
 
def getCompareStrings (self, requestId=None, plain=False)
 
- 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 510 of file genericValidation.py.

Member Function Documentation

◆ cosmics0T()

def genericValidation.GenericValidationData_CTSR.cosmics0T (   self)

Definition at line 557 of file genericValidation.py.

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

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

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

◆ DefinePath()

def genericValidation.GenericValidationData_CTSR.DefinePath (   self)

Reimplemented from genericValidation.GenericValidationData.

Reimplemented in primaryVertexValidation.PrimaryVertexValidation.

Definition at line 551 of file genericValidation.py.

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

◆ getRepMap()

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

Reimplemented from genericValidation.GenericValidationData.

Reimplemented in offlineValidation.OfflineValidationDQM, offlineValidation.OfflineValidation, primaryVertexValidation.PrimaryVertexValidation, trackSplittingValidation.TrackSplittingValidation, and overlapValidation.OverlapValidation.

Definition at line 519 of file genericValidation.py.

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

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().

◆ isPVValidation()

def genericValidation.GenericValidationData_CTSR.isPVValidation (   self)

Reimplemented in primaryVertexValidation.PrimaryVertexValidation.

Definition at line 545 of file genericValidation.py.

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

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

◆ TrackSelectionRefitting()

def genericValidation.GenericValidationData_CTSR.TrackSelectionRefitting (   self)

Reimplemented from genericValidation.GenericValidationData.

Definition at line 548 of file genericValidation.py.

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

◆ use_d0cut()

def genericValidation.GenericValidationData_CTSR.use_d0cut (   self)

Reimplemented in primaryVertexValidation.PrimaryVertexValidation.

Definition at line 542 of file genericValidation.py.

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

References genericValidation.GenericValidation.general.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

◆ ValidationSequence()

def genericValidation.GenericValidationData_CTSR.ValidationSequence (   self)

Member Data Documentation

◆ defaults

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

Definition at line 512 of file genericValidation.py.

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

join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
submitPVValidationJobs.split
def split(sequence, size)
Definition: submitPVValidationJobs.py:352
str
#define str(s)
Definition: TestProcessor.cc:52
format
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17