extract_ff

Contents

extract_ff#

extract_ff(results, outfileName='', fmt='.5f', test_regex=False, no_phases=False, only=None, regex_merge=None, main_dict={})[source]#

Extract fit fractions and phase differences between pairs of waves from a FitResults object.

Parameters:
  • results (FitResults) – FitResults object containing fit results

  • outfileName (str) – Output root file name or dump to stdout if empty string

  • fmt (str) – String format for printing numbers

  • test_regex (bool) – If True, only test and print regex grouping without calculating intensities

  • no_phases (bool) – If True, skip calculating phase differences

  • only (str) – Only dump fit fractions for “acc” or “noacc”. Default dumps both.

  • regex_merge (List[str]) –

    List of regex pattern/replace pairs for merging amplitudes. Pairs are separated by ~>. The substitution happens for all amplitude names. All amplitudes with same reduced name will be grouped into a list and a combined fit fraction calculated. See AmpTools’ FitResults.intensity method. .. rubric:: Examples

    • ’.*::(.*)::.*~>1’: Captures text between :: and replaces full match

    • ’.*(.)$~>1’: Captures last character and replaces full match

    • ’.*reaction_(000|045|090|135)::(Pos|Neg)(?:Im|Re)::’: Removes matched pattern, allowing grouping over polarizations and mirrored sums

  • main_dict (Dict) – main yaml dictionary. Allows program to load YAML state, i.e. for getting user requested coherent sums