parameters: (reduction_alg, reduction_setting_bundle)
return_statement: return reduced_slices
docstring: This function runs a core reduction for event slice data. This reduction slices by event time and converts to q.
      All other operations, such as moving and converting to histogram, have been performed before the event slicing.
  
      :param reduction_alg: a handle to the reduction algorithm.
      :param reduction_setting_bundle: a ReductionSettingBundle tuple
      :return: a list of reduced slices
docstring_summary: This function runs a core reduction for event slice data. This reduction slices by event time and converts to q.
      All other operations, such as moving and converting to histogram, have been performed before the event slicing.
docstring_tokens: This function runs a core reduction for event slice data . This reduction slices by event time and converts to q . All other operations such as moving and converting to histogram have been performed before the event slicing .
function: def run_core_event_slice_reduction(reduction_alg, reduction_setting_bundle):
      """
      This function runs a core reduction for event slice data. This reduction slices by event time and converts to q.
      All other operations, such as moving and converting to histogram, have been performed before the event slicing.
  
      :param reduction_alg: a handle to the reduction algorithm.
      :param reduction_setting_bundle: a ReductionSettingBundle tuple
      :return: a list of reduced slices
      """
  
      # Get component to reduce
      component = get_component_to_reduce(reduction_setting_bundle)
      # Set the properties on the reduction algorithms
      serialized_state = Serializer.to_json(reduction_setting_bundle.state)
      reduction_alg.setProperty("SANSState", serialized_state)
      reduction_alg.setProperty("Component", component)
      reduction_alg.setProperty("ScatterWorkspace", reduction_setting_bundle.scatter_workspace)
      reduction_alg.setProperty("DirectWorkspace", reduction_setting_bundle.direct_workspace)
      reduction_alg.setProperty("TransmissionWorkspace", reduction_setting_bundle.transmission_workspace)
      reduction_alg.setProperty("DummyMaskWorkspace", reduction_setting_bundle.dummy_mask_workspace)
      reduction_alg.setProperty("ScatterMonitorWorkspace", reduction_setting_bundle.scatter_monitor_workspace)
  
      reduction_alg.setProperty("DataType", reduction_setting_bundle.data_type.value)
  
      reduction_alg.setProperty("OutputWorkspaces", EMPTY_NAME)
      reduction_alg.setProperty("SumOfCounts", EMPTY_NAME)
      reduction_alg.setProperty("SumOfNormFactors", EMPTY_NAME)
  
      # Run the reduction core
      reduction_alg.execute()
  
      # Pull the result out of the workspace
      reduced_slices = _pack_bundles(reduction_alg, reduction_setting_bundle)
  
      return reduced_slices
function_tokens: def run_core_event_slice_reduction ( reduction_alg , reduction_setting_bundle ) : # Get component to reduce component = get_component_to_reduce ( reduction_setting_bundle ) # Set the properties on the reduction algorithms serialized_state = Serializer . to_json ( reduction_setting_bundle . state ) reduction_alg . setProperty ( "SANSState" , serialized_state ) reduction_alg . setProperty ( "Component" , component ) reduction_alg . setProperty ( "ScatterWorkspace" , reduction_setting_bundle . scatter_workspace ) reduction_alg . setProperty ( "DirectWorkspace" , reduction_setting_bundle . direct_workspace ) reduction_alg . setProperty ( "TransmissionWorkspace" , reduction_setting_bundle . transmission_workspace ) reduction_alg . setProperty ( "DummyMaskWorkspace" , reduction_setting_bundle . dummy_mask_workspace ) reduction_alg . setProperty ( "ScatterMonitorWorkspace" , reduction_setting_bundle . scatter_monitor_workspace ) reduction_alg . setProperty ( "DataType" , reduction_setting_bundle . data_type . value ) reduction_alg . setProperty ( "OutputWorkspaces" , EMPTY_NAME ) reduction_alg . setProperty ( "SumOfCounts" , EMPTY_NAME ) reduction_alg . setProperty ( "SumOfNormFactors" , EMPTY_NAME ) # Run the reduction core reduction_alg . execute ( ) # Pull the result out of the workspace reduced_slices = _pack_bundles ( reduction_alg , reduction_setting_bundle ) return reduced_slices