CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, enabled=["test1", test2, anothertest3)
 
def apply (self, process, accelerators)
 
def dumpPythonImpl (self, options)
 
def enabledLabels (self)
 
def labels (self)
 
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 type_ (self)
 

Private Attributes

 _enabled
 
 _labels
 

Detailed Description

Definition at line 2127 of file Config.py.

Constructor & Destructor Documentation

◆ __init__()

def Config.ProcessAcceleratorTest.__init__ (   self,
  enabled = ["test1",
  test2,
  anothertest3 
)

Definition at line 2128 of file Config.py.

2128  def __init__(self, enabled=["test1", "test2", "anothertest3"]):
2129  super(ProcessAcceleratorTest,self).__init__()
2130  self._labels = ["test1", "test2", "anothertest3"]
2131  self.setEnabled(enabled)
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.ProcessAcceleratorTest.apply (   self,
  process,
  accelerators 
)

◆ dumpPythonImpl()

def Config.ProcessAcceleratorTest.dumpPythonImpl (   self,
  options 
)

Definition at line 2137 of file Config.py.

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

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

◆ enabledLabels()

def Config.ProcessAcceleratorTest.enabledLabels (   self)

Definition at line 2143 of file Config.py.

References Config.ProcessAcceleratorTest._enabled.

2143  def enabledLabels(self):
2144  return self._enabled

◆ labels()

def Config.ProcessAcceleratorTest.labels (   self)

◆ setEnabled()

def Config.ProcessAcceleratorTest.setEnabled (   self,
  enabled 
)

Definition at line 2132 of file Config.py.

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

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

Member Data Documentation

◆ _enabled

Config.ProcessAcceleratorTest._enabled
private

◆ _labels

Config.ProcessAcceleratorTest._labels
private