CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
Config.ProcessAcceleratorTest Class Reference
Inheritance diagram for Config.ProcessAcceleratorTest:
Config.ProcessAccelerator

Public Member Functions

def __init__
 
def apply
 
def dumpPythonImpl
 
def enabledLabels
 
def labels
 
def setEnabled
 
- Public Member Functions inherited from Config.ProcessAccelerator
def __init__
 
def apply
 
def dumpPython
 
def dumpPythonImpl
 
def enabledLabels
 
def labels
 
def type_
 

Private Attributes

 _enabled
 
 _labels
 

Detailed Description

Definition at line 2072 of file Config.py.

Constructor & Destructor Documentation

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

Definition at line 2073 of file Config.py.

2074  def __init__(self, enabled=["test1", "test2", "anothertest3"]):
2075  super(ProcessAcceleratorTest,self).__init__()
2076  self._labels = ["test1", "test2", "anothertest3"]
self.setEnabled(enabled)

Member Function Documentation

def Config.ProcessAcceleratorTest.apply (   self,
  process,
  accelerators 
)

Definition at line 2090 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__().

2091  def apply(self, process, accelerators):
2092  process.AcceleratorTestService = Service("AcceleratorTestService")
specialImportRegistry.registerSpecialImportForType(ProcessAcceleratorTest, "from test import ProcessAcceleratorTest")
def Config.ProcessAcceleratorTest.dumpPythonImpl (   self,
  options 
)

Definition at line 2082 of file Config.py.

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

2083  def dumpPythonImpl(self,options):
2084  result = "{}enabled = [{}]".format(options.indentation(),
2085  ", ".join(["'{}'".format(e) for e in self._enabled]))
return result
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def Config.ProcessAcceleratorTest.enabledLabels (   self)

Definition at line 2088 of file Config.py.

References Config.ProcessAcceleratorTest._enabled.

2089  def enabledLabels(self):
return self._enabled
def Config.ProcessAcceleratorTest.labels (   self)

Definition at line 2086 of file Config.py.

References DigiInvestigatorHistogramMaker._labels, SeedMultiplicityAnalyzer._labels, and Config.ProcessAcceleratorTest._labels.

Referenced by ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.enabledLabels().

2087  def labels(self):
return self._labels
def Config.ProcessAcceleratorTest.setEnabled (   self,
  enabled 
)

Definition at line 2077 of file Config.py.

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

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

Member Data Documentation

Config.ProcessAcceleratorTest._enabled
private

Definition at line 2081 of file Config.py.

Referenced by Config.ProcessAcceleratorTest.dumpPythonImpl(), Config.ProcessAcceleratorTest2.dumpPythonImpl(), Config.ProcessAcceleratorTest.enabledLabels(), and Config.ProcessAcceleratorTest2.enabledLabels().

Config.ProcessAcceleratorTest._labels
private

Definition at line 2075 of file Config.py.

Referenced by validation.SimpleValidation._doPlots(), validation.SeparateValidation._doPlots(), plotting.PlotFolder.draw(), Config.ProcessAcceleratorTest.labels(), Config.ProcessAcceleratorTest2.labels(), Config.ProcessAcceleratorTest.setEnabled(), and Config.ProcessAcceleratorTest2.setEnabled().