CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Properties | Private Member Functions | Static Private Member Functions | Private Attributes
Types.ESInputTag Class Reference
Inheritance diagram for Types.ESInputTag:
Mixins._ParameterTypeBase

Public Member Functions

def __cmp__
 
def __init__
 
def configValue
 
def cppTag
 
def getDataLabel
 
def getModuleLabel
 
def insertInto
 
def pythonValue
 
def setDataLabel
 
def setModuleLabel
 
def setValue
 
def value
 
- Public Member Functions inherited from Mixins._ParameterTypeBase
def __init__
 
def __repr__
 
def configTypeName
 
def dumpPython
 
def isFrozen
 
def isModified
 
def isTracked
 
def pythonTypeName
 
def resetModified
 
def setIsFrozen
 
def setIsTracked
 

Static Public Member Functions

def formatValueForConfig
 

Properties

 dataLabel = property(getDataLabel,setDataLabel,"data label for the product")
 
 moduleLabel = property(getModuleLabel,setModuleLabel,"module label for the product")
 

Private Member Functions

def _setValues
 

Static Private Member Functions

def _isValid
 
def _valueFromString
 

Private Attributes

 __data
 
 __moduleLabel
 
 _isModified
 

Detailed Description

Definition at line 484 of file Types.py.

Constructor & Destructor Documentation

def Types.ESInputTag.__init__ (   self,
  module = '',
  data = '' 
)

Definition at line 485 of file Types.py.

References Types.InputTag._setValues(), and Types.ESInputTag._setValues().

486  def __init__(self,module='',data=''):
487  super(ESInputTag,self).__init__()
self._setValues(module, data)
def _setValues
Definition: Types.py:538

Member Function Documentation

def Types.ESInputTag.__cmp__ (   self,
  other 
)

Definition at line 520 of file Types.py.

References Types.ESInputTag.__data, Types.InputTag.__moduleLabel, and Types.ESInputTag.__moduleLabel.

521  def __cmp__(self,other):
522  v = self.__moduleLabel <> other.__moduleLabel
523  if not v:
524  v= self.__data <> other.__data
return v
def Types.ESInputTag._isValid (   value)
staticprivate

Definition at line 518 of file Types.py.

Referenced by Mixins._SimpleParameterTypeBase.setValue().

519  def _isValid(value):
return True
def Types.ESInputTag._setValues (   self,
  moduleLabel = '',
  dataLabel = '' 
)
private

Definition at line 538 of file Types.py.

References Types.ESInputTag.__data, Types.InputTag.__moduleLabel, and Types.ESInputTag.__moduleLabel.

Referenced by Types.ESInputTag.__init__(), and Types.ESInputTag.setValue().

539  def _setValues(self,moduleLabel='',dataLabel=''):
540  self.__moduleLabel = moduleLabel
541  self.__data = dataLabel
542  if -1 != moduleLabel.find(":"):
543  # raise RuntimeError("the module label '"+str(moduleLabel)+"' contains a ':'. If you want to specify more than one label, please pass them as separate arguments.")
544  # tolerate it, at least for the translation phase
545  toks = moduleLabel.split(":")
546  self.__moduleLabel = toks[0]
547  if len(toks) > 1:
548  self.__data = toks[1]
549  if len(toks) > 2:
550  raise RuntimeError("an ESInputTag was passed the value'"+moduleLabel+"' which contains more than one ':'")
def _setValues
Definition: Types.py:538
def Types.ESInputTag._valueFromString (   string)
staticprivate

Definition at line 532 of file Types.py.

533  def _valueFromString(string):
534  parts = string.split(":")
return ESInputTag(*parts)
def _valueFromString
Definition: Types.py:532
def Types.ESInputTag.configValue (   self,
  options = PrintOptions() 
)

Definition at line 502 of file Types.py.

References Types.ESInputTag.__data, Types.InputTag.__moduleLabel, and Types.ESInputTag.__moduleLabel.

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

503  def configValue(self, options=PrintOptions()):
504  result = self.__moduleLabel
505  if self.__data != "":
506  result += ':' + self.__data
507  if result == "":
508  result = '\"\"'
return result;
def configValue
Definition: Types.py:502
def Types.ESInputTag.cppTag (   self,
  parameterSet 
)

Definition at line 552 of file Types.py.

References Types.ESInputTag.getDataLabel(), Types.InputTag.getModuleLabel(), and Types.ESInputTag.getModuleLabel().

Referenced by Types.ESInputTag.insertInto().

553  def cppTag(self, parameterSet):
554  return parameterSet.newESInputTag(self.getModuleLabel(),
self.getDataLabel())
def getDataLabel
Definition: Types.py:495
def getModuleLabel
Definition: Types.py:488
def Types.ESInputTag.formatValueForConfig (   value)
static

Definition at line 529 of file Types.py.

530  def formatValueForConfig(value):
return value.configValue()
def formatValueForConfig
Definition: Types.py:529
def Types.ESInputTag.getDataLabel (   self)

Definition at line 495 of file Types.py.

References Types.ESInputTag.__data.

Referenced by Types.ESInputTag.cppTag().

496  def getDataLabel(self):
return self.__data
def getDataLabel
Definition: Types.py:495
def Types.ESInputTag.getModuleLabel (   self)

Definition at line 488 of file Types.py.

References Types.InputTag.__moduleLabel, and Types.ESInputTag.__moduleLabel.

Referenced by Types.ESInputTag.cppTag().

489  def getModuleLabel(self):
return self.__moduleLabel
def getModuleLabel
Definition: Types.py:488
def Types.ESInputTag.insertInto (   self,
  parameterSet,
  myname 
)

Definition at line 555 of file Types.py.

References Types.InputTag.cppTag(), Types.ESInputTag.cppTag(), edm::AllowedLabelsDescriptionBase.isTracked(), edm::ParameterWildcardBase.isTracked(), edm::VParameterSetEntry.isTracked(), edm::ParameterSetEntry.isTracked(), edm::ParameterDescriptionBase.isTracked(), Mixins._ParameterTypeBase.isTracked(), and edm::Entry.isTracked().

556  def insertInto(self, parameterSet, myname):
557  parameterSet.addESInputTag(self.isTracked(), myname, self.cppTag(parameterSet))
def insertInto
Definition: Types.py:555
def Types.ESInputTag.pythonValue (   self,
  options = PrintOptions() 
)

Definition at line 509 of file Types.py.

References Mixins._SimpleParameterTypeBase.configValue(), Types.string.configValue(), Types.InputTag.configValue(), Types.ESInputTag.configValue(), and Mixins._ValidatingParameterListBase.configValue().

Referenced by Mixins._ParameterTypeBase.dumpPython().

510  def pythonValue(self, options=PrintOptions()):
511  cfgValue = self.configValue(options)
512  # empty strings already have quotes
513  if cfgValue == '\"\"':
514  return cfgValue
515  colonedValue = "\""+cfgValue+"\""
516  # change label:instance:process to "label","instance","process"
return colonedValue.replace(":","\",\"")
def pythonValue
Definition: Types.py:509
def configValue
Definition: Types.py:502
def Types.ESInputTag.setDataLabel (   self,
  label 
)

Definition at line 497 of file Types.py.

References Types.ESInputTag.__data.

498  def setDataLabel(self,label):
499  if self.__data != label:
500  self.__data = label
self._isModified=True
def setDataLabel
Definition: Types.py:497
def Types.ESInputTag.setModuleLabel (   self,
  label 
)

Definition at line 490 of file Types.py.

References Types.InputTag.__moduleLabel, and Types.ESInputTag.__moduleLabel.

491  def setModuleLabel(self,label):
492  if self.__moduleLabel != label:
493  self.__moduleLabel = label
self._isModified=True
def setModuleLabel
Definition: Types.py:490
def Types.ESInputTag.setValue (   self,
  v 
)

Definition at line 535 of file Types.py.

References Mixins._ParameterTypeBase._isModified, Types.InputTag._setValues(), and Types.ESInputTag._setValues().

536  def setValue(self,v):
537  self._setValues(v)
self._isModified=True
def _setValues
Definition: Types.py:538
def Types.ESInputTag.value (   self)

Definition at line 525 of file Types.py.

References Mixins._SimpleParameterTypeBase.configValue(), Types.string.configValue(), Types.InputTag.configValue(), Types.ESInputTag.configValue(), and Mixins._ValidatingParameterListBase.configValue().

526  def value(self):
527  "Return the string rep"
return self.configValue()
def configValue
Definition: Types.py:502

Member Data Documentation

Types.ESInputTag.__data
private

Definition at line 499 of file Types.py.

Referenced by Types.ESInputTag.__cmp__(), Types.ESInputTag._setValues(), Types.ESInputTag.configValue(), Types.ESInputTag.getDataLabel(), and Types.ESInputTag.setDataLabel().

Types.ESInputTag.__moduleLabel
private

Definition at line 492 of file Types.py.

Referenced by Types.ESInputTag.__cmp__(), Types.ESInputTag._setValues(), Types.ESInputTag.configValue(), Types.ESInputTag.getModuleLabel(), and Types.ESInputTag.setModuleLabel().

Types.ESInputTag._isModified
private

Definition at line 493 of file Types.py.

Property Documentation

Types.ESInputTag.dataLabel = property(getDataLabel,setDataLabel,"data label for the product")
static

Definition at line 501 of file Types.py.

Types.ESInputTag.moduleLabel = property(getModuleLabel,setModuleLabel,"module label for the product")
static

Definition at line 494 of file Types.py.