parameters: (self)
docstring: Add conditions to the process
docstring_summary: Add conditions to the process
docstring_tokens: Add conditions to the process
function: def addConditions(self):
          """Add conditions to the process"""
          if not self._options.conditions: return
  
          if 'FrontierConditions_GlobalTag' in self._options.conditions:
              print('using FrontierConditions_GlobalTag in --conditions is not necessary anymore and will be deprecated soon. please update your command line')
              self._options.conditions = self._options.conditions.replace("FrontierConditions_GlobalTag,",'')
  
          self.loadAndRemember(self.ConditionsDefaultCFF)
          from Configuration.AlCa.GlobalTag import GlobalTag
          self.process.GlobalTag = GlobalTag(self.process.GlobalTag, self._options.conditions, self._options.custom_conditions)
          self.additionalCommands.append('from Configuration.AlCa.GlobalTag import GlobalTag')
          self.additionalCommands.append('process.GlobalTag = GlobalTag(process.GlobalTag, %s, %s)' % (repr(self._options.conditions), repr(self._options.custom_conditions)))
function_tokens: def addConditions ( self ) : if not self . _options . conditions : return if 'FrontierConditions_GlobalTag' in self . _options . conditions : print ( 'using FrontierConditions_GlobalTag in --conditions is not necessary anymore and will be deprecated soon. please update your command line' ) self . _options . conditions = self . _options . conditions . replace ( "FrontierConditions_GlobalTag," , '' ) self . loadAndRemember ( self . ConditionsDefaultCFF ) from Configuration . AlCa . GlobalTag import GlobalTag self . process . GlobalTag = GlobalTag ( self . process . GlobalTag , self . _options . conditions , self . _options . custom_conditions ) self . additionalCommands . append ( 'from Configuration.AlCa.GlobalTag import GlobalTag' ) self . additionalCommands . append ( 'process.GlobalTag = GlobalTag(process.GlobalTag, %s, %s)' % ( repr ( self . _options . conditions ) , repr ( self . _options . custom_conditions ) ) )