| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

GenDecay::beta Namespace Reference


Classes

class  Spectra

Functions

def Bi210
def plot

Function Documentation

def GenDecay::beta::Bi210 (  ) 

Definition at line 87 of file beta.py.

00087            :
00088     return plot(83,210)
00089 
def plot(z,a,nbins=100):

def GenDecay::beta::plot (   z,
  a,
  nbins = 100 
)

Definition at line 90 of file beta.py.

00090                        :
00091     spec = Spectra(z,a)
00092 
00093     dk_h = spec.sampledSpectra(ndecays=10000,nbins=nbins)
00094     
00095     from numpy import array
00096 
00097     firstDK,firstH = dk_h[0]
00098     total = array([0.0 for x in range(len(firstH[0]))])
00099     for dk,h in dk_h:
00100         total += h[0]
00101         continue
00102 
00103     mods,bins,modTotal = spec.modeledSpectra(nbins=nbins)
00104 
00105     import matplotlib.pyplot as plt
00106     for dk,h in dk_h:
00107         plt.plot(h[1],h[0])
00108         continue
00109     plt.plot(firstH[1],total)
00110 
00111     plt.plot(bins,modTotal)
00112     for mod in mods:
00113         plt.plot(bins,mod)
00114         continue
00115 
00116     import elements
00117     plt.title('%d%s'%(a,elements.symbol(z)))
00118 
00119     plt.show()
00120 

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 21:01:10 2011 for GenDecay by doxygen 1.4.7