示例#1
0
    def parameters(self):
        """
        _parameters_

        reduce to a map of parameters: value.

        input : value
        output : value
        outmodname : value

        """
        inputVal = getattr(self.data, "input", _CfgNoneType()).value()
        outputVal = getattr(self.data, "output", _CfgNoneType()).value()
        result = {}
        result['input'] = inputVal
        result['output'] = None
        if type(outputVal) == type([]):
            # Vector of PSets
            for x in outputVal:
                name = x.parameterNames_()[-1]
                value = getattr(x, name).value()
                result[name] = value
        elif type(outputVal) == type(int(1)):
            # integer
            result['output'] = outputVal
            
        return result
示例#2
0
    def parameters(self):
        """
        _parameters_

        reduce to a map of parameters: value.

        input : value
        output : value
        outmodname : value

        """
        inputVal = getattr(self.data, "input", _CfgNoneType()).value()
        outputVal = getattr(self.data, "output", _CfgNoneType()).value()
        result = {}
        result['input'] = inputVal
        result['output'] = None
        if type(outputVal) == type([]):
            # Vector of PSets
            for x in outputVal:
                name = x.parameterNames_()[-1]
                value = getattr(x, name).value()
                result[name] = value
        elif type(outputVal) == type(int(1)):
            # integer
            result['output'] = outputVal

        return result
示例#3
0
    def logicalFileName(self):
        """
        _logicalFileName_

        """
        cfgType = getattr(self.data, "logicalFileName", _CfgNoneType())
        return cfgType.value()
示例#4
0
    def logicalFileName(self):
        """
        _logicalFileName_

        """
        cfgType = getattr(self.data, "logicalFileName", _CfgNoneType())
        return cfgType.value()
示例#5
0
    def firstEvent(self):
        """
        get firstEvent value

        """
        cfgType = getattr(self.data, "firstEvent", _CfgNoneType())
        return cfgType.value()
示例#6
0
    def fileName(self):
        """
        _fileName_

        get the fileName parameter, None if not present

        """
        cfgType = getattr(self.data, "fileName", _CfgNoneType())
        return cfgType.value()
示例#7
0
    def catalog(self):
        """
        _catalog_

        Extract the output catalog, None if not present

        """
        cfgType = getattr(self.data, "catalog", _CfgNoneType())
        return cfgType.value()
示例#8
0
    def fileName(self):
        """
        _fileName_

        get the fileName parameter, None if not present

        """
        cfgType = getattr(self.data, "fileName", _CfgNoneType())
        return cfgType.value()
示例#9
0
    def catalog(self):
        """
        _catalog_

        Extract the output catalog, None if not present

        """
        cfgType = getattr(self.data, "catalog", _CfgNoneType())
        return cfgType.value()
示例#10
0
 def lumisToProcess(self):
     """ return value of lumisToProcess, None if not provided """
     cfgType = getattr(self.data, "lumisToProcess", _CfgNoneType())
     value = cfgType.value()
     if value == None:
         return []
     if type(value) == type("string"):
         return [value]
     return value
示例#11
0
 def fileNames(self):
     """ return value of fileNames, None if not provided """
     cfgType = getattr(self.data, "fileNames", _CfgNoneType())
     value = cfgType.value()
     if value == None:
         return []
     if type(value) == type("string"):
         return [value]
     return value
示例#12
0
    def input(self):
        """
        _input_

        Get limit on number of input maxEvents for source

        """
        cfgType = getattr(self.data, "input", _CfgNoneType())
        return cfgType.value()
示例#13
0
    def input(self):
        """
        _input_

        Get limit on number of input maxEvents for source

        """
        cfgType = getattr(self.data, "input", _CfgNoneType())
        return cfgType.value()
示例#14
0
    def perModuleLimit(self):
        """
        _perModuleLimit_

        Return True if this PSet contains per output module 
        settings for maxEvents, false if there is a single
        output limit
        """
        cfgType = getattr(self.data, "output", _CfgNoneType())
        if cfgType.value() == None:
            return False

        if cfgType.__class__.__name__ == "int32":
            # single limit for all modules
            return False
        # Should be a VPSet
        return True
示例#15
0
    def perModuleLimit(self):
        """
        _perModuleLimit_

        Return True if this PSet contains per output module 
        settings for maxEvents, false if there is a single
        output limit
        """
        cfgType = getattr(self.data, "output", _CfgNoneType())
        if cfgType.value() == None:
            return False

        if cfgType.__class__.__name__ == "int32":
            # single limit for all modules
            return False
        # Should be a VPSet
        return True
示例#16
0
 def overrideCatalog(self):
     """get overrideCatalog value of None if not set"""
     cfgType = getattr(self.data, "overrideCatalog", _CfgNoneType())
     return cfgType.value()
示例#17
0
 def firstLumi(self):
     """
     get first lumi id value
     """
     cfgType = getattr(self.data, "firstLuminosityBlock", _CfgNoneType())
     return cfgType.value()
示例#18
0
 def firstRun(self):
     """get firstRun value of None if not set"""
     cfgType = getattr(self.data, "firstRun", _CfgNoneType())
     return cfgType.value()
示例#19
0
 def skipevents(self):
     """get value of SkipEvents, None if not set"""
     cfgType = getattr(self.data, "skipEvents", _CfgNoneType())
     return cfgType.value()
示例#20
0
 def maxevents(self):
     """get value of MaxEvents, None if not set"""
     cfgType = getattr(self.data, "maxEvents", _CfgNoneType())
     return cfgType.value()
示例#21
0
 def cacheSize(self):
     """return value for source.cacheSize"""
     cfgType = getattr(self.data, "cacheSize", _CfgNoneType())
     return cfgType.value()