CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 2228 of file Config.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 2229 of file Config.py.

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

2251  def apply(self, process, accelerators):
2252  process.AcceleratorTestService = Service("AcceleratorTestService")
2253  if hasattr(process, "AcceleratorTestServiceRemove"):
2254  del process.AcceleratorTestServiceRemove
2255  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 2239 of file Config.py.

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

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

◆ enabledLabels()

def Config.ProcessAcceleratorTest.enabledLabels (   self)

Definition at line 2245 of file Config.py.

References Config.ProcessAcceleratorTest._enabled.

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

◆ labels()

def Config.ProcessAcceleratorTest.labels (   self)

◆ moduleTypeResolver()

def Config.ProcessAcceleratorTest.moduleTypeResolver (   self,
  accelerators 
)

Definition at line 2247 of file Config.py.

References Config.ProcessAcceleratorTest._moduleTypeResolverMaker.

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

◆ setEnabled()

def Config.ProcessAcceleratorTest.setEnabled (   self,
  enabled 
)

Definition at line 2234 of file Config.py.

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

2234  def setEnabled(self, enabled):
2235  invalid = set(enabled).difference(set(self._labels))
2236  if len(invalid) > 0:
2237  raise Exception("Tried to enabled nonexistent test accelerators {}".format(",".join(invalid)))
2238  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