ra4_stats  0341147a0dc35f80f4e12c6003afb76a38e2ed6e
Functions | Variables
one_bin_test_statistic Namespace Reference

Functions

def LogPoissonLike (N, mu)
 
def GetQs (mu, s, b, obs)
 
def Style (h, color, style)
 
def GetName (i)
 
def GetXmax (i, background, signal)
 
def GetXmin (i, background, signal)
 
def PlotQ (i, q_0_bonly, q_0_splusb, q_1_bonly, q_1_splusb, background, signal)
 
def PlotQVsN (i, n, q_0, q_1, background, signal)
 
def ScanSigStrength (i, mu, q_bonly, q_splusb, background, signal)
 
def OneBinTestStatistic (background, signal, num_toys)
 

Variables

tuple parser
 
tuple args = parser.parse_args()
 

Function Documentation

def one_bin_test_statistic.GetName (   i)

Definition at line 35 of file one_bin_test_statistic.py.

Referenced by GetError(), PlotQ(), PlotQVsN(), and ScanSigStrength().

def one_bin_test_statistic.GetQs (   mu,
  s,
  b,
  obs 
)

Definition at line 12 of file one_bin_test_statistic.py.

References LogPoissonLike().

Referenced by OneBinTestStatistic(), and ScanSigStrength().

def one_bin_test_statistic.GetXmax (   i,
  background,
  signal 
)

Definition at line 44 of file one_bin_test_statistic.py.

Referenced by GetXmin(), OneBinTestStatistic(), PlotQ(), and ScanSigStrength().

def one_bin_test_statistic.GetXmin (   i,
  background,
  signal 
)

Definition at line 51 of file one_bin_test_statistic.py.

References GetXmax().

Referenced by OneBinTestStatistic(), PlotQ(), and ScanSigStrength().

def one_bin_test_statistic.LogPoissonLike (   N,
  mu 
)

Definition at line 9 of file one_bin_test_statistic.py.

Referenced by GetQs().

def one_bin_test_statistic.OneBinTestStatistic (   background,
  signal,
  num_toys 
)

Definition at line 205 of file one_bin_test_statistic.py.

References GetQs(), GetXmax(), GetXmin(), PlotQ(), PlotQVsN(), and ScanSigStrength().

def one_bin_test_statistic.PlotQ (   i,
  q_0_bonly,
  q_0_splusb,
  q_1_bonly,
  q_1_splusb,
  background,
  signal 
)

Definition at line 56 of file one_bin_test_statistic.py.

References GetName(), GetXmax(), GetXmin(), and Style().

Referenced by OneBinTestStatistic().

def one_bin_test_statistic.PlotQVsN (   i,
  n,
  q_0,
  q_1,
  background,
  signal 
)

Definition at line 101 of file one_bin_test_statistic.py.

References GetName(), and Style().

Referenced by OneBinTestStatistic().

def one_bin_test_statistic.ScanSigStrength (   i,
  mu,
  q_bonly,
  q_splusb,
  background,
  signal 
)

Definition at line 138 of file one_bin_test_statistic.py.

References GetName(), GetQs(), GetXmax(), GetXmin(), and Style().

Referenced by OneBinTestStatistic().

def one_bin_test_statistic.Style (   h,
  color,
  style 
)

Definition at line 30 of file one_bin_test_statistic.py.

Referenced by PlotQ(), PlotQVsN(), and ScanSigStrength().

Variable Documentation

tuple one_bin_test_statistic.args = parser.parse_args()

Definition at line 243 of file one_bin_test_statistic.py.

tuple one_bin_test_statistic.parser
Initial value:
1 = argparse.ArgumentParser(description="Plots distributions of test statistics for a single bin counting experiment",
2  formatter_class=argparse.ArgumentDefaultsHelpFormatter)

Definition at line 238 of file one_bin_test_statistic.py.