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, 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 2221 of file Config.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 2222 of file Config.py.

2222  def __init__(self, enabled=["test1", "test2", "anothertest3"], moduleTypeResolverMaker=None):
2223  super().__init__()
2224  self._labels = ["test1", "test2", "anothertest3"]
2225  self.setEnabled(enabled)
2226  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.ProcessAcceleratorTest.apply (   self,
  process,
  accelerators 
)

Definition at line 2244 of file Config.py.

Referenced by heavyIonTools.ConfigureHeavyIons.__call__(), coreTools.RunOnData.__call__(), trackTools.MakeAODTrackCandidates.__call__(), runJetUncertainties.RunJetUncertainties.__call__(), metTools.AddMETCollection.__call__(), heavyIonTools.ProductionDefaults.__call__(), cmsswVersionTools.PickRelValInputFiles.__call__(), coreTools.RemoveMCMatching.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__call__(), heavyIonTools.SelectionDefaults.__call__(), heavyIonTools.DisbaleMonteCarloDeps.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), tauTools.AddTauCollection.__call__(), trackTools.MakeTrackCandidates.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), jetTools.AddJetCollection.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.UpdateJetCollection.__call__(), jetTools.AddJetID.__call__(), and jetTools.SetTagInfos.__call__().

2244  def apply(self, process, accelerators):
2245  process.AcceleratorTestService = Service("AcceleratorTestService")
2246  if hasattr(process, "AcceleratorTestServiceRemove"):
2247  del process.AcceleratorTestServiceRemove
2248  specialImportRegistry.registerSpecialImportForType(ProcessAcceleratorTest, "from test import ProcessAcceleratorTest")
Vec apply(Vec v, F f)
Definition: ExtVec.h:77

◆ dumpPythonImpl()

def Config.ProcessAcceleratorTest.dumpPythonImpl (   self,
  options 
)

Definition at line 2232 of file Config.py.

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

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

◆ enabledLabels()

def Config.ProcessAcceleratorTest.enabledLabels (   self)

Definition at line 2238 of file Config.py.

References Config.ProcessAcceleratorTest._enabled.

2238  def enabledLabels(self):
2239  return self._enabled

◆ labels()

def Config.ProcessAcceleratorTest.labels (   self)

◆ moduleTypeResolver()

def Config.ProcessAcceleratorTest.moduleTypeResolver (   self,
  accelerators 
)

Definition at line 2240 of file Config.py.

References Config.ProcessAcceleratorTest._moduleTypeResolverMaker.

2240  def moduleTypeResolver(self, accelerators):
2241  if not self._moduleTypeResolverMaker:
2242  return super().moduleTypeResolver(accelerators)
2243  return self._moduleTypeResolverMaker(accelerators)

◆ setEnabled()

def Config.ProcessAcceleratorTest.setEnabled (   self,
  enabled 
)

Definition at line 2227 of file Config.py.

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

2227  def setEnabled(self, enabled):
2228  invalid = set(enabled).difference(set(self._labels))
2229  if len(invalid) > 0:
2230  raise Exception("Tried to enabled nonexistent test accelerators {}".format(",".join(invalid)))
2231  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

◆ _moduleTypeResolverMaker

Config.ProcessAcceleratorTest._moduleTypeResolverMaker
private