Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 902 Bytes

AlphaCalc-v1.rst

File metadata and controls

44 lines (26 loc) · 902 Bytes

Description

Returns the relative efficiency of the forward detector group compared to the backward detector group. If Alpha is larger than 1 more counts has been collected in the forward group.

This algorithm leave the input workspace unchanged. To group detectors in a workspace use algm-MuonGroupDetectors.

Usage

Example - Calculating Alpha of a MUSR run:

ExMUSRAlpha

loaded = LoadMuonNexus('MUSR0015189.nxs', AutoGroup=True)

first_period = loaded[0].getItem(0)

alpha = AlphaCalc(first_period,

FirstGoodValue=0.55, LastGoodValue=12.0)

print 'Alpha value of the first period: {:.3f}'.format(alpha)

Output:

ExMUSRAlpha

Alpha value of the first period: 1.339