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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 2218 of file Config.py.

2218  def __init__(self, enabled=["test1", "test2", "anothertest3"], moduleTypeResolverMaker=None):
2219  super().__init__()
2220  self._labels = ["test1", "test2", "anothertest3"]
2221  self.setEnabled(enabled)
2222  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 2240 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__().

2240  def apply(self, process, accelerators):
2241  process.AcceleratorTestService = Service("AcceleratorTestService")
2242  if hasattr(process, "AcceleratorTestServiceRemove"):
2243  del process.AcceleratorTestServiceRemove
2244  specialImportRegistry.registerSpecialImportForType(ProcessAcceleratorTest, "from test import ProcessAcceleratorTest")
Vec apply(Vec v, F f)
Definition: ExtVec.h:81

◆ dumpPythonImpl()

def Config.ProcessAcceleratorTest.dumpPythonImpl (   self,
  options 
)

Definition at line 2228 of file Config.py.

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

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

◆ enabledLabels()

def Config.ProcessAcceleratorTest.enabledLabels (   self)

Definition at line 2234 of file Config.py.

References Config.ProcessAcceleratorTest._enabled.

2234  def enabledLabels(self):
2235  return self._enabled

◆ labels()

def Config.ProcessAcceleratorTest.labels (   self)

◆ moduleTypeResolver()

def Config.ProcessAcceleratorTest.moduleTypeResolver (   self,
  accelerators 
)

Definition at line 2236 of file Config.py.

References Config.ProcessAcceleratorTest._moduleTypeResolverMaker.

2236  def moduleTypeResolver(self, accelerators):
2237  if not self._moduleTypeResolverMaker:
2238  return super().moduleTypeResolver(accelerators)
2239  return self._moduleTypeResolverMaker(accelerators)

◆ setEnabled()

def Config.ProcessAcceleratorTest.setEnabled (   self,
  enabled 
)

Definition at line 2223 of file Config.py.

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

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