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
def logicalFileName(self): """ _logicalFileName_ """ cfgType = getattr(self.data, "logicalFileName", _CfgNoneType()) return cfgType.value()
def firstEvent(self): """ get firstEvent value """ cfgType = getattr(self.data, "firstEvent", _CfgNoneType()) return cfgType.value()
def fileName(self): """ _fileName_ get the fileName parameter, None if not present """ cfgType = getattr(self.data, "fileName", _CfgNoneType()) return cfgType.value()
def catalog(self): """ _catalog_ Extract the output catalog, None if not present """ cfgType = getattr(self.data, "catalog", _CfgNoneType()) return cfgType.value()
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
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
def input(self): """ _input_ Get limit on number of input maxEvents for source """ cfgType = getattr(self.data, "input", _CfgNoneType()) return cfgType.value()
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
def overrideCatalog(self): """get overrideCatalog value of None if not set""" cfgType = getattr(self.data, "overrideCatalog", _CfgNoneType()) return cfgType.value()
def firstLumi(self): """ get first lumi id value """ cfgType = getattr(self.data, "firstLuminosityBlock", _CfgNoneType()) return cfgType.value()
def firstRun(self): """get firstRun value of None if not set""" cfgType = getattr(self.data, "firstRun", _CfgNoneType()) return cfgType.value()
def skipevents(self): """get value of SkipEvents, None if not set""" cfgType = getattr(self.data, "skipEvents", _CfgNoneType()) return cfgType.value()
def maxevents(self): """get value of MaxEvents, None if not set""" cfgType = getattr(self.data, "maxEvents", _CfgNoneType()) return cfgType.value()
def cacheSize(self): """return value for source.cacheSize""" cfgType = getattr(self.data, "cacheSize", _CfgNoneType()) return cfgType.value()