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 __getattr__ (self, label)
 
def __init__ (self, process)
 
def __setattr__ (self, label, value)
 
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 1988 of file Config.py.

Constructor & Destructor Documentation

◆ __init__()

def Config.ProcessForProcessAccelerator.__init__ (   self,
  process 
)

Definition at line 1991 of file Config.py.

1991  def __init__(self, process):
1992  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

◆ __getattr__()

def Config.ProcessForProcessAccelerator.__getattr__ (   self,
  label 
)

Definition at line 1993 of file Config.py.

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

Referenced by VarParsing.VarParsing.setType().

1993  def __getattr__(self, label):
1994  value = getattr(self.__process, label)
1995  if not isinstance(value, Service):
1996  raise TypeError("ProcessAccelerator.apply() can get only Services. Tried to get {} with label {}".format(str(type(value)), label))
1997  return value
#define str(s)

◆ __setattr__()

def Config.ProcessForProcessAccelerator.__setattr__ (   self,
  label,
  value 
)

Definition at line 1998 of file Config.py.

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

Referenced by GenObject.GenObject.setValue().

1998  def __setattr__(self, label, value):
1999  if label == "_ProcessForProcessAccelerator__process":
2000  super().__setattr__(label, value)
2001  else:
2002  if not isinstance(value, Service):
2003  raise TypeError("ProcessAccelerator.apply() can only set Services. Tried to set {} with label {}".format(str(type(value)), label))
2004  setattr(self.__process, label, value)
#define str(s)

◆ add_()

def Config.ProcessForProcessAccelerator.add_ (   self,
  value 
)

Definition at line 2005 of file Config.py.

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

2005  def add_(self, value):
2006  if not isinstance(value, Service):
2007  raise TypeError("ProcessAccelerator.apply() can only add Services. Tried to set {} with label {}".format(str(type(value)), label))
2008  self.__process.add_(value)
2009 
2010 # Need to be a module-level function for the configuration with a
2011 # SwitchProducer to be pickleable.
#define str(s)

Member Data Documentation

◆ __process

Config.ProcessForProcessAccelerator.__process
private