def calculate_pair_data(pair: MuonPair, forward_group: str, backward_group: str, output_workspace_name: str): params = _get_MuonPairingAsymmetry_parameters(pair, forward_group, backward_group) pair_data = algorithm_utils.run_MuonPairingAsymmetry( params, output_workspace_name) return pair_data
def calculate_pair_data(context, pair_name, run, rebin): processed_data = _run_pre_processing(context, run, rebin) params = _get_MuonPairingAsymmetry_parameters(context, pair_name, run) params["InputWorkspace"] = processed_data pair_data = algorithm_utils.run_MuonPairingAsymmetry(params) return pair_data