CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

Public Member Functions

def cosmics0T
 
def DefinePath
 
def getRepMap
 
def isPVValidation
 
def TrackSelectionRefitting
 
def use_d0cut
 
def ValidationSequence
 
- Public Member Functions inherited from genericValidation.GenericValidationData
def __init__
 
def Bookkeeping
 
def cfgName
 
def cfgTemplate
 
def createConfiguration
 
def createCrabCfg
 
def createScript
 
def DefinePath
 
def FileOutputTemplate
 
def filesToCompare
 
def getRepMap
 
def LoadBasicModules
 
def ProcessName
 
def TrackSelectionRefitting
 
def ValidationTemplate
 
- Public Member Functions inherited from genericValidation.GenericValidation
def __init__
 
def createConfiguration
 
def createCrabCfg
 
def createFiles
 
def createScript
 
def filesToCompare
 
def getCompareStrings
 
def getRepMap
 
- Public Member Functions inherited from genericValidation.ValidationMetaClass
def __new__
 

Static Public Attributes

dictionary defaults
 
- Static Public Attributes inherited from genericValidation.GenericValidationData
dictionary defaults
 
dictionary mandatories = {"dataset", "maxevents"}
 
 needParentFiles = False
 
dictionary optionals = {"magneticfield"}
 
- Static Public Attributes inherited from genericValidation.GenericValidation
string defaultReferenceName = "DEFAULT"
 
dictionary defaults
 
tuple 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

def genericValidation.GenericValidationData_CTSR.cosmics0T (   self)

Definition at line 556 of file genericValidation.py.

References genericValidation.GenericValidation.general.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

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
def genericValidation.GenericValidationData_CTSR.DefinePath (   self)

Definition at line 550 of file genericValidation.py.

551  def DefinePath(self):
return configTemplates.DefinePath_CommonSelectionRefitting
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 overlapValidation.OverlapValidation.appendToMerge(), trackSplittingValidation.TrackSplittingValidation.appendToMerge(), primaryVertexResolution.PrimaryVertexResolution.appendToMerge(), primaryVertexValidation.PrimaryVertexValidation.appendToMerge(), offlineValidation.OfflineValidation.appendToMerge(), overlapValidation.OverlapValidation.appendToPlots(), trackSplittingValidation.TrackSplittingValidation.appendToPlots(), primaryVertexResolution.PrimaryVertexResolution.appendToPlots(), primaryVertexValidation.PrimaryVertexValidation.appendToPlots(), zMuMuValidation.ZMuMuValidation.appendToPlots(), geometryComparison.GeometryComparison.createConfiguration(), geometryComparison.GeometryComparison.createScript(), zMuMuValidation.ZMuMuValidation.filesToCompare(), and plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

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 
return result
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
#define str(s)
def genericValidation.GenericValidationData_CTSR.isPVValidation (   self)

Definition at line 544 of file genericValidation.py.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

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

Definition at line 547 of file genericValidation.py.

548  def TrackSelectionRefitting(self):
return configTemplates.CommonTrackSelectionRefitting
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().

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

Definition at line 553 of file genericValidation.py.

Referenced by genericValidation.GenericValidationData_CTSR.getRepMap().

554  def ValidationSequence(self):
pass

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

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