Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
AsymmetryCalc-v1.rst 1.50 KiB

Description

This algorithm is used to calculate the asymmetry for a Muon workspace. The asymmetry is given by:

Asymmetry = \frac{F-\alpha B}{F+\alpha B}

, where F is the front spectra, B is the back spectra and \alpha is the balance parameter [1].

The errors in F-\alpha B and F+\alpha B are calculated by adding the errors in F and B in quadrature; any errors in \alpha are ignored. The errors for the asymmetry are then calculated using the fractional error method with the values for the errors in F-\alpha B and F+\alpha B.

The output workspace contains one set of data for the time of flight: the asymmetry and the asymmetry errors.

Note

This algorithm does not perform any grouping. The grouping must be done using :ref:`algm-MuonGroupDetectors` or AutoGroup option of :ref:`algm-LoadMuonNexus`.

[1] See :ref:`algm-AlphaCalc`

Usage

Example - Calculating asymmetry:

Output: