CMS 3D CMS Logo

Public Member Functions | Properties | Private Member Functions | Private Attributes

Types::ESInputTag Class Reference

List of all members.

Public Member Functions

def __cmp__
def __init__
def configValue
def cppTag
def formatValueForConfig
def getDataLabel
def getModuleLabel
def insertInto
def pythonValue
def setDataLabel
def setModuleLabel
def setValue
def value

Properties

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

Private Member Functions

def _isValid
def _setValues
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.

00486                                         :
00487         super(ESInputTag,self).__init__()
        self._setValues(module, data)

Member Function Documentation

def Types::ESInputTag::__cmp__ (   self,
  other 
)

Definition at line 520 of file Types.py.

00521                            :
00522         v = self.__moduleLabel <> other.__moduleLabel
00523         if not v:
00524             v= self.__data <> other.__data
        return v
def Types::ESInputTag::_isValid (   value) [private]

Definition at line 518 of file Types.py.

00519                        :
        return True
def Types::ESInputTag::_setValues (   self,
  moduleLabel = '',
  dataLabel = '' 
) [private]

Definition at line 538 of file Types.py.

00539                                                     :
00540         self.__moduleLabel = moduleLabel
00541         self.__data = dataLabel
00542         if -1 != moduleLabel.find(":"):
00543         #    raise RuntimeError("the module label '"+str(moduleLabel)+"' contains a ':'. If you want to specify more than one label, please pass them as separate arguments.")
00544         # tolerate it, at least for the translation phase
00545             toks = moduleLabel.split(":")
00546             self.__moduleLabel = toks[0]
00547             if len(toks) > 1:
00548                self.__data = toks[1]
00549             if len(toks) > 2:
00550                raise RuntimeError("an ESInputTag was passed the value'"+moduleLabel+"' which contains more than one ':'")

def Types::ESInputTag::_valueFromString (   string) [private]

Definition at line 532 of file Types.py.

00533                                 :
00534         parts = string.split(":")
        return ESInputTag(*parts)
def Types::ESInputTag::configValue (   self,
  options = PrintOptions() 
)

Definition at line 502 of file Types.py.

00503                                                  :
00504         result = self.__moduleLabel
00505         if self.__data != "":
00506             result += ':' + self.__data
00507         if result == "":
00508             result = '\"\"'
        return result;
def Types::ESInputTag::cppTag (   self,
  parameterSet 
)

Definition at line 552 of file Types.py.

00553                                   :
00554         return parameterSet.newESInputTag(self.getModuleLabel(),
                                        self.getDataLabel())
def Types::ESInputTag::formatValueForConfig (   value)

Definition at line 529 of file Types.py.

00530                                    :
        return value.configValue()
def Types::ESInputTag::getDataLabel (   self)

Definition at line 495 of file Types.py.

00496                           :
        return self.__data
def Types::ESInputTag::getModuleLabel (   self)

Definition at line 488 of file Types.py.

00489                             :
        return self.__moduleLabel
def Types::ESInputTag::insertInto (   self,
  parameterSet,
  myname 
)

Definition at line 555 of file Types.py.

00556                                               :
00557         parameterSet.addESInputTag(self.isTracked(), myname, self.cppTag(parameterSet))

def Types::ESInputTag::pythonValue (   self,
  options = PrintOptions() 
)

Definition at line 509 of file Types.py.

00510                                                  :
00511         cfgValue = self.configValue(options)
00512         # empty strings already have quotes
00513         if cfgValue == '\"\"':
00514             return cfgValue
00515         colonedValue = "\""+cfgValue+"\""
00516         # change label:instance:process to "label","instance","process"
        return colonedValue.replace(":","\",\"")
def Types::ESInputTag::setDataLabel (   self,
  label 
)

Definition at line 497 of file Types.py.

00498                                 :
00499         if self.__data != label:
00500             self.__data = label
            self._isModified=True
def Types::ESInputTag::setModuleLabel (   self,
  label 
)

Definition at line 490 of file Types.py.

00491                                   :
00492         if self.__moduleLabel != label:
00493             self.__moduleLabel = label
            self._isModified=True
def Types::ESInputTag::setValue (   self,
  v 
)

Definition at line 535 of file Types.py.

00536                         :
00537         self._setValues(v)
        self._isModified=True
def Types::ESInputTag::value (   self)

Definition at line 525 of file Types.py.

00526                    :
00527         "Return the string rep"
        return self.configValue()

Member Data Documentation

Definition at line 497 of file Types.py.

Definition at line 490 of file Types.py.

Definition at line 490 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.