CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Config.ProcessAcceleratorTest2 Class Reference
Inheritance diagram for Config.ProcessAcceleratorTest2:
Config.ProcessAccelerator Mixins._ConfigureComponent Mixins._Unlabelable

Public Member Functions

def __init__ (self, enabled=["anothertest3", anothertest4, moduleTypeResolverMaker=None)
 
def apply (self, process, accelerators)
 
def dumpPythonImpl (self, options)
 
def enabledLabels (self)
 
def labels (self)
 
def moduleTypeResolver (self, accelerators)
 
def setEnabled (self, enabled)
 
- Public Member Functions inherited from Config.ProcessAccelerator
def __init__ (self)
 
def apply (self, process, accelerators)
 
def dumpPython (self, options=PrintOptions())
 
def dumpPythonImpl (self, options)
 
def enabledLabels (self)
 
def labels (self)
 
def moduleTypeResolver (self, accelerators)
 
def type_ (self)
 

Private Attributes

 _enabled
 
 _labels
 
 _moduleTypeResolverMaker
 

Detailed Description

Definition at line 2257 of file Config.py.

Constructor & Destructor Documentation

◆ __init__()

def Config.ProcessAcceleratorTest2.__init__ (   self,
  enabled = ["anothertest3",
  anothertest4,
  moduleTypeResolverMaker = None 
)

Definition at line 2258 of file Config.py.

2258  def __init__(self, enabled=["anothertest3", "anothertest4"], moduleTypeResolverMaker=None):
2259  super().__init__()
2260  self._labels = ["anothertest3", "anothertest4"]
2261  self.setEnabled(enabled)
2262  self._moduleTypeResolverMaker = moduleTypeResolverMaker
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ apply()

def Config.ProcessAcceleratorTest2.apply (   self,
  process,
  accelerators 
)

◆ dumpPythonImpl()

def Config.ProcessAcceleratorTest2.dumpPythonImpl (   self,
  options 
)

Definition at line 2268 of file Config.py.

References Config.ProcessAcceleratorTest._enabled, Config.ProcessAcceleratorTest2._enabled, and join().

2268  def dumpPythonImpl(self,options):
2269  result = "{}enabled = [{}]".format(options.indentation(),
2270  ", ".join(["'{}'".format(e) for e in self._enabled]))
2271  return result
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

◆ enabledLabels()

def Config.ProcessAcceleratorTest2.enabledLabels (   self)

Definition at line 2274 of file Config.py.

References Config.ProcessAcceleratorTest._enabled, and Config.ProcessAcceleratorTest2._enabled.

2274  def enabledLabels(self):
2275  return self._enabled

◆ labels()

def Config.ProcessAcceleratorTest2.labels (   self)

◆ moduleTypeResolver()

def Config.ProcessAcceleratorTest2.moduleTypeResolver (   self,
  accelerators 
)

Definition at line 2276 of file Config.py.

References Config.ProcessAcceleratorTest._moduleTypeResolverMaker, and Config.ProcessAcceleratorTest2._moduleTypeResolverMaker.

2276  def moduleTypeResolver(self, accelerators):
2277  if not self._moduleTypeResolverMaker:
2278  return super().moduleTypeResolver(accelerators)
2279  return self._moduleTypeResolverMaker(accelerators)

◆ setEnabled()

def Config.ProcessAcceleratorTest2.setEnabled (   self,
  enabled 
)

Definition at line 2263 of file Config.py.

References DigiInvestigatorHistogramMaker._labels, SeedMultiplicityAnalyzer._labels, Config.ProcessAcceleratorTest._labels, Config.ProcessAcceleratorTest2._labels, and join().

2263  def setEnabled(self, enabled):
2264  invalid = set(enabled).difference(set(self._labels))
2265  if len(invalid) > 0:
2266  raise Exception("Tried to enabled nonexistent test accelerators {}".format(",".join(invalid)))
2267  self._enabled = enabled[:]
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Member Data Documentation

◆ _enabled

Config.ProcessAcceleratorTest2._enabled
private

◆ _labels

Config.ProcessAcceleratorTest2._labels
private

◆ _moduleTypeResolverMaker

Config.ProcessAcceleratorTest2._moduleTypeResolverMaker
private

Definition at line 2262 of file Config.py.

Referenced by Config.ProcessAcceleratorTest2.moduleTypeResolver().