parameters: (ali_producer)
docstring: Derive unique run ranges from AlignmentProducer PSet.
  
      Arguments:
      - `ali_producer`: cms.PSet containing AlignmentProducer configuration
docstring_summary: Derive unique run ranges from AlignmentProducer PSet.
docstring_tokens: Derive unique run ranges from AlignmentProducer PSet .
function: def make_unique_runranges(ali_producer):
      """Derive unique run ranges from AlignmentProducer PSet.
  
      Arguments:
      - `ali_producer`: cms.PSet containing AlignmentProducer configuration
      """
  
      if (hasattr(ali_producer, "RunRangeSelection") and
          len(ali_producer.RunRangeSelection) > 0):
          iovs = set([int(iov)
                      for sel in ali_producer.RunRangeSelection
                      for iov in sel.RunRanges])
          if len(iovs) == 0: return [1] # single IOV starting from run 1
          return sorted(iovs)
      else:
          return [1]
function_tokens: def make_unique_runranges ( ali_producer ) : if ( hasattr ( ali_producer , "RunRangeSelection" ) and len ( ali_producer . RunRangeSelection ) > 0 ) : iovs = set ( [ int ( iov ) for sel in ali_producer . RunRangeSelection for iov in sel . RunRanges ] ) if len ( iovs ) == 0 : return [ 1 ] # single IOV starting from run 1 return sorted ( iovs ) else : return [ 1 ]