CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Config.ProcessForProcessAccelerator Class Reference
Inheritance diagram for Config.ProcessForProcessAccelerator:

Public Member Functions

def __delattr__
 
def __getattr__ (self, label)
 
def __init__ (self, process)
 
def __setattr__
 
def add_ (self, value)
 

Private Attributes

 __process
 

Detailed Description

This class is inteded to wrap the Process object to constrain the
available functionality for ProcessAccelerator.apply()

Definition at line 2057 of file Config.py.

Constructor & Destructor Documentation

◆ __init__()

def Config.ProcessForProcessAccelerator.__init__ (   self,
  process 
)

Definition at line 2060 of file Config.py.

2060  def __init__(self, process):
2061  self.__process = process
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

◆ __delattr__()

def Config.ProcessForProcessAccelerator.__delattr__ (   self,
  label 
)

Definition at line 2074 of file Config.py.

References Config.Process.__process, Config.ProcessFragment.__process, Config.SubProcess.__process, Config.ProcessForProcessAccelerator.__process, and str.

2074  def __delattr__(self, label:str):
2075  value = getattr(self.__process, label)
2076  if not isinstance(value, Service):
2077  raise TypeError("ProcessAccelerator.apply() can delete only Services. Tried to del {} with label {}".format(str(type(value)), label))
2078  delattr(self.__process, label)
#define str(s)

◆ __getattr__()

def Config.ProcessForProcessAccelerator.__getattr__ (   self,
  label 
)

Definition at line 2062 of file Config.py.

References Config.Process.__process, Config.ProcessFragment.__process, Config.SubProcess.__process, Config.ProcessForProcessAccelerator.__process, and str.

Referenced by datamodel.Event.__getitem__(), datamodel.Object.__getitem__(), and VarParsing.VarParsing.setType().

2062  def __getattr__(self, label):
2063  value = getattr(self.__process, label)
2064  if not isinstance(value, Service):
2065  raise TypeError("ProcessAccelerator.apply() can get only Services. Tried to get {} with label {}".format(str(type(value)), label))
2066  return value
#define str(s)

◆ __setattr__()

def Config.ProcessForProcessAccelerator.__setattr__ (   self,
  label 
)

Definition at line 2067 of file Config.py.

References Config.Process.__process, Config.ProcessFragment.__process, Config.SubProcess.__process, Config.ProcessForProcessAccelerator.__process, and str.

Referenced by GenObject.GenObject.setValue().

2067  def __setattr__(self, label:str, value):
2068  if label == "_ProcessForProcessAccelerator__process":
2069  super().__setattr__(label, value)
2070  else:
2071  if not isinstance(value, Service):
2072  raise TypeError("ProcessAccelerator.apply() can only set Services. Tried to set {} with label {}".format(str(type(value)), label))
2073  setattr(self.__process, label, value)
#define str(s)

◆ add_()

def Config.ProcessForProcessAccelerator.add_ (   self,
  value 
)

Definition at line 2079 of file Config.py.

References Config.Process.__process, Config.ProcessFragment.__process, Config.SubProcess.__process, Config.ProcessForProcessAccelerator.__process, and str.

2079  def add_(self, value):
2080  if not isinstance(value, Service):
2081  raise TypeError("ProcessAccelerator.apply() can only add Services. Tried to set {} with label {}".format(str(type(value)), label))
2082  self.__process.add_(value)
2083 
2084 # Need to be a module-level function for the configuration with a
2085 # SwitchProducer to be pickleable.
#define str(s)

Member Data Documentation

◆ __process

Config.ProcessForProcessAccelerator.__process
private