Пример #1
0
 def __init__(self, config, datasource_name):
     PartitionProcessor.__init__(self, config, datasource_name)
     self._lumi_filter = config.get_lookup(
         ['lumi filter', '%s lumi filter' % datasource_name],
         default={},
         parser=parse_lumi_filter,
         strfun=str_lumi)
Пример #2
0
 def __init__(self, config):
     PartitionProcessor.__init__(self, config)
     changeTrigger = triggerResync(['datasets', 'parameters'])
     self._lumi_filter = config.getLookup('lumi filter', {},
                                          parser=parseLumiFilter,
                                          strfun=strLumi,
                                          onChange=changeTrigger)
Пример #3
0
	def __init__(self, config):
		PartitionProcessor.__init__(self, config)
		lfnModifier = config.get('partition lfn modifier', '', onChange = None)
		lfnModifierShortcuts = config.getDict('partition lfn modifier dict', {
			'<xrootd>': 'root://cms-xrd-global.cern.ch/',
			'<xrootd:eu>': 'root://xrootd-cms.infn.it/',
			'<xrootd:us>': 'root://cmsxrootd.fnal.gov/',
		}, onChange = None)[0]
		self._prefix = None
		if lfnModifier == '/':
			self._prefix = '/store/'
		elif lfnModifier.lower() in lfnModifierShortcuts:
			self._prefix = lfnModifierShortcuts[lfnModifier.lower()] + '/store/'
		elif lfnModifier:
			self._prefix = lfnModifier + '/store/'
Пример #4
0
	def __init__(self, config):
		PartitionProcessor.__init__(self, config)
		lfnModifier = config.get('partition lfn modifier', '', onChange = None)
		lfnModifierShortcuts = config.getDict('partition lfn modifier dict', {
			'<xrootd>': 'root://cms-xrd-global.cern.ch/',
			'<xrootd:eu>': 'root://xrootd-cms.infn.it/',
			'<xrootd:us>': 'root://cmsxrootd.fnal.gov/',
		}, onChange = None)[0]
		self._prefix = None
		if lfnModifier == '/':
			self._prefix = '/store/'
		elif lfnModifier.lower() in lfnModifierShortcuts:
			self._prefix = lfnModifierShortcuts[lfnModifier.lower()] + '/store/'
		elif lfnModifier:
			self._prefix = lfnModifier + '/store/'
Пример #5
0
 def __init__(self, config, datasource_name):
     PartitionProcessor.__init__(self, config, datasource_name)
     lfn_modifier = config.get(self._get_pproc_opt('lfn modifier'), '')
     lfn_modifier_shortcuts = config.get_dict(
         self._get_pproc_opt('lfn modifier dict'), {
             '<xrootd>': 'root://cms-xrd-global.cern.ch/',
             '<xrootd:eu>': 'root://xrootd-cms.infn.it/',
             '<xrootd:us>': 'root://cmsxrootd.fnal.gov/',
         })[0]
     self._prefix = None
     if lfn_modifier == '/':
         self._prefix = '/store/'
     elif lfn_modifier.lower() in lfn_modifier_shortcuts:
         self._prefix = lfn_modifier_shortcuts[
             lfn_modifier.lower()] + '/store/'
     elif lfn_modifier:
         self._prefix = lfn_modifier + '/store/'
Пример #6
0
 def __init__(self, config):
     PartitionProcessor.__init__(self, config)
     self._lumi_filter = config.getLookup('lumi filter', {},
                                          parser=parseLumiFilter,
                                          strfun=strLumi)
Пример #7
0
	def __init__(self, config):
		PartitionProcessor.__init__(self, config)
		changeTrigger = triggerResync(['datasets', 'parameters'])
		self._lumi_filter = config.getLookup('lumi filter', {}, parser = parseLumiFilter, strfun = strLumi, onChange = changeTrigger)
Пример #8
0
	def __init__(self, config, datasource_name):
		PartitionProcessor.__init__(self, config, datasource_name)
		self._lumi_filter = config.get_lookup(['lumi filter', '%s lumi filter' % datasource_name],
			default={}, parser=parse_lumi_filter, strfun=str_lumi)
Пример #9
0
	def __init__(self, config):
		PartitionProcessor.__init__(self, config)
		self._lumi_filter = config.getLookup('lumi filter', {}, parser = parseLumiFilter, strfun = strLumi)