(*******************************************************************
This file was generated automatically by the Mathematica front end.
It contains Initialization cells from a Notebook file, which
typically will have the same name as this file except ending in
".nb" instead of ".m".

This file is intended to be loaded into the Mathematica kernel using
the package loading commands Get or Needs.  Doing so is equivalent
to using the Evaluate Initialization Cells menu command in the front
end.

DO NOT EDIT THIS FILE.  This entire file is regenerated
automatically each time the parent Notebook file is saved in the
Mathematica front end.  Any changes you make to this file will be
overwritten.
***********************************************************************)

<<getspectra_new3.m



ptarr={};Do[ptarr=Append[ptarr,i/20.+0.01],{i,0,99}];

Sum[file[[i,11]],{i,1,xL}]



massarr=Flatten[Import[header<>"pasim.dat"]];

namesarr=Flatten[Import[header<>"pasinames.dat"]];

resof=Import[header<>"pdg_weak.dat"];

bar={};Do[
  Do[If[resof[[i,2]]\[Equal]namesarr[[ptr]],
      bar=Append[bar,resof[[i,6]]]],{ptr,1,Length[namesarr]}],{i,1,
    Length[resof]}]

allf={}



bigN=1



Timing[spec=genspec[massarr[[1]],1-2 bar[[1]],Tf][[All,2]];]











allf=Append[allf,spec]



allf=Append[allf,spec]



Do[
  If[massarr[[i]]\[NotEqual]massarr[[i-1]],
    spec=genspec[massarr[[i]],1-2 bar[[i]],Tf][[All,2]]; 
    Print["Generating ",namesarr[[i]], " with mass ",massarr[[i]]]];
  allf=Append[allf,spec];
  allf=Append[allf,spec],{i,2,Length[massarr]}]

















































































































































































































allf=Append[allf,{}]



Export[header<>"phipspectra.dat",allf]

