CMS 3D CMS Logo

List of all members | Public Member Functions | Static Private Member Functions | Private Attributes
Mixins._ValidatingParameterListBase Class Reference
Inheritance diagram for Mixins._ValidatingParameterListBase:
Mixins._ValidatingListBase Mixins._ParameterTypeBase Mixins.TestList SequenceTypes.Schedule Types.vbool Types.vdouble Types.VESInputTag Types.VEventID Types.VEventRange Types.VInputTag Types.vint32 Types.vint64 Types.VLuminosityBlockID Types.VLuminosityBlockRange Types.VPSet Types.vstring Types.vuint32 Types.vuint64

Public Member Functions

def __init__ (self, arg, args)
 
def __repr__ (self)
 
def configValue (self, options=PrintOptions())
 
def configValueForItem (self, item, options)
 
def dumpPython (self, options=PrintOptions())
 
def pythonValueForItem (self, item, options)
 
def setValue (self, v)
 
def value (self)
 
- Public Member Functions inherited from Mixins._ValidatingListBase
def __add__ (self, rhs)
 
def __init__ (self, arg, args)
 
def __setitem__ (self, key, value)
 
def append (self, x)
 
def extend (self, x)
 
def insert (self, i, x)
 
- Public Member Functions inherited from Mixins._ParameterTypeBase
def __init__ (self)
 
def __repr__ (self)
 
def configTypeName (self)
 
def dumpPython (self, options=PrintOptions())
 
def isFrozen (self)
 
def isModified (self)
 
def isTracked (self)
 
def pythonTypeName (self)
 
def resetModified (self)
 
def setIsFrozen (self)
 
def setIsTracked (self, trackness)
 

Static Private Member Functions

def _itemsFromStrings (strings, converter)
 

Private Attributes

 _isModified
 

Detailed Description

Definition at line 594 of file Mixins.py.

Constructor & Destructor Documentation

def Mixins._ValidatingParameterListBase.__init__ (   self,
  arg,
  args 
)

Definition at line 595 of file Mixins.py.

595  def __init__(self,*arg,**args):
596  _ParameterTypeBase.__init__(self)
597  if len (arg) == 1 and not isinstance(arg[0],str):
598  try:
599  arg = iter(arg[0])
600  except TypeError:
601  pass
602  super(_ValidatingParameterListBase,self).__init__(*arg,**args)
def __init__(self, arg, args)
Definition: Mixins.py:595

Member Function Documentation

def Mixins._ValidatingParameterListBase.__repr__ (   self)
def Mixins._ValidatingParameterListBase._itemsFromStrings (   strings,
  converter 
)
staticprivate

Definition at line 656 of file Mixins.py.

656  def _itemsFromStrings(strings,converter):
657  return (converter(x).value() for x in strings)
658 
def _itemsFromStrings(strings, converter)
Definition: Mixins.py:656
Definition: value.py:1
def Mixins._ValidatingParameterListBase.configValue (   self,
  options = PrintOptions() 
)

Definition at line 609 of file Mixins.py.

References Mixins._ValidatingParameterListBase.configValueForItem().

Referenced by Types.InputTag.pythonValue(), Types.ESInputTag.pythonValue(), Types.InputTag.value(), and Types.ESInputTag.value().

609  def configValue(self, options=PrintOptions()):
610  config = '{\n'
611  first = True
612  for value in iter(self):
613  options.indent()
614  config += options.indentation()
615  if not first:
616  config+=', '
617  config+= self.configValueForItem(value, options)+'\n'
618  first = False
619  options.unindent()
620  config += options.indentation()+'}\n'
621  return config
def configValue(self, options=PrintOptions())
Definition: Mixins.py:609
def configValueForItem(self, item, options)
Definition: Mixins.py:622
def Mixins._ValidatingParameterListBase.configValueForItem (   self,
  item,
  options 
)

Definition at line 622 of file Mixins.py.

References str.

Referenced by Mixins._ValidatingParameterListBase.configValue(), and Mixins._ValidatingParameterListBase.pythonValueForItem().

622  def configValueForItem(self,item, options):
623  return str(item)
def configValueForItem(self, item, options)
Definition: Mixins.py:622
#define str(s)
def Mixins._ValidatingParameterListBase.dumpPython (   self,
  options = PrintOptions() 
)

Definition at line 628 of file Mixins.py.

References Types.vstring._nPerLine, Types.VPSet._nPerLine, Mixins._ParameterTypeBase.pythonTypeName(), SpecificationBuilder_cfi.Specification.pythonTypeName(), and Mixins._ValidatingParameterListBase.pythonValueForItem().

628  def dumpPython(self, options=PrintOptions()):
629  specialImportRegistry.registerUse(self)
630  result = self.pythonTypeName()+"("
631  n = len(self)
632  if hasattr(self, "_nPerLine"):
633  nPerLine = self._nPerLine
634  else:
635  nPerLine = 5
636  if n>nPerLine: options.indent()
637  if n>=256:
638  #wrap in a tuple since they don't have a size constraint
639  result+=" ("
640  for i, v in enumerate(self):
641  if i == 0:
642  if n>nPerLine: result += '\n'+options.indentation()
643  else:
644  result += ', '
645  if i % nPerLine == 0:
646  result += '\n'+options.indentation()
647  result += self.pythonValueForItem(v,options)
648  if n>nPerLine:
649  options.unindent()
650  result += '\n'+options.indentation()
651  if n>=256:
652  result +=' ) '
653  result += ')'
654  return result
def pythonTypeName(self)
Definition: Mixins.py:68
def dumpPython(self, options=PrintOptions())
Definition: Mixins.py:628
def pythonValueForItem(self, item, options)
Definition: Mixins.py:624
def Mixins._ValidatingParameterListBase.pythonValueForItem (   self,
  item,
  options 
)

Definition at line 624 of file Mixins.py.

References Mixins._ValidatingParameterListBase.configValueForItem().

Referenced by Mixins._ValidatingParameterListBase.dumpPython().

624  def pythonValueForItem(self,item, options):
625  return self.configValueForItem(item, options)
def pythonValueForItem(self, item, options)
Definition: Mixins.py:624
def configValueForItem(self, item, options)
Definition: Mixins.py:622
def Mixins._ValidatingParameterListBase.setValue (   self,
  v 
)

Definition at line 605 of file Mixins.py.

References svgfig.SVG.extend(), Mixins._ValidatingListBase.extend(), and Config.Process.extend().

605  def setValue(self,v):
606  self[:] = []
607  self.extend(v)
608  self._isModified=True
def extend(self, x)
Definition: Mixins.py:573
def Mixins._ValidatingParameterListBase.value (   self)

Definition at line 603 of file Mixins.py.

References list().

Referenced by average.Average.average(), Types.vint32.insertInto(), Types.vuint32.insertInto(), Types.vint64.insertInto(), Types.vuint64.insertInto(), Types.vdouble.insertInto(), Types.vbool.insertInto(), and Types.vstring.insertInto().

603  def value(self):
604  return list(self)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run

Member Data Documentation

Mixins._ValidatingParameterListBase._isModified
private

Definition at line 608 of file Mixins.py.