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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 2230 of file Config.py.

2230  def __init__(self, enabled=["test1", "test2", "anothertest3"], moduleTypeResolverMaker=None):
2231  super().__init__()
2232  self._labels = ["test1", "test2", "anothertest3"]
2233  self.setEnabled(enabled)
2234  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 2252 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__().

2252  def apply(self, process, accelerators):
2253  process.AcceleratorTestService = Service("AcceleratorTestService")
2254  if hasattr(process, "AcceleratorTestServiceRemove"):
2255  del process.AcceleratorTestServiceRemove
2256  specialImportRegistry.registerSpecialImportForType(ProcessAcceleratorTest, "from test import ProcessAcceleratorTest")
Vec apply(Vec v, F f)
Definition: ExtVec.h:90

◆ dumpPythonImpl()

def Config.ProcessAcceleratorTest.dumpPythonImpl (   self,
  options 
)

Definition at line 2240 of file Config.py.

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

2240  def dumpPythonImpl(self,options):
2241  result = "{}enabled = [{}]".format(options.indentation(),
2242  ", ".join(["'{}'".format(e) for e in self._enabled]))
2243  return result
static std::string join(char **cmd)
Definition: RemoteFile.cc:21

◆ enabledLabels()

def Config.ProcessAcceleratorTest.enabledLabels (   self)

Definition at line 2246 of file Config.py.

References Config.ProcessAcceleratorTest._enabled.

2246  def enabledLabels(self):
2247  return self._enabled

◆ labels()

def Config.ProcessAcceleratorTest.labels (   self)

◆ moduleTypeResolver()

def Config.ProcessAcceleratorTest.moduleTypeResolver (   self,
  accelerators 
)

Definition at line 2248 of file Config.py.

References Config.ProcessAcceleratorTest._moduleTypeResolverMaker.

2248  def moduleTypeResolver(self, accelerators):
2249  if not self._moduleTypeResolverMaker:
2250  return super().moduleTypeResolver(accelerators)
2251  return self._moduleTypeResolverMaker(accelerators)

◆ setEnabled()

def Config.ProcessAcceleratorTest.setEnabled (   self,
  enabled 
)

Definition at line 2235 of file Config.py.

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

2235  def setEnabled(self, enabled):
2236  invalid = set(enabled).difference(set(self._labels))
2237  if len(invalid) > 0:
2238  raise Exception("Tried to enabled nonexistent test accelerators {}".format(",".join(invalid)))
2239  self._enabled = enabled[:]
static std::string join(char **cmd)
Definition: RemoteFile.cc:21

Member Data Documentation

◆ _enabled

Config.ProcessAcceleratorTest._enabled
private

◆ _labels

Config.ProcessAcceleratorTest._labels
private

◆ _moduleTypeResolverMaker

Config.ProcessAcceleratorTest._moduleTypeResolverMaker
private