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

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

Member Function Documentation

def genericValidation.GenericValidationData_CTSR.cosmics0T (   self)

Definition at line 554 of file genericValidation.py.

References genericValidation.GenericValidation.general.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

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

Definition at line 548 of file genericValidation.py.

548  def DefinePath(self):
549  return configTemplates.DefinePath_CommonSelectionRefitting
def genericValidation.GenericValidationData_CTSR.getRepMap (   self,
  alignment = None 
)

Definition at line 516 of file genericValidation.py.

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

Referenced by plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

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

Definition at line 542 of file genericValidation.py.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

542  def isPVValidation(self):
543  return False # only for PV Validation sequence
def genericValidation.GenericValidationData_CTSR.TrackSelectionRefitting (   self)

Definition at line 545 of file genericValidation.py.

546  return configTemplates.CommonTrackSelectionRefitting
def genericValidation.GenericValidationData_CTSR.use_d0cut (   self)

Definition at line 539 of file genericValidation.py.

References genericValidation.GenericValidation.general.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

539  def use_d0cut(self):
540  return "Cosmics" not in self.general["trackcollection"] #use it for collisions only
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  "removetrackhitfiltercommands": "",
6  "appendtrackhitfiltercommands": "",
7  }

Definition at line 509 of file genericValidation.py.

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